public class PerfDataBuffer extends PerfDataBufferImpl
AbstractPerfDataBufferaliasCache, aliasMap, buffer, lvmid, monitors| Constructor and Description |
|---|
PerfDataBuffer(ByteBuffer buffer,
int lvmid)
Construct a PerfDataBufferImpl instance.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
buildMonitorMap(Map<String,Monitor> map)
build the map of Monitor objects.
|
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)
get the list of inserted and removed monitors since last called.
|
protected void |
getNewMonitors(Map<String,Monitor> map)
get the new Monitor objects from the Map of Monitor objects.
|
protected Monitor |
getNextMonitorEntry()
method to extract the next monitor entry from the instrumentation memory.
|
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.
|
findByAlias, findByName, findByPattern, getBytes, getCapacity, getLocalVmId, getMonitorStatuspublic PerfDataBuffer(ByteBuffer buffer, int lvmid) throws MonitorException
This class is dynamically loaded by
AbstractPerfDataBuffer.createPerfDataBuffer(java.nio.ByteBuffer, int), and this
constructor is called to instantiate the instance.
buffer - the buffer containing the instrumentation datalvmid - the Local Java Virtual Machine Identifier for this
instrumentation buffer.MonitorExceptionprotected void buildMonitorMap(Map<String,Monitor> map) throws MonitorException
buildMonitorMap in class PerfDataBufferImplmap - the map of Monitors.MonitorException - Thrown if communications errors occur
while communicating with the target.protected void getNewMonitors(Map<String,Monitor> map) throws MonitorException
getNewMonitors in class PerfDataBufferImplmap - the map of Monitors.MonitorException - Thrown if communications errors occur
while communicating with the target.protected MonitorStatus getMonitorStatus(Map<String,Monitor> map) throws MonitorException
getMonitorStatus in class PerfDataBufferImplmap - the map of Monitors.MonitorException - Thrown if communications errors occur
while communicating with the target.protected void buildPseudoMonitors(Map<String,Monitor> map)
protected void synchWithTarget(Map<String,Monitor> map) throws MonitorException
MonitorExceptionprotected Monitor pollFor(Map<String,Monitor> map, String name, long timeLimit) throws MonitorException
MonitorExceptionprotected void kludge(Map<String,Monitor> map)
protected Monitor getNextMonitorEntry() throws MonitorException
MonitorExceptionCopyright © 2017–2018 earcam. All rights reserved.