public abstract class

AbstractCounter

extends Object
implements Counter
java.lang.Object
   ↳ sun.management.counter.AbstractCounter
Known Direct Subclasses
Known Indirect Subclasses

Summary

Protected Constructors
AbstractCounter(String name, Units units, Variability variability, int flags, int vectorLength)
AbstractCounter(String name, Units units, Variability variability, int flags)
Public Methods
int getFlags()
return the flags associated with the counter.
String getName()
Returns the name of the Performance Counter
Units getUnits()
Returns the Units for this Performance Counter
abstract Object getValue()
Returns an Object that encapsulates the data value of this counter
Variability getVariability()
Returns the Variability for this performance Object
int getVectorLength()
return the length of the vector
boolean isInternal()
Returns true if this counter is an internal counter.
boolean isVector()
Return true if this performance counter is a vector
String toString()
Returns a string representation of the object.
[Expand]
Inherited Methods
From class java.lang.Object
From interface sun.management.counter.Counter

Protected Constructors

protected AbstractCounter (String name, Units units, Variability variability, int flags, int vectorLength)

protected AbstractCounter (String name, Units units, Variability variability, int flags)

Public Methods

public int getFlags ()

return the flags associated with the counter.

public String getName ()

Returns the name of the Performance Counter

public Units getUnits ()

Returns the Units for this Performance Counter

public abstract Object getValue ()

Returns an Object that encapsulates the data value of this counter

public Variability getVariability ()

Returns the Variability for this performance Object

public int getVectorLength ()

return the length of the vector

public boolean isInternal ()

Returns true if this counter is an internal counter.

public boolean isVector ()

Return true if this performance counter is a vector

public String toString ()

Returns a string representation of the object. In general, the toString method returns a string that "textually represents" this object. The result should be a concise but informative representation that is easy for a person to read. It is recommended that all subclasses override this method.

The toString method for class Object returns a string consisting of the name of the class of which the object is an instance, the at-sign character `@', and the unsigned hexadecimal representation of the hash code of the object. In other words, this method returns a string equal to the value of:

 getClass().getName() + '@' + Integer.toHexString(hashCode())
 

Returns
  • a string representation of the object.