|
Jvmstat | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectsun.jvmstat.monitor.AbstractMonitor
public abstract class AbstractMonitor
The base class for Instrumentation Monitoring Objects. This base class
provides implementations of the Monitor methods that are common
to all classes implementing the Monitor interface..
| Field Summary | |
|---|---|
protected String |
name
|
protected boolean |
supported
|
protected sun.management.counter.Units |
units
|
protected sun.management.counter.Variability |
variability
|
protected int |
vectorLength
|
| Constructor Summary | |
|---|---|
protected |
AbstractMonitor(String name,
sun.management.counter.Units units,
sun.management.counter.Variability variability,
boolean supported)
Create a scalar instrumentation monitoring object with the given name and attributes. |
protected |
AbstractMonitor(String name,
sun.management.counter.Units units,
sun.management.counter.Variability variability,
boolean supported,
int vectorLength)
Create a vector instrumentation monitoring object with the given name and attributes. |
| 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. |
abstract 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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected String name
protected sun.management.counter.Units units
protected sun.management.counter.Variability variability
protected int vectorLength
protected boolean supported
| Constructor Detail |
|---|
protected AbstractMonitor(String name,
sun.management.counter.Units units,
sun.management.counter.Variability variability,
boolean supported,
int vectorLength)
name - the name to assign to this instrumentation object.units - the units of measure attributevariability - the variability attributesupported - support level indicatorvectorLength - the length of the vector, or 0 if not a vector type.
protected AbstractMonitor(String name,
sun.management.counter.Units units,
sun.management.counter.Variability variability,
boolean supported)
name - the name to assign to this instrumentation object.units - the units of measure attributevariability - the variability attributesupported - support level indicator| Method Detail |
|---|
public String getName()
getName in interface Monitorpublic String getBaseName()
getBaseName in interface Monitorpublic sun.management.counter.Units getUnits()
getUnits in interface Monitorpublic sun.management.counter.Variability getVariability()
getVariability in interface Monitorpublic boolean isVector()
isVector in interface Monitorpublic int getVectorLength()
getVectorLength in interface Monitorpublic boolean isSupported()
isSupported in interface Monitorpublic abstract Object getValue()
getValue in interface Monitor
|
Jvmstat | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||