
public class PerfByteArrayMonitor extends AbstractMonitor implements ByteArrayMonitor
sun.jvmstat.instrument.ByteArrayInstrumentname, supported, units, variability, vectorLength| Constructor and Description |
|---|
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.
|
| Modifier and Type | Method and Description |
|---|---|
byte[] |
byteArrayValue()
Get a copy of the elements of the byte array instrument.
|
byte |
byteAt(int index)
Get the current value of an element of the byte array instrument.
|
int |
getMaximumLength()
Get the maximum length of the byte array for this byte array instrument.
|
Object |
getValue()
Return an Object that encapsulates this instrumentation object's
current data value.
|
getBaseName, getName, getUnits, getVariability, getVectorLength, isSupported, isVectorclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetBaseName, getName, getUnits, getVariability, getVectorLength, isSupported, isVectorpublic PerfByteArrayMonitor(String name, Units u, Variability v, boolean supported, ByteBuffer bb, int vectorLength)
name - the name of the instrumentation objectu - the units of measure attributev - the variability attributesupported - support level indicatorbb - the buffer containing the byte array instrument datavectorLength - the length of the vector.public Object getValue()
getValue in interface MonitorgetValue in class AbstractMonitorpublic byte[] byteArrayValue()
byteArrayValue in interface ByteArrayMonitorpublic byte byteAt(int index)
byteAt in interface ByteArrayMonitorpublic int getMaximumLength()
Copyright © 2017–2018 earcam. All rights reserved.