|
Jvmstat | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsun.jvmstat.perfdata.monitor.AbstractPerfDataBuffer
public abstract class AbstractPerfDataBuffer
Abstraction for the HotSpot PerfData instrumentation buffer. This class is responsible for acquiring access to the instrumentation buffer for a target HotSpot Java Virtual Machine and providing method level access to its contents.
Field Summary | |
---|---|
protected PerfDataBufferImpl |
impl
Reference to the concrete instance created by the createPerfDataBuffer(java.nio.ByteBuffer, int) method. |
Constructor Summary | |
---|---|
AbstractPerfDataBuffer()
|
Method Summary | |
---|---|
protected void |
createPerfDataBuffer(ByteBuffer bb,
int lvmid)
Create the perfdata instrumentation buffer for the given lvmid using the given ByteBuffer object as the source of the instrumentation data. |
Monitor |
findByName(String name)
Find a named Instrumentation object. |
List |
findByPattern(String patternString)
Find all Instrumentation objects with names matching the given pattern. |
ByteBuffer |
getByteBuffer()
Get the ByteBuffer containing the instrumentation data. |
byte[] |
getBytes()
Get a copy of the raw instrumentation data. |
int |
getCapacity()
Get the capacity of the instrumentation buffer. |
int |
getLocalVmId()
Get the Local Java Virtual Machine Identifier, or lvmid for the target JVM associated with this instrumentation buffer. |
MonitorStatus |
getMonitorStatus()
Get a list of the inserted and removed monitors since last called. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected PerfDataBufferImpl impl
createPerfDataBuffer(java.nio.ByteBuffer, int)
method.
Constructor Detail |
---|
public AbstractPerfDataBuffer()
Method Detail |
---|
public int getLocalVmId()
public byte[] getBytes()
public int getCapacity()
public Monitor findByName(String name) throws MonitorException
name
- the name of the Instrumentation object to find.
Monitor
object that can be used to
monitor the the named instrumentation object, or
null if the named object doesn't exist.
MonitorException
- Thrown if an error occurs while communicating
with the target Java Virtual Machine.public List findByPattern(String patternString) throws MonitorException
List
of Monitor objects such that
the name of each object matches the given pattern.
patternString
- a string containing a pattern as described in
Pattern
.
Monitor
objects that can be used to
monitor the instrumentation objects whose names match
the given pattern. If no instrumentation objects have`
names matching the given pattern, then an empty List
is returned.
MonitorException
- Thrown if an error occurs while communicating
with the target Java Virtual Machine.Pattern
public MonitorStatus getMonitorStatus() throws MonitorException
MonitorException
- Thrown if communications errors occur
while communicating with the target.public ByteBuffer getByteBuffer()
protected void createPerfDataBuffer(ByteBuffer bb, int lvmid) throws MonitorException
bb
- the ByteBuffer that references the instrumentation data.lvmid
- the Local Java Virtual Machine identifier for this
instrumentation buffer.
MonitorException
|
Jvmstat | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |