Class DiagnosticsMBeanForwarder

java.lang.Object
org.jppf.management.forwarding.AbstractMBeanForwarder
org.jppf.management.forwarding.generated.DiagnosticsMBeanForwarder

public class DiagnosticsMBeanForwarder extends AbstractMBeanForwarder
Forwarding proxy for the DiagnosticsMBean MBean. MBean description: management and monitoring of the JVM health.
Since:
6.2
  • Constructor Details

  • Method Details

    • getMonitoringDataProperties

      public ResultsMap<String,List<JPPFProperty<?>>> getMonitoringDataProperties(NodeSelector selector) throws Exception
      Get the value of the MonitoringDataProperties attribute for all selected nodes (The list of monitoring data properties available in the snapshots).
      Parameters:
      selector - a NodeSelector instance.
      Returns:
      a mapping of node uuids to List<JPPFProperty<?>> instances.
      Throws:
      Exception - if any error occurs.
    • gc

      public ResultsMap<String,Void> gc(NodeSelector selector) throws Exception
      Invoke the gc operation for all selected nodes (perform a full garbage collection by calling System.gc()).
      Parameters:
      selector - a NodeSelector instance.
      Returns:
      a mapping of node uuids to objects that wrap either null or an exeption.
      Throws:
      Exception - if any error occurs.
    • threadDump

      public ResultsMap<String,ThreadDump> threadDump(NodeSelector selector) throws Exception
      Invoke the threadDump operation for all selected nodes (get a full thread dump, including detection of deadlocks).
      Parameters:
      selector - a NodeSelector instance.
      Returns:
      a mapping of node uuids to objects that wrap either a [@link ThreadDump} or an exeption.
      Throws:
      Exception - if any error occurs.
    • threadNames

      public ResultsMap<String,String[]> threadNames(NodeSelector selector) throws Exception
      Invoke the threadNames operation for all selected nodes (get the names of all live threads in the current JVM).
      Parameters:
      selector - a NodeSelector instance.
      Returns:
      a mapping of node uuids to objects that wrap either a [@link String[]} or an exeption.
      Throws:
      Exception - if any error occurs.
    • hasDeadlock

      public ResultsMap<String,Boolean> hasDeadlock(NodeSelector selector) throws Exception
      Invoke the hasDeadlock operation for all selected nodes (determine whether a deadlock is detected in the JVM).
      Parameters:
      selector - a NodeSelector instance.
      Returns:
      a mapping of node uuids to objects that wrap either a [@link Boolean} or an exeption.
      Throws:
      Exception - if any error occurs.
    • healthSnapshot

      public ResultsMap<String,HealthSnapshot> healthSnapshot(NodeSelector selector) throws Exception
      Invoke the healthSnapshot operation for all selected nodes (get a summarized snapshot of the JVM health).
      Parameters:
      selector - a NodeSelector instance.
      Returns:
      a mapping of node uuids to objects that wrap either a [@link HealthSnapshot} or an exeption.
      Throws:
      Exception - if any error occurs.
    • heapDump

      public ResultsMap<String,String> heapDump(NodeSelector selector) throws Exception
      Invoke the heapDump operation for all selected nodes (trigger a heap dump of the JVM).
      Parameters:
      selector - a NodeSelector instance.
      Returns:
      a mapping of node uuids to objects that wrap either a [@link String} or an exeption.
      Throws:
      Exception - if any error occurs.
    • cpuLoad

      public ResultsMap<String,Double> cpuLoad(NodeSelector selector) throws Exception
      Invoke the cpuLoad operation for all selected nodes (get an approximation of the current CPU load).
      Parameters:
      selector - a NodeSelector instance.
      Returns:
      a mapping of node uuids to objects that wrap either a [@link Double} or an exeption.
      Throws:
      Exception - if any error occurs.
    • healthSnapshotAsString

      public ResultsMap<String,String> healthSnapshotAsString(NodeSelector selector) throws Exception
      Invoke the healthSnapshotAsString operation 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 - a NodeSelector instance.
      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 the memoryInformation operation for all selected nodes (get the current state of the heap and non-heap memory for the JVM).
      Parameters:
      selector - a NodeSelector instance.
      Returns:
      a mapping of node uuids to objects that wrap either a [@link MemoryInformation} or an exeption.
      Throws:
      Exception - if any error occurs.