Class DiagnosticsMBeanForwarder
java.lang.Object
org.jppf.management.forwarding.AbstractMBeanForwarder
org.jppf.management.forwarding.generated.DiagnosticsMBeanForwarder
Forwarding proxy for the
DiagnosticsMBean MBean.
MBean description: management and monitoring of the JVM health.- Since:
- 6.2
-
Constructor Summary
ConstructorsConstructorDescriptionInitialize this proxy. -
Method Summary
Modifier and TypeMethodDescriptioncpuLoad(NodeSelector selector) Invoke thecpuLoadoperation for all selected nodes (get an approximation of the current CPU load).gc(NodeSelector selector) Invoke thegcoperation for all selected nodes (perform a full garbage collection by calling System.gc()).ResultsMap<String,List<JPPFProperty<?>>> getMonitoringDataProperties(NodeSelector selector) Get the value of theMonitoringDataPropertiesattribute for all selected nodes (The list of monitoring data properties available in the snapshots).hasDeadlock(NodeSelector selector) Invoke thehasDeadlockoperation for all selected nodes (determine whether a deadlock is detected in the JVM).healthSnapshot(NodeSelector selector) Invoke thehealthSnapshotoperation for all selected nodes (get a summarized snapshot of the JVM health).healthSnapshotAsString(NodeSelector selector) Invoke thehealthSnapshotAsStringoperation for all selected nodes (get a a string representation of a JVM health snapshot.heapDump(NodeSelector selector) Invoke theheapDumpoperation for all selected nodes (trigger a heap dump of the JVM).memoryInformation(NodeSelector selector) Invoke thememoryInformationoperation for all selected nodes (get the current state of the heap and non-heap memory for the JVM).threadDump(NodeSelector selector) Invoke thethreadDumpoperation for all selected nodes (get a full thread dump, including detection of deadlocks).threadNames(NodeSelector selector) Invoke thethreadNamesoperation for all selected nodes (get the names of all live threads in the current JVM).Methods inherited from class org.jppf.management.forwarding.AbstractMBeanForwarder
addNotificationListener, addNotificationListener, getAttribute, invoke, invoke, removeAllNotificationListeners, removeNotificationListener, setAttribute
-
Constructor Details
-
DiagnosticsMBeanForwarder
Initialize this proxy.- Parameters:
jmx- aJMXDriverConnectionWrapperinstance.- Throws:
Exception- if any error occurs..
-
-
Method Details
-
getMonitoringDataProperties
public ResultsMap<String,List<JPPFProperty<?>>> getMonitoringDataProperties(NodeSelector selector) throws Exception Get the value of theMonitoringDataPropertiesattribute for all selected nodes (The list of monitoring data properties available in the snapshots).- Parameters:
selector- aNodeSelectorinstance.- Returns:
- a mapping of node uuids to
List<JPPFProperty<?>>instances. - Throws:
Exception- if any error occurs.
-
gc
Invoke thegcoperation for all selected nodes (perform a full garbage collection by calling System.gc()).- Parameters:
selector- aNodeSelectorinstance.- Returns:
- a mapping of node uuids to objects that wrap either
nullor an exeption. - Throws:
Exception- if any error occurs.
-
threadDump
Invoke thethreadDumpoperation for all selected nodes (get a full thread dump, including detection of deadlocks).- Parameters:
selector- aNodeSelectorinstance.- Returns:
- a mapping of node uuids to objects that wrap either a [@link ThreadDump} or an exeption.
- Throws:
Exception- if any error occurs.
-
threadNames
Invoke thethreadNamesoperation for all selected nodes (get the names of all live threads in the current JVM).- Parameters:
selector- aNodeSelectorinstance.- Returns:
- a mapping of node uuids to objects that wrap either a [@link String[]} or an exeption.
- Throws:
Exception- if any error occurs.
-
hasDeadlock
Invoke thehasDeadlockoperation for all selected nodes (determine whether a deadlock is detected in the JVM).- Parameters:
selector- aNodeSelectorinstance.- Returns:
- a mapping of node uuids to objects that wrap either a [@link Boolean} or an exeption.
- Throws:
Exception- if any error occurs.
-
healthSnapshot
Invoke thehealthSnapshotoperation for all selected nodes (get a summarized snapshot of the JVM health).- Parameters:
selector- aNodeSelectorinstance.- Returns:
- a mapping of node uuids to objects that wrap either a [@link HealthSnapshot} or an exeption.
- Throws:
Exception- if any error occurs.
-
heapDump
Invoke theheapDumpoperation for all selected nodes (trigger a heap dump of the JVM).- Parameters:
selector- aNodeSelectorinstance.- Returns:
- a mapping of node uuids to objects that wrap either a [@link String} or an exeption.
- Throws:
Exception- if any error occurs.
-
cpuLoad
Invoke thecpuLoadoperation for all selected nodes (get an approximation of the current CPU load).- Parameters:
selector- aNodeSelectorinstance.- Returns:
- a mapping of node uuids to objects that wrap either a [@link Double} or an exeption.
- Throws:
Exception- if any error occurs.
-
healthSnapshotAsString
Invoke thehealthSnapshotAsStringoperation for all selected nodes (get a a string representation of a JVM health snapshot. The returned string contains a set of key / value pairs separated by new lines).- Parameters:
selector- aNodeSelectorinstance.- Returns:
- a mapping of node uuids to objects that wrap either a [@link String} or an exeption.
- Throws:
Exception- if any error occurs.
-
memoryInformation
public ResultsMap<String,MemoryInformation> memoryInformation(NodeSelector selector) throws Exception Invoke thememoryInformationoperation for all selected nodes (get the current state of the heap and non-heap memory for the JVM).- Parameters:
selector- aNodeSelectorinstance.- Returns:
- a mapping of node uuids to objects that wrap either a [@link MemoryInformation} or an exeption.
- Throws:
Exception- if any error occurs.
-