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

public Class PerfStringMonitor

extends PerfByteArrayMonitor
implements StringMonitor
Class Inheritance
All Implemented Interfaces
sun.jvmstat.monitor.StringMonitor, sun.jvmstat.monitor.Monitor
Known Direct Subclasses
sun.jvmstat.perfdata.monitor.PerfStringVariableMonitor, sun.jvmstat.perfdata.monitor.PerfStringConstantMonitor
Imports
sun.jvmstat.monitor.*, java.nio.ByteBuffer, java.nio.charset.Charset

Class for monitoring a PerfData String instrument.
Author
Brian Doherty
Since
1.5

Field Summary

Modifier and TypeField and Description
private static Charset
Inherited from sun.jvmstat.perfdata.monitor.PerfByteArrayMonitor:
bb

Constructor Summary

AccessConstructor and Description
public
PerfStringMonitor(String
the name of the string instrument
name
,
Variability
the variability attribute
v
,
boolean
support level indicator
supported
,
ByteBuffer
the buffer containing the string instrument data.
bb
)

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

public
PerfStringMonitor(String
the name of the string instrument
name
,
Variability
the variability attribute
v
,
boolean
support level indicator
supported
,
ByteBuffer
the buffer containing the string instrument data.
bb
,
int
the maximum length of the string data.
maxLength
)

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

Method Summary

Modifier and TypeMethod and Description
public Object

Returns:

Object - a copy of the current value of the StringInstrument. The return value is guaranteed to be of type String.
getValue
()

Overrides sun.jvmstat.perfdata.monitor.PerfByteArrayMonitor.getValue.

Implements sun.jvmstat.monitor.Monitor.getValue.

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

public String

Returns:

String - a copy of the current value of the StringInstrument.
stringValue
()

Implements sun.jvmstat.monitor.StringMonitor.stringValue.

Return the current value of the StringInstrument as a String.

Inherited from sun.jvmstat.perfdata.monitor.PerfByteArrayMonitor:
byteArrayValuebyteAtgetMaximumLength

Field Detail

defaultCharsetback to summary
private static Charset defaultCharset

Constructor Detail

PerfStringMonitorback to summary
public PerfStringMonitor(String name, Variability v, boolean supported, ByteBuffer bb)

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

Parameters
name:String

the name of the string instrument

v:Variability

the variability attribute

supported:boolean

support level indicator

bb:ByteBuffer

the buffer containing the string instrument data.

PerfStringMonitorback to summary
public PerfStringMonitor(String name, Variability v, boolean supported, ByteBuffer bb, int maxLength)

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

Parameters
name:String

the name of the string instrument

v:Variability

the variability attribute

supported:boolean

support level indicator

bb:ByteBuffer

the buffer containing the string instrument data.

maxLength:int

the maximum length of the string data.

Method Detail

getValueback to summary
public Object getValue()

Overrides sun.jvmstat.perfdata.monitor.PerfByteArrayMonitor.getValue.

Implements sun.jvmstat.monitor.Monitor.getValue.

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

Returns:Object

Object - a copy of the current value of the StringInstrument. The return value is guaranteed to be of type String.

stringValueback to summary
public String stringValue()

Implements sun.jvmstat.monitor.StringMonitor.stringValue.

Return the current value of the StringInstrument as a String.

Returns:String

String - a copy of the current value of the StringInstrument.