APIdia Launch Partner
Top Description Fields Constructors Methods
sun.jvmstat.monitor

public abstract Class AbstractMonitor

extends Object
implements Monitor
Class Inheritance
All Implemented Interfaces
sun.jvmstat.monitor.Monitor
Known Direct Subclasses
sun.jvmstat.perfdata.monitor.PerfByteArrayMonitor, sun.jvmstat.perfdata.monitor.PerfIntegerMonitor, sun.jvmstat.perfdata.monitor.PerfLongMonitor

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..
Author
Brian Doherty
Since
1.5

Field Summary

Modifier and TypeField and Description
protected String
protected boolean
protected Units
protected Variability
protected int

Constructor Summary

AccessConstructor and Description
protected
AbstractMonitor(String
the name to assign to this instrumentation object.
name
,
Units
the units of measure attribute
units
,
Variability
the variability attribute
variability
,
boolean
support level indicator
supported
,
int
the length of the vector, or 0 if not a vector type.
vectorLength
)

Create a vector instrumentation monitoring object with the given name and attributes.

protected
AbstractMonitor(String
the name to assign to this instrumentation object.
name
,
Units
the units of measure attribute
units
,
Variability
the variability attribute
variability
,
boolean
support level indicator
supported
)

Create a scalar instrumentation monitoring object with the given name and attributes.

Method Summary

Modifier and TypeMethod and Description
public String
getBaseName()

Implements sun.jvmstat.monitor.Monitor.getBaseName.

Returns the base name of this instrumentation object.

public String
getName()

Implements sun.jvmstat.monitor.Monitor.getName.

Returns the name of this instrumentation object.

public Units
getUnits()

Implements sun.jvmstat.monitor.Monitor.getUnits.

Returns the Units for this instrumentation monitoring object.

public abstract Object
getValue()

Redeclares sun.jvmstat.monitor.Monitor.getValue.

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

public Variability
getVariability()

Implements sun.jvmstat.monitor.Monitor.getVariability.

Returns the Variability for this instrumentation object.

public int
getVectorLength()

Implements sun.jvmstat.monitor.Monitor.getVectorLength.

Return the length of the vector.

public boolean
isSupported()

Implements sun.jvmstat.monitor.Monitor.isSupported.

Test if the instrumentation object is supported.

public boolean
isVector()

Implements sun.jvmstat.monitor.Monitor.isVector.

Test if the instrumentation object is a vector type.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

nameback to summary
protected String name
supportedback to summary
protected boolean supported
unitsback to summary
protected Units units
variabilityback to summary
protected Variability variability
vectorLengthback to summary
protected int vectorLength

Constructor Detail

AbstractMonitorback to summary
protected AbstractMonitor(String name, Units units, Variability variability, boolean supported, int vectorLength)

Create a vector instrumentation monitoring object with the given name and attributes.

Parameters
name:String

the name to assign to this instrumentation object.

units:Units

the units of measure attribute

variability:Variability

the variability attribute

supported:boolean

support level indicator

vectorLength:int

the length of the vector, or 0 if not a vector type.

AbstractMonitorback to summary
protected AbstractMonitor(String name, Units units, Variability variability, boolean supported)

Create a scalar instrumentation monitoring object with the given name and attributes.

Parameters
name:String

the name to assign to this instrumentation object.

units:Units

the units of measure attribute

variability:Variability

the variability attribute

supported:boolean

support level indicator

Method Detail

getBaseNameback to summary
public String getBaseName()

Implements sun.jvmstat.monitor.Monitor.getBaseName.

Doc from sun.jvmstat.monitor.Monitor.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.

getNameback to summary
public String getName()

Implements sun.jvmstat.monitor.Monitor.getName.

Doc from sun.jvmstat.monitor.Monitor.getName.

Returns the name of this instrumentation object.

getUnitsback to summary
public Units getUnits()

Implements sun.jvmstat.monitor.Monitor.getUnits.

Doc from sun.jvmstat.monitor.Monitor.getUnits.

Returns the Units for this instrumentation monitoring object.

getValueback to summary
public abstract Object getValue()

Redeclares sun.jvmstat.monitor.Monitor.getValue.

Doc from sun.jvmstat.monitor.Monitor.getValue.

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

getVariabilityback to summary
public Variability getVariability()

Implements sun.jvmstat.monitor.Monitor.getVariability.

Doc from sun.jvmstat.monitor.Monitor.getVariability.

Returns the Variability for this instrumentation object.

getVectorLengthback to summary
public int getVectorLength()

Implements sun.jvmstat.monitor.Monitor.getVectorLength.

Doc from sun.jvmstat.monitor.Monitor.getVectorLength.

Return the length of the vector.

isSupportedback to summary
public boolean isSupported()

Implements sun.jvmstat.monitor.Monitor.isSupported.

Doc from sun.jvmstat.monitor.Monitor.isSupported.

Test if the instrumentation object is supported.

isVectorback to summary
public boolean isVector()

Implements sun.jvmstat.monitor.Monitor.isVector.

Doc from sun.jvmstat.monitor.Monitor.isVector.

Test if the instrumentation object is a vector type.