| java.lang.Object sun.jvmstat.perfdata.monitor.PerfDataBufferImpl sun.jvmstat.perfdata.monitor.v1_0.PerfDataBuffer
PerfDataBuffer | public class PerfDataBuffer extends PerfDataBufferImpl (Code) | | The concrete implementation of version 1.0 of the HotSpot PerfData
Instrumentation buffer. This class is responsible for parsing the
instrumentation memory and constructing the necessary objects to
represent and access the instrumentation objects contained in the
memory buffer.
author: Brian Doherty version: 1.9, 05/09/07 since: 1.5 See Also: AbstractPerfDataBuffer |
Constructor Summary | |
public | PerfDataBuffer(ByteBuffer buffer, int lvmid) Construct a PerfDataBufferImpl instance. |
Method Summary | |
protected void | buildMonitorMap(Map<String, Monitor> map) | protected void | buildPseudoMonitors(Map<String, Monitor> map) Build the pseudo monitors used to map the prolog data into counters. | protected MonitorStatus | getMonitorStatus(Map<String, Monitor> map) | protected void | getNewMonitors(Map<String, Monitor> map) | protected Monitor | getNextMonitorEntry() method to extract the next monitor entry from the instrumentation memory.
assumes that nextEntry is the offset into the byte array
at which to start the search for the next entry. | protected void | kludge(Map<String, Monitor> map) method to make adjustments for known counter problems. | protected Monitor | pollFor(Map<String, Monitor> map, String name, long timeLimit) Method to poll the instrumentation memory for a counter with
the given name. | protected void | synchWithTarget(Map<String, Monitor> map) Method to provide a gross level of synchronization with the
target monitored jvm.
gross synchronization works by polling for the hotspot.rt.hrt.ticks
counter, which is the last counter created by the StatSampler
initialization code. |
lastModificationTime | long lastModificationTime(Code) | | |
perfDataItem | int perfDataItem(Code) | | |
pollForEntry | int pollForEntry(Code) | | |
PerfDataBuffer | public PerfDataBuffer(ByteBuffer buffer, int lvmid) throws MonitorException(Code) | | Construct a PerfDataBufferImpl instance.
This class is dynamically loaded by
AbstractPerfDataBuffer.createPerfDataBuffer , and this
constructor is called to instantiate the instance.
Parameters: buffer - the buffer containing the instrumentation data Parameters: lvmid - the Local Java Virtual Machine Identifier for thisinstrumentation buffer. |
buildPseudoMonitors | protected void buildPseudoMonitors(Map<String, Monitor> map)(Code) | | Build the pseudo monitors used to map the prolog data into counters.
|
getNextMonitorEntry | protected Monitor getNextMonitorEntry() throws MonitorException(Code) | | method to extract the next monitor entry from the instrumentation memory.
assumes that nextEntry is the offset into the byte array
at which to start the search for the next entry. method leaves
next entry pointing to the next entry or to the end of data.
|
kludge | protected void kludge(Map<String, Monitor> map)(Code) | | method to make adjustments for known counter problems. This
method depends on the availability of certain counters, which
is generally guaranteed by the synchWithTarget() method.
|
synchWithTarget | protected void synchWithTarget(Map<String, Monitor> map) throws MonitorException(Code) | | Method to provide a gross level of synchronization with the
target monitored jvm.
gross synchronization works by polling for the hotspot.rt.hrt.ticks
counter, which is the last counter created by the StatSampler
initialization code. The counter is updated when the watcher thread
starts scheduling tasks, which is the last thing done in vm
initialization.
|
|
|