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

public Class PerfStringCounter

extends PerfByteArrayCounter
implements StringCounter
Class Inheritance
All Implemented Interfaces
sun.management.counter.StringCounter, sun.management.counter.Counter, java.io.Serializable
Imports
sun.management.counter.*, java.nio.ByteBuffer, .ReadOnlyBufferException, java.nio.charset.Charset

Field Summary

Modifier and TypeField and Description
private static Charset
private static final long
Inherited from sun.management.counter.perf.PerfByteArrayCounter:
bb

Constructor Summary

AccessConstructor and Description
pack-priv
pack-priv
PerfStringCounter(String name, Variability v, int flags, int maxLength, ByteBuffer bb)

Method Summary

Modifier and TypeMethod and Description
public Object
getValue()

Overrides sun.management.counter.perf.PerfByteArrayCounter.getValue.

Implements sun.management.counter.Counter.getValue.

Returns an Object that encapsulates the data value of this counter

public int
public boolean
isVector()

Overrides sun.management.counter.AbstractCounter.isVector.

Implements sun.management.counter.Counter.isVector.

Returns true if this performance counter is a vector

public String
stringValue()

Implements sun.management.counter.StringCounter.stringValue.

Get a copy of the value of the StringCounter.

protected Object
Inherited from sun.management.counter.perf.PerfByteArrayCounter:
byteArrayValuebyteAttoString

Field Detail

defaultCharsetback to summary
private static Charset defaultCharset
serialVersionUIDback to summary
private static final long serialVersionUID

Hides sun.management.counter.perf.PerfByteArrayCounter.serialVersionUID.

Constructor Detail

PerfStringCounterback to summary
pack-priv PerfStringCounter(String name, Variability v, int flags, ByteBuffer bb)
PerfStringCounterback to summary
pack-priv PerfStringCounter(String name, Variability v, int flags, int maxLength, ByteBuffer bb)

Method Detail

getValueback to summary
public Object getValue()

Overrides sun.management.counter.perf.PerfByteArrayCounter.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

getVectorLengthback to summary
public int getVectorLength()

Overrides sun.management.counter.AbstractCounter.getVectorLength.

Implements sun.management.counter.Counter.getVectorLength.

Doc from sun.management.counter.Counter.getVectorLength.

Returns the length of the vector

isVectorback to summary
public boolean isVector()

Overrides sun.management.counter.AbstractCounter.isVector.

Implements sun.management.counter.Counter.isVector.

Doc from sun.management.counter.Counter.isVector.

Returns true if this performance counter is a vector

stringValueback to summary
public String stringValue()

Implements sun.management.counter.StringCounter.stringValue.

Doc from sun.management.counter.StringCounter.stringValue.

Get a copy of the value of the StringCounter.

writeReplaceback to summary
protected Object writeReplace() throws ObjectStreamException

Overrides sun.management.counter.perf.PerfByteArrayCounter.writeReplace.

Serialize as a snapshot object.