AbstractPerfDataBuffer
Modifier and Type | Field and Description |
---|---|
protected Map | aliasCache
A cache of resolved monitor aliases. |
protected Map | aliasMap
A Map of monitor object names to aliases as read in from the alias map file. |
protected ByteBuffer | buffer
The buffer containing the instrumentation data. |
protected int | lvmid
The Local Java Virtual Machine Identifier for this buffer. |
protected Map | monitors
A Map of monitor objects found in the instrumentation buffer. |
Access | Constructor and Description |
---|---|
protected | PerfDataBufferImpl(ByteBuffer
the ByteBuffer containing the instrumentation data. buffer, int the Local Java Virtual Machine Identifier for this
instrumentation buffer. lvmid)Constructor. |
Modifier and Type | Method and Description |
---|---|
private void | |
protected abstract void | |
protected Monitor | |
public Monitor | Returns: Monitor - theMonitor object that can be used to
monitor the named instrumentation object, or
null if the named object doesn't exist.the name of the Instrumentation object to find. name)Find a named Instrumentation object. |
public List | Returns: List<Monitor> - a List of 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.a string containing a pattern as described in
patternString)java. .Find all Instrumentation objects with names matching the given pattern. |
pack-priv ByteBuffer | Returns: ByteBuffer - a ByteBuffer object that refers to the instrumentation data.Get the ByteBuffer containing the instrumentation data. |
public byte[] | Returns: byte[] - a copy of the bytes in the instrumentation buffer.Get a copy of the raw instrumentation data. |
public int | Returns: int - the capacity, or size, of the instrumentation buffer.Get the capacity of the instrumentation buffer. |
public int | Returns: int - the lvmidGet the Local Java Virtual Machine Identifier, or lvmid for the target JVM associated with this instrumentation buffer. |
public MonitorStatus | Returns: MonitorStatus - the status of available Monitors for the target Java Virtual Machine.Get a list of the inserted and removed monitors since last called. |
protected abstract MonitorStatus | getMonitorStatus(Map<String, Monitor>
the map of Monitors. m)get the list of inserted and removed monitors since last called. |
protected abstract void | getNewMonitors(Map<String, Monitor>
the map of Monitors. m)get the new Monitor objects from the Map of Monitor objects. |
aliasCache | back to summary |
---|---|
protected Map<String, Monitor> aliasCache A cache of resolved monitor aliases. |
aliasMap | back to summary |
---|---|
protected Map<String, ArrayList<String>> aliasMap A Map of monitor object names to aliases as read in from the alias map file. |
buffer | back to summary |
---|---|
protected ByteBuffer buffer The buffer containing the instrumentation data. |
lvmid | back to summary |
---|---|
protected int lvmid The Local Java Virtual Machine Identifier for this buffer. |
monitors | back to summary |
---|---|
protected Map<String, Monitor> monitors A Map of monitor objects found in the instrumentation buffer. |
PerfDataBufferImpl | back to summary |
---|---|
protected PerfDataBufferImpl(ByteBuffer buffer, int lvmid) Constructor.
|
buildAliasMap | back to summary |
---|---|
private void buildAliasMap() Build the alias mapping. Uses the default alias map file unless the sun.jvmstat.perfdata.aliasmap file indicates some other file as the source.
|
buildMonitorMap | back to summary |
---|---|
protected abstract void buildMonitorMap(Map<String, Monitor> m) throws MonitorException build the map of Monitor objects.
|
findByAlias | back to summary |
---|---|
protected Monitor findByAlias(String name) Find the Monitor object for the named counter by using one of its aliases. |
findByName | back to summary |
---|---|
public Monitor findByName(String name) throws MonitorException Find a named Instrumentation object.
This method will look for the named instrumentation object in the
instrumentation exported by this Java Virtual Machine. If an
instrumentation object with the given name exists, a Monitor interface
to that object will be return. Otherwise, the method returns
|
findByPattern | back to summary |
---|---|
public List Find all Instrumentation objects with names matching the given pattern.
This method returns a
|
getByteBuffer | back to summary |
---|---|
pack-priv ByteBuffer getByteBuffer() Get the ByteBuffer containing the instrumentation data.
|
getBytes | back to summary |
---|---|
public byte[] getBytes() Get a copy of the raw instrumentation data. This method is used to get a copy of the current bytes in the instrumentation buffer. It is generally used for transporting those bytes over the network.
|
getCapacity | back to summary |
---|---|
public int getCapacity() Get the capacity of the instrumentation buffer.
|
getLocalVmId | back to summary |
---|---|
public int getLocalVmId() Get the Local Java Virtual Machine Identifier, or lvmid for the target JVM associated with this instrumentation buffer.
|
getMonitorStatus | back to summary |
---|---|
public MonitorStatus getMonitorStatus() throws MonitorException Get a list of the inserted and removed monitors since last called.
|
getMonitorStatus | back to summary |
---|---|
protected abstract MonitorStatus getMonitorStatus(Map<String, Monitor> m) throws MonitorException get the list of inserted and removed monitors since last called.
|
getNewMonitors | back to summary |
---|---|
protected abstract void getNewMonitors(Map<String, Monitor> m) throws MonitorException get the new Monitor objects from the Map of Monitor objects.
|