| java.lang.Object sun.jvmstat.monitor.AbstractMonitor sun.jvmstat.perfdata.monitor.PerfByteArrayMonitor
All known Subclasses: sun.jvmstat.perfdata.monitor.PerfStringMonitor,
PerfByteArrayMonitor | public class PerfByteArrayMonitor extends AbstractMonitor implements ByteArrayMonitor(Code) | | 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 version: 1.8, 05/05/07 since: 1.5 See Also: sun.jvmstat.instrument.ByteArrayInstrument |
Field Summary | |
ByteBuffer | bb The buffer containing the data for the byte array instrument. |
Constructor 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. |
Method Summary | |
public byte[] | byteArrayValue() Get a copy of the elements of the byte array instrument. | public byte | byteAt(int index) Get the current value of an element of the byte array instrument. | public int | getMaximumLength() Get the maximum length of the byte array for this byte array instrument. | public Object | getValue() The object returned contains a byte[] with a copy of the current
elements of the ByteArrayInstrument.
Object - a copy of the current value of the elements of thebyte array instrument. |
bb | ByteBuffer bb(Code) | | The buffer containing the data for the byte array instrument.
|
PerfByteArrayMonitor | public PerfByteArrayMonitor(String name, Units u, Variability v, boolean supported, ByteBuffer bb, int vectorLength)(Code) | | Constructor to create a ByteArrayMonitor for the byte array instrument
represented by the data in the given buffer.
Parameters: name - the name of the instrumentation object Parameters: u - the units of measure attribute Parameters: v - the variability attribute Parameters: supported - support level indicator Parameters: bb - the buffer containing the byte array instrument data Parameters: vectorLength - the length of the vector. |
byteArrayValue | public byte[] byteArrayValue()(Code) | | Get a copy of the elements of the byte array instrument.
byte[] - a copy of the current value of the elements of thebyte array instrument. |
byteAt | public byte byteAt(int index)(Code) | | Get the current value of an element of the byte array instrument.
byte - a copy of the current value of the element at indexindex of the byte array instrument. |
getMaximumLength | public int getMaximumLength()(Code) | | Get the maximum length of the byte array for this byte array instrument.
int - the maximum length of the byte array. |
getValue | public Object getValue()(Code) | | The object returned contains a byte[] with a copy of the current
elements of the ByteArrayInstrument.
Object - a copy of the current value of the elements of thebyte array instrument. The return type is guaranteedto be of type byte[]. |
|
|