Known Direct Subclasses
|
Known Indirect Subclasses
|
Class Overview
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..
Summary
Protected Constructors |
|
AbstractMonitor(String name, Units units, Variability variability, boolean supported, int vectorLength)
Create a vector instrumentation monitoring object with the given
name and attributes.
|
|
AbstractMonitor(String name, Units units, Variability variability, boolean supported)
Create a scalar instrumentation monitoring object with the given
name and attributes.
|
Public Methods |
String
|
getBaseName()
Returns the base name of this instrumentation object.
|
String
|
getName()
Returns the name of this instrumentation object.
|
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.
|
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.
|
[Expand]
Inherited Methods |
From class
java.lang.Object
Object
|
clone()
Creates and returns a copy of this object.
|
boolean
|
equals(Object obj)
Indicates whether some other object is "equal to" this one.
|
void
|
finalize()
Called by the garbage collector on an object when garbage collection
determines that there are no more references to the object.
|
final
Class<?>
|
getClass()
Returns the runtime class of this Object .
|
int
|
hashCode()
Returns a hash code value for the object.
|
final
void
|
notify()
Wakes up a single thread that is waiting on this object's
monitor.
|
final
void
|
notifyAll()
Wakes up all threads that are waiting on this object's monitor.
|
String
|
toString()
Returns a string representation of the object.
|
final
void
|
wait()
Causes the current thread to wait until another thread invokes the
notify() method or the
notifyAll() method for this object.
|
final
void
|
wait(long timeout, int nanos)
Causes the current thread to wait until another thread invokes the
notify() method or the
notifyAll() method for this object, or
some other thread interrupts the current thread, or a certain
amount of real time has elapsed.
|
final
void
|
wait(long timeout)
Causes the current thread to wait until either another thread invokes the
notify() method or the
notifyAll() method for this object, or a
specified amount of time has elapsed.
|
|
From interface
sun.jvmstat.monitor.Monitor
abstract
String
|
getBaseName()
Returns the base name of this instrumentation object.
|
abstract
String
|
getName()
Returns the name of this instrumentation object.
|
abstract
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.
|
abstract
Variability
|
getVariability()
Returns the Variability for this instrumentation object.
|
abstract
int
|
getVectorLength()
Return the length of the vector.
|
abstract
boolean
|
isSupported()
Test if the instrumentation object is supported.
|
abstract
boolean
|
isVector()
Test if the instrumentation object is a vector type.
|
|
Fields
protected
boolean
supported
protected
int
vectorLength
Protected Constructors
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
| the name to assign to this instrumentation object. |
units
| the units of measure attribute |
variability
| the variability attribute |
supported
| support level indicator |
vectorLength
| the length of the vector, or 0 if not a vector type.
|
protected
AbstractMonitor
(String name, Units units, Variability variability, boolean supported)
Create a scalar instrumentation monitoring object with the given
name and attributes.
Parameters
name
| the name to assign to this instrumentation object. |
units
| the units of measure attribute |
variability
| the variability attribute |
supported
| support level indicator
|
Public Methods
public
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.
public
String
getName
()
Returns the name of this instrumentation object.
Returns
- String - the name assigned to this instrumentation monitoring
object
public
Units
getUnits
()
Returns the Units for this instrumentation monitoring object.
Returns
- Units - the units of measure attribute
public
abstract
Object
getValue
()
Return an Object that encapsulates this instrumentation object's
current data value.
public
Variability
getVariability
()
Returns the Variability for this instrumentation object.
Returns
- Variability - the variability attribute
public
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.
public
boolean
isSupported
()
Test if the instrumentation object is supported.
public
boolean
isVector
()
Test if the instrumentation object is a vector type.
Returns
- boolean - true if this instrumentation object is a vector type,
false otherwise.