public class

PerfStringMonitor

extends PerfByteArrayMonitor
implements StringMonitor
java.lang.Object
   ↳ sun.jvmstat.monitor.AbstractMonitor
     ↳ sun.jvmstat.perfdata.monitor.PerfByteArrayMonitor
       ↳ sun.jvmstat.perfdata.monitor.PerfStringMonitor
Known Direct Subclasses

Class Overview

Class for monitoring a PerfData String instrument.

Summary

[Expand]
Inherited Fields
From class sun.jvmstat.monitor.AbstractMonitor
Public Constructors
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.
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.
Public Methods
Object getValue()
Return an Object that encapsulates this instrumentation object's current data value. The object returned contains a byte[] with a copy of the current elements of the ByteArrayInstrument. The object returned contains a String with a copy of the current value of the StringInstrument.
String stringValue()
Return the current value of the StringInstrument as a String.
[Expand]
Inherited Methods
From class sun.jvmstat.perfdata.monitor.PerfByteArrayMonitor
From class sun.jvmstat.monitor.AbstractMonitor
From class java.lang.Object
From interface sun.jvmstat.monitor.ByteArrayMonitor
From interface sun.jvmstat.monitor.Monitor
From interface sun.jvmstat.monitor.StringMonitor

Public Constructors

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 the name of the string instrument
v the variability attribute
supported support level indicator
bb the buffer containing the string instrument data.

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 the name of the string instrument
v the variability attribute
supported support level indicator
bb the buffer containing the string instrument data.
maxLength the maximum length of the string data.

Public Methods

public Object getValue ()

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

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

public String stringValue ()

Return the current value of the StringInstrument as a String.

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