Package org.jppf.ui.monitoring.data
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 TypeMethodDescriptionvoidclose()Close all connections to the driver(s).org.jppf.management.JMXDriverConnectionWrapperGet the JMX connection for the current driver connection.voiddriverAdded(org.jppf.client.monitoring.topology.TopologyEvent event) voiddriverRemoved(org.jppf.client.monitoring.topology.TopologyEvent event) org.jppf.client.monitoring.topology.TopologyDriverGet the current client connection for which statistics and charts are displayed.Object[]getMeterIntervals(Fields field) Get the meter intervals for the psecified field.Get the option containing the combobox with the list of driver connections.Get the threshold values.booleanRefresh the load balancer settings view for the currently slected driver.voidsetCurrentDriver(org.jppf.client.monitoring.topology.TopologyDriver driver) Set the current client connection for which statistics and charts are displayed.voidsetServerListOption(OptionElement serverListOption) 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
-
Method Details
-
driverAdded
public void driverAdded(org.jppf.client.monitoring.topology.TopologyEvent event) - Specified by:
driverAddedin interfaceorg.jppf.client.monitoring.topology.TopologyListener- Overrides:
driverAddedin classorg.jppf.client.monitoring.topology.TopologyListenerAdapter
-
driverRemoved
public void driverRemoved(org.jppf.client.monitoring.topology.TopologyEvent event) - Specified by:
driverRemovedin interfaceorg.jppf.client.monitoring.topology.TopologyListener- Overrides:
driverRemovedin classorg.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
TopologyDriverinstance.
-
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- aJPPFClientConnectioninstance.
-
refreshLoadBalancer
public boolean refreshLoadBalancer()Refresh the load balancer settings view for the currently slected driver.- Returns:
trueto indicate success,falseotherwise.
-
currentJmxConnection
public org.jppf.management.JMXDriverConnectionWrapper currentJmxConnection()Get the JMX connection for the current driver connection.- Returns:
- a
JMXDriverConnectionWrapperinstance.
-
getServerListOption
Get the option containing the combobox with the list of driver connections.- Returns:
- an
OptionElementinstance.
-
setServerListOption
Set the option containing the combobox with the list of driver connections.- Parameters:
serverListOption- anOptionElementinstance.
-
close
public void close()Close all connections to the driver(s).- Specified by:
closein interfaceAutoCloseable
-
getThresholds
Get the threshold values.- Returns:
- a
Thresholdsobject.
-
getMeterIntervals
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.
-