APIdia Launch Partner
Top Fields Constructors Methods
sun.management.counter.perf

public Class PerfByteArrayCounter

extends AbstractCounter
implements ByteArrayCounter
Class Inheritance
All Implemented Interfaces
sun.management.counter.ByteArrayCounter, sun.management.counter.Counter, java.io.Serializable
Known Direct Subclasses
sun.management.counter.perf.PerfStringCounter
Imports
sun.management.counter.*, java.nio.*

Field Summary

Modifier and TypeField and Description
pack-priv ByteBuffer
private static final long

Constructor Summary

AccessConstructor and Description
pack-priv
PerfByteArrayCounter(String name, Units u, Variability v, int flags, int vectorLength, ByteBuffer bb)

Method Summary

Modifier and TypeMethod and Description
public byte[]
byteArrayValue()

Implements sun.management.counter.ByteArrayCounter.byteArrayValue.

Get a copy of the elements of the ByteArrayCounter.

public byte
byteAt(int index)

Implements sun.management.counter.ByteArrayCounter.byteAt.

Get the value of an element of the ByteArrayCounter object.

public Object
getValue()

Implements abstract sun.management.counter.AbstractCounter.getValue.

Implements sun.management.counter.Counter.getValue.

Returns an Object that encapsulates the data value of this counter

public String
toString()

Overrides sun.management.counter.AbstractCounter.toString.

Returns a string representation of the object.

protected Object
writeReplace()

Serialize as a snapshot object.

Inherited from sun.management.counter.AbstractCounter:
getFlagsgetNamegetUnitsgetVariabilitygetVectorLengthisInternalisVector

Field Detail

bbback to summary
pack-priv ByteBuffer bb
Annotations
@SuppressWarnings:serial
serialVersionUIDback to summary
private static final long serialVersionUID

Hides sun.management.counter.AbstractCounter.serialVersionUID.

Constructor Detail

PerfByteArrayCounterback to summary
pack-priv PerfByteArrayCounter(String name, Units u, Variability v, int flags, int vectorLength, ByteBuffer bb)

Method Detail

byteArrayValueback to summary
public byte[] byteArrayValue()

Implements sun.management.counter.ByteArrayCounter.byteArrayValue.

Get a copy of the elements of the ByteArrayCounter.

byteAtback to summary
public byte byteAt(int index)

Implements sun.management.counter.ByteArrayCounter.byteAt.

Get the value of an element of the ByteArrayCounter object.

getValueback to summary
public Object getValue()

Implements abstract sun.management.counter.AbstractCounter.getValue.

Implements sun.management.counter.Counter.getValue.

Doc from sun.management.counter.Counter.getValue.

Returns an Object that encapsulates the data value of this counter

toStringback to summary
public String toString()

Overrides sun.management.counter.AbstractCounter.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

writeReplaceback to summary
protected Object writeReplace() throws ObjectStreamException

Serialize as a snapshot object.