Class ClientHandler

java.lang.Object
org.jppf.client.monitoring.topology.TopologyListenerAdapter
org.jppf.ui.monitoring.data.ClientHandler
All Implemented Interfaces:
AutoCloseable, EventListener, org.jppf.client.monitoring.topology.TopologyListener

public class ClientHandler extends org.jppf.client.monitoring.topology.TopologyListenerAdapter implements AutoCloseable
Since:
5.0
Author:
Laurent Cohen
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Close all connections to the driver(s).
    org.jppf.management.JMXDriverConnectionWrapper
    Get the JMX connection for the current driver connection.
    void
    driverAdded(org.jppf.client.monitoring.topology.TopologyEvent event)
     
    void
    driverRemoved(org.jppf.client.monitoring.topology.TopologyEvent event)
     
    org.jppf.client.monitoring.topology.TopologyDriver
    Get the current client connection for which statistics and charts are displayed.
    Get the meter intervals for the psecified field.
    Get the option containing the combobox with the list of driver connections.
    Get the threshold values.
    boolean
    Refresh the load balancer settings view for the currently slected driver.
    void
    setCurrentDriver(org.jppf.client.monitoring.topology.TopologyDriver driver)
    Set the current client connection for which statistics and charts are displayed.
    void
    Set the option containing the combobox with the list of driver connections.

    Methods inherited from class org.jppf.client.monitoring.topology.TopologyListenerAdapter

    driverUpdated, nodeAdded, nodeRemoved, nodeUpdated

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • driverAdded

      public void driverAdded(org.jppf.client.monitoring.topology.TopologyEvent event)
      Specified by:
      driverAdded in interface org.jppf.client.monitoring.topology.TopologyListener
      Overrides:
      driverAdded in class org.jppf.client.monitoring.topology.TopologyListenerAdapter
    • driverRemoved

      public void driverRemoved(org.jppf.client.monitoring.topology.TopologyEvent event)
      Specified by:
      driverRemoved in interface org.jppf.client.monitoring.topology.TopologyListener
      Overrides:
      driverRemoved in class org.jppf.client.monitoring.topology.TopologyListenerAdapter
    • getCurrentDriver

      public org.jppf.client.monitoring.topology.TopologyDriver getCurrentDriver()
      Get the current client connection for which statistics and charts are displayed.
      Returns:
      a TopologyDriver instance.
    • setCurrentDriver

      public void setCurrentDriver(org.jppf.client.monitoring.topology.TopologyDriver driver)
      Set the current client connection for which statistics and charts are displayed.
      Parameters:
      driver - a JPPFClientConnection instance.
    • refreshLoadBalancer

      public boolean refreshLoadBalancer()
      Refresh the load balancer settings view for the currently slected driver.
      Returns:
      true to indicate success, false otherwise.
    • currentJmxConnection

      public org.jppf.management.JMXDriverConnectionWrapper currentJmxConnection()
      Get the JMX connection for the current driver connection.
      Returns:
      a JMXDriverConnectionWrapper instance.
    • getServerListOption

      public OptionElement getServerListOption()
      Get the option containing the combobox with the list of driver connections.
      Returns:
      an OptionElement instance.
    • setServerListOption

      public void setServerListOption(OptionElement serverListOption)
      Set the option containing the combobox with the list of driver connections.
      Parameters:
      serverListOption - an OptionElement instance.
    • close

      public void close()
      Close all connections to the driver(s).
      Specified by:
      close in interface AutoCloseable
    • getThresholds

      public Thresholds getThresholds()
      Get the threshold values.
      Returns:
      a Thresholds object.
    • getMeterIntervals

      public Object[] getMeterIntervals(Fields field)
      Get the meter intervals for the psecified field.
      Parameters:
      field - the field to find the interval for.
      Returns:
      an array, possibly empty but never null, of interval objects.