Top Description Fields Constructors Methods
sun.jvmstat.perfdata.monitor

public Class PerfByteArrayMonitor

extends AbstractMonitor
implements ByteArrayMonitor
Class Inheritance
All Implemented Interfaces
sun.jvmstat.monitor.ByteArrayMonitor, sun.jvmstat.monitor.Monitor
Known Direct Subclasses
sun.jvmstat.perfdata.monitor.PerfStringMonitor
Imports
sun.jvmstat.monitor.*, java.nio.ByteBuffer

Class for monitoring a PerfData Byte Array instrumentation object. This class is provided to support the PerfStringMonitor classes. Instrumentation objects of this direct type currently cannot be created or monitored.
Author
Brian Doherty
Since
1.5
See Also
sun.jvmstat.instrument.ByteArrayInstrument

Field Summary

Modifier and TypeField and Description
pack-priv ByteBuffer
bb

The buffer containing the data for the byte array instrument.

Inherited from sun.jvmstat.monitor.AbstractMonitor:
namesupportedunitsvariabilityvectorLength

Constructor Summary

AccessConstructor and Description
public
PerfByteArrayMonitor(String
the name of the instrumentation object
name
,
Units
the units of measure attribute
u
,
Variability
the variability attribute
v
,
boolean
support level indicator
supported
,
ByteBuffer
the buffer containing the byte array instrument data
bb
,
int
the length of the vector.
vectorLength
)

Constructor to create a ByteArrayMonitor for the byte array instrument represented by the data in the given buffer.

Method Summary

Modifier and TypeMethod and Description
public byte[]

Returns:

byte[] - a copy of the current value of the elements of the byte array instrument.
byteArrayValue
()

Implements sun.jvmstat.monitor.ByteArrayMonitor.byteArrayValue.

Get a copy of the elements of the byte array instrument.

public byte

Returns:

byte - a copy of the current value of the element at index index of the byte array instrument.
byteAt
(int index)

Implements sun.jvmstat.monitor.ByteArrayMonitor.byteAt.

Get the current value of an element of the byte array instrument.

public int

Returns:

int - the maximum length of the byte array.
getMaximumLength
()

Get the maximum length of the byte array for this byte array instrument.

public Object

Returns:

Object - a copy of the current value of the elements of the byte array instrument. The return type is guaranteed to be of type byte[].
getValue
()

Implements abstract sun.jvmstat.monitor.AbstractMonitor.getValue.

Implements sun.jvmstat.monitor.Monitor.getValue.

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

Inherited from sun.jvmstat.monitor.AbstractMonitor:
getBaseNamegetNamegetUnitsgetVariabilitygetVectorLengthisSupportedisVector

Field Detail

bbback to summary
pack-priv ByteBuffer bb

The buffer containing the data for the byte array instrument.

Constructor Detail

PerfByteArrayMonitorback to summary
public PerfByteArrayMonitor(String name, Units u, Variability v, boolean supported, ByteBuffer bb, int vectorLength)

Constructor to create a ByteArrayMonitor for the byte array instrument represented by the data in the given buffer.

Parameters
name:String

the name of the instrumentation object

u:Units

the units of measure attribute

v:Variability

the variability attribute

supported:boolean

support level indicator

bb:ByteBuffer

the buffer containing the byte array instrument data

vectorLength:int

the length of the vector.

Method Detail

byteArrayValueback to summary
public byte[] byteArrayValue()

Implements sun.jvmstat.monitor.ByteArrayMonitor.byteArrayValue.

Get a copy of the elements of the byte array instrument.

Returns:byte[]

byte[] - a copy of the current value of the elements of the byte array instrument.

byteAtback to summary
public byte byteAt(int index)

Implements sun.jvmstat.monitor.ByteArrayMonitor.byteAt.

Get the current value of an element of the byte array instrument.

Returns:byte

byte - a copy of the current value of the element at index index of the byte array instrument.

getMaximumLengthback to summary
public int getMaximumLength()

Get the maximum length of the byte array for this byte array instrument.

Returns:int

int - the maximum length of the byte array.

getValueback to summary
public Object getValue()

Implements abstract sun.jvmstat.monitor.AbstractMonitor.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 byte[] with a copy of the current elements of the ByteArrayInstrument.

Returns:Object

Object - a copy of the current value of the elements of the byte array instrument. The return type is guaranteed to be of type byte[].