Jvmstat

sun.jvmstat.monitor
Interface Monitor

All Known Subinterfaces:
ByteArrayMonitor, IntegerMonitor, LongMonitor, StringMonitor
All Known Implementing Classes:
AbstractMonitor, PerfByteArrayMonitor, PerfIntegerMonitor, PerfLongMonitor, PerfStringConstantMonitor, PerfStringMonitor, PerfStringVariableMonitor

public interface Monitor

Interface provided by Instrumentation Monitoring Objects.

Since:
1.5

Method Summary
 String getBaseName()
          Returns the base name of this instrumentation object.
 String getName()
          Returns the name of this instrumentation object.
 sun.management.counter.Units getUnits()
          Returns the Units for this instrumentation monitoring object.
 Object getValue()
          Return an Object that encapsulates this instrumentation object's current data value.
 sun.management.counter.Variability getVariability()
          Returns the Variability for this instrumentation object.
 int getVectorLength()
          Return the length of the vector.
 boolean isSupported()
          Test if the instrumentation object is supported.
 boolean isVector()
          Test if the instrumentation object is a vector type.
 

Method Detail

getName

String getName()
Returns the name of this instrumentation object.

Returns:
String - the name assigned to this instrumentation monitoring object

getBaseName

String getBaseName()
Returns the base name of this instrumentation object. The base name is the component of the name following the last "." character in the name.

Returns:
String - the base name of the name assigned to this instrumentation monitoring object.

getUnits

sun.management.counter.Units getUnits()
Returns the Units for this instrumentation monitoring object.

Returns:
Units - the units of measure attribute

getVariability

sun.management.counter.Variability getVariability()
Returns the Variability for this instrumentation object.

Returns:
Variability - the variability attribute

isVector

boolean isVector()
Test if the instrumentation object is a vector type.

Returns:
boolean - true if this instrumentation object is a vector type, false otherwise.

getVectorLength

int getVectorLength()
Return the length of the vector.

Returns:
int - the length of the vector or zero if this instrumentation object is a scalar type.

isSupported

boolean isSupported()
Test if the instrumentation object is supported.


getValue

Object getValue()
Return an Object that encapsulates this instrumentation object's current data value.


Jvmstat