| Package | Description |
|---|---|
| sun.jvmstat.monitor |
Provides classes for monitoring instrumented HotSpot Java Virtual Machines.
|
| sun.jvmstat.monitor.remote |
Provides interfaces supporting remote monitoring for instrumented
HotSpot Java Virtual Machines.
|
| sun.jvmstat.perfdata.monitor |
Provides the monitoring implementation classes that utilize the HotSpot
PerfData shared memory instrumentation buffer for discovery and monitoring
of instrumentation exported by a HotSpot Java Virtual Machine.
|
| sun.jvmstat.perfdata.monitor.protocol.file |
Provides the implementation classes for the file: protocol for
the HotSpot PerfData instrumentation buffer monitoring implementation.
|
| sun.jvmstat.perfdata.monitor.protocol.local |
Provides the implementation classes for the local: protocol for
the HotSpot PerfData instrumentation buffer monitoring implementation.
|
| sun.jvmstat.perfdata.monitor.protocol.rmi |
Provides the implementation classes for the rmi: protocol for
the HotSpot PerfData instrumentation buffer monitoring implementation.
|
| sun.jvmstat.perfdata.monitor.v1_0 | |
| sun.jvmstat.perfdata.monitor.v2_0 |
| Modifier and Type | Method and Description |
|---|---|
abstract Set<Integer> |
MonitoredHost.activeVms()
Return the current set of active Java Virtual Machines for this
MonitoredHost.
|
abstract void |
MonitoredHost.addHostListener(HostListener listener)
Add a HostListener.
|
void |
MonitoredVm.addVmListener(VmListener listener)
Add a VmListener.
|
static String |
MonitoredVmUtil.commandLine(MonitoredVm vm)
Return the command line for the target Java application.
|
abstract void |
MonitoredHost.detach(MonitoredVm vm)
Detach from the indicated MonitoredVm.
|
Monitor |
MonitoredVm.findByName(String name)
Find a named Instrumentation object.
|
List<Monitor> |
MonitoredVm.findByPattern(String patternString)
Find all Instrumentation objects with names matching the given pattern.
|
static MonitoredHost |
MonitoredHost.getMonitoredHost(HostIdentifier hostId)
Factory method to construct a MonitoredHost instance to manage the
connection to the host indicated by hostId.
|
static MonitoredHost |
MonitoredHost.getMonitoredHost(String hostIdString)
Factory method to construct MonitoredHost instances to manage
connections to the host indicated by hostIdString
|
static MonitoredHost |
MonitoredHost.getMonitoredHost(VmIdentifier vmid)
Factory method to construct a MonitoredHost instance to manage the
connection to the Java Virtual Machine indicated by vmid.
|
abstract MonitoredVm |
MonitoredHost.getMonitoredVm(VmIdentifier id)
Get the MonitoredVm for the given Java Virtual Machine.
|
abstract MonitoredVm |
MonitoredHost.getMonitoredVm(VmIdentifier id,
int interval)
Get the MonitoredVm for the given Java Virtual Machine.
|
static boolean |
MonitoredVmUtil.isAttachable(MonitoredVm vm)
Returns true if the VM supports attach-on-demand.
|
static String |
MonitoredVmUtil.jvmArgs(MonitoredVm vm)
Return the JVM arguments for the target Java application.
|
static String |
MonitoredVmUtil.jvmFlags(MonitoredVm vm)
Return the JVM flags for the target Java application.
|
static String |
MonitoredVmUtil.mainArgs(MonitoredVm vm)
Return the arguments to the main class for the target Java application.
|
static String |
MonitoredVmUtil.mainClass(MonitoredVm vm,
boolean fullPath)
Return the main class for the target Java application.
|
abstract void |
MonitoredHost.removeHostListener(HostListener listener)
Remove a HostListener.
|
void |
MonitoredVm.removeVmListener(VmListener listener)
Remove a VmListener.
|
VmIdentifier |
HostIdentifier.resolve(VmIdentifier vmid)
Resolve a VmIdentifier with this HostIdentifier.
|
protected static HostIdentifier |
MonitoredHost.resolveHostId(HostIdentifier hostId)
Method to resolve unspecified components of the given HostIdentifier
by constructing a new HostIdentifier that replaces the unspecified
components with the default values.
|
static String |
MonitoredVmUtil.vmVersion(MonitoredVm vm)
Return the Java Virtual Machine Version.
|
| Modifier and Type | Method and Description |
|---|---|
int[] |
RemoteHost.activeVms()
Get a list of Local Virtual Machine Identifiers for the active
Java Virtual Machine the remote system.
|
RemoteVm |
RemoteHost.attachVm(int vmid,
String mode)
Remote method to attach to a remote HotSpot Java Virtual Machine
identified by
vmid. |
void |
RemoteHost.detachVm(RemoteVm rvm)
Remote method to detach from a remote HotSpot Java Virtual Machine
identified by
vmid. |
| Modifier and Type | Class and Description |
|---|---|
class |
MonitorDataException
Exception indicating that improperly formatted data was encountered
while parsing a HotSpot PerfData buffer.
|
class |
MonitorStructureException
Exception indicating that improperly formatted data was encountered
while parsing a HotSpot PerfData buffer.
|
class |
MonitorTypeException
Exception indicating that an unexpected type was encountered for
the type field of a PerfData entry in a HotSpot PerfData buffer.
|
class |
MonitorVersionException
Exception thrown when version of the implementation does not
match the version of the instrumentation exported by a target
Java Virtual Machine.
|
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
PerfDataBufferImpl.buildMonitorMap(Map<String,Monitor> m)
build the map of Monitor objects.
|
protected void |
AbstractPerfDataBuffer.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 |
AbstractPerfDataBuffer.findByName(String name)
Find a named Instrumentation object.
|
Monitor |
PerfDataBufferImpl.findByName(String name)
Find a named Instrumentation object.
|
Monitor |
AbstractMonitoredVm.findByName(String name)
Find a named Instrumentation object.
|
List<Monitor> |
AbstractPerfDataBuffer.findByPattern(String patternString)
Find all Instrumentation objects with names matching the given pattern.
|
List<Monitor> |
PerfDataBufferImpl.findByPattern(String patternString)
Find all Instrumentation objects with names matching the given pattern.
|
List<Monitor> |
AbstractMonitoredVm.findByPattern(String patternString)
Find all Instrumentation objects with names matching the given pattern.
|
MonitorStatus |
AbstractPerfDataBuffer.getMonitorStatus()
Get a list of the inserted and removed monitors since last called.
|
MonitorStatus |
PerfDataBufferImpl.getMonitorStatus()
Get a list of the inserted and removed monitors since last called.
|
MonitorStatus |
AbstractMonitoredVm.getMonitorStatus()
Get a list of the inserted and removed monitors since last called.
|
protected abstract MonitorStatus |
PerfDataBufferImpl.getMonitorStatus(Map<String,Monitor> m)
get the list of inserted and removed monitors since last called.
|
protected abstract void |
PerfDataBufferImpl.getNewMonitors(Map<String,Monitor> m)
get the new Monitor objects from the Map of Monitor objects.
|
| Constructor and Description |
|---|
AbstractMonitoredVm(VmIdentifier vmid,
int interval)
Create an AbstractMonitoredVm instance.
|
AbstractPerfDataBufferPrologue(ByteBuffer byteBuffer)
Construct a PerfDataBufferPrologue instance.
|
| Modifier and Type | Method and Description |
|---|---|
MonitoredVm |
MonitoredHostProvider.getMonitoredVm(VmIdentifier vmid)
Get the MonitoredVm for the given Java Virtual Machine.
|
MonitoredVm |
MonitoredHostProvider.getMonitoredVm(VmIdentifier vmid,
int interval)
Get the MonitoredVm for the given Java Virtual Machine.
|
| Constructor and Description |
|---|
FileMonitoredVm(VmIdentifier vmid,
int interval)
Create a FileMonitoredVm instance.
|
PerfDataBuffer(VmIdentifier vmid)
Create a PerfDataBuffer instance for accessing the specified
instrumentation buffer.
|
| Modifier and Type | Method and Description |
|---|---|
MonitoredVm |
MonitoredHostProvider.getMonitoredVm(VmIdentifier vmid)
Get the MonitoredVm for the given Java Virtual Machine.
|
MonitoredVm |
MonitoredHostProvider.getMonitoredVm(VmIdentifier vmid,
int interval)
Get the MonitoredVm for the given Java Virtual Machine.
|
| Constructor and Description |
|---|
LocalMonitoredVm(VmIdentifier vmid,
int interval)
Create a LocalMonitoredVm instance.
|
PerfDataBuffer(VmIdentifier vmid)
Create a PerfDataBuffer instance for accessing the specified
instrumentation buffer.
|
| Modifier and Type | Method and Description |
|---|---|
Set<Integer> |
MonitoredHostProvider.activeVms()
Return the current set of active Java Virtual Machines for this
MonitoredHost.
|
Set<Integer> |
RemoteVmManager.activeVms()
Return the current set of monitorable Java Virtual Machines.
|
void |
RemoteMonitoredVm.attach()
Method to attach to the remote MonitoredVm.
|
void |
MonitoredHostProvider.detach(MonitoredVm vm)
Detach from the indicated MonitoredVm.
|
MonitoredVm |
MonitoredHostProvider.getMonitoredVm(VmIdentifier vmid)
Get the MonitoredVm for the given Java Virtual Machine.
|
MonitoredVm |
MonitoredHostProvider.getMonitoredVm(VmIdentifier vmid,
int interval)
Get the MonitoredVm for the given Java Virtual Machine.
|
| Constructor and Description |
|---|
MonitoredHostProvider(HostIdentifier hostId)
Create a MonitoredHostProvider instance using the given HostIdentifier.
|
PerfDataBuffer(RemoteVm rvm,
int lvmid)
Create a PerfDataBuffer instance for accessing the specified
instrumentation buffer.
|
RemoteMonitoredVm(RemoteVm rvm,
VmIdentifier vmid,
Timer timer,
int interval)
Create a RemoteMonitoredVm instance.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
PerfDataBuffer.buildMonitorMap(Map<String,Monitor> map)
build the map of Monitor objects.
|
protected MonitorStatus |
PerfDataBuffer.getMonitorStatus(Map<String,Monitor> map)
get the list of inserted and removed monitors since last called.
|
protected void |
PerfDataBuffer.getNewMonitors(Map<String,Monitor> map)
get the new Monitor objects from the Map of Monitor objects.
|
protected Monitor |
PerfDataBuffer.getNextMonitorEntry()
method to extract the next monitor entry from the instrumentation memory.
|
protected Monitor |
PerfDataBuffer.pollFor(Map<String,Monitor> map,
String name,
long timeLimit)
Method to poll the instrumentation memory for a counter with
the given name.
|
protected void |
PerfDataBuffer.synchWithTarget(Map<String,Monitor> map)
Method to provide a gross level of synchronization with the
target monitored jvm.
|
| Constructor and Description |
|---|
PerfDataBuffer(ByteBuffer buffer,
int lvmid)
Construct a PerfDataBufferImpl instance.
|
PerfDataBufferPrologue(ByteBuffer byteBuffer)
Create an instance of PerfDataBufferPrologue from the given
ByteBuffer object.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
PerfDataBuffer.buildMonitorMap(Map<String,Monitor> map)
build the map of Monitor objects.
|
protected MonitorStatus |
PerfDataBuffer.getMonitorStatus(Map<String,Monitor> map)
get the list of inserted and removed monitors since last called.
|
protected void |
PerfDataBuffer.getNewMonitors(Map<String,Monitor> map)
get the new Monitor objects from the Map of Monitor objects.
|
protected Monitor |
PerfDataBuffer.getNextMonitorEntry()
method to extract the next monitor entry from the instrumentation memory.
|
protected void |
PerfDataBuffer.synchWithTarget()
Method that waits until the target jvm indicates that
its shared memory is safe to access.
|
| Constructor and Description |
|---|
PerfDataBuffer(ByteBuffer buffer,
int lvmid)
Construct a PerfDataBuffer instance.
|
PerfDataBufferPrologue(ByteBuffer byteBuffer)
Create an instance of PerfDataBufferPrologue from the given
ByteBuffer object.
|
Copyright © 2017–2018 earcam. All rights reserved.