public class

PerfByteArrayMonitor

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

Class Overview

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.

See Also
  • sun.jvmstat.instrument.ByteArrayInstrument

Summary

[Expand]
Inherited Fields
From class sun.jvmstat.monitor.AbstractMonitor
Public Constructors
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.
Public Methods
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. The object returned contains a byte[] with a copy of the current elements of the ByteArrayInstrument.
[Expand]
Inherited Methods
From class sun.jvmstat.monitor.AbstractMonitor
From class java.lang.Object
From interface sun.jvmstat.monitor.ByteArrayMonitor
From interface sun.jvmstat.monitor.Monitor

Public Constructors

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 the name of the instrumentation object
u the units of measure attribute
v the variability attribute
supported support level indicator
bb the buffer containing the byte array instrument data
vectorLength the length of the vector.

Public Methods

public byte[] byteArrayValue ()

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

Returns
  • byte[] - a copy of the current value 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.

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

public int getMaximumLength ()

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

Returns
  • int - the maximum length of the byte array.

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.

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[].