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

public Class PerfStringConstantMonitor

extends PerfStringMonitor
Class Inheritance
Imports
sun.jvmstat.monitor.*, java.nio.ByteBuffer

Class for monitoring a constant PerfData String instrument. The value associated with a constant string instrument is fixed at the string instrument's creation time. Its value and length never change.
Author
Brian Doherty
Since
1.5

Field Summary

Modifier and TypeField and Description
pack-priv String
data

The cached value of the string instrument.

Constructor Summary

AccessConstructor and Description
public
PerfStringConstantMonitor(String
the name of the instrumentation object
name
,
boolean
support level indicator
supported
,
ByteBuffer
the buffer containing the string instrument data
bb
)

Constructor to create a StringMonitor object for the constant string instrument object represented by the data in the given buffer.

Method Summary

Modifier and TypeMethod and Description
public Object
getValue()

Overrides sun.jvmstat.perfdata.monitor.PerfStringMonitor.getValue.

Implements sun.jvmstat.monitor.Monitor.getValue.

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

public String
stringValue()

Overrides sun.jvmstat.perfdata.monitor.PerfStringMonitor.stringValue.

Implements sun.jvmstat.monitor.StringMonitor.stringValue.

Return the current value of the StringInstrument as a String.

Field Detail

databack to summary
pack-priv String data

The cached value of the string instrument.

Constructor Detail

PerfStringConstantMonitorback to summary
public PerfStringConstantMonitor(String name, boolean supported, ByteBuffer bb)

Constructor to create a StringMonitor object for the constant string instrument object represented by the data in the given buffer.

Parameters
name:String

the name of the instrumentation object

supported:boolean

support level indicator

bb:ByteBuffer

the buffer containing the string instrument data

Method Detail

getValueback to summary
public Object getValue()

Overrides sun.jvmstat.perfdata.monitor.PerfStringMonitor.getValue.

Implements sun.jvmstat.monitor.Monitor.getValue.

Doc from sun.jvmstat.perfdata.monitor.PerfStringMonitor.getValue.

Return an Object that encapsulates this instrumentation object's current data value. The object returned contains a String with a copy of the current value of the StringInstrument.

stringValueback to summary
public String stringValue()

Overrides sun.jvmstat.perfdata.monitor.PerfStringMonitor.stringValue.

Implements sun.jvmstat.monitor.StringMonitor.stringValue.

Doc from sun.jvmstat.perfdata.monitor.PerfStringMonitor.stringValue.

Return the current value of the StringInstrument as a String.