public class TopologyManager extends ConnectionPoolListenerAdapter implements AutoCloseable
| Constructor and Description |
|---|
TopologyManager(JPPFClient client,
TopologyListener... listeners)
Initialize this topology manager with the specified
JPPFClient and listeners. |
TopologyManager(long topologyRefreshInterval,
long jvmHealthRefreshInterval,
JPPFClient client,
boolean loadSystemInfo,
TopologyListener... listeners)
Initialize this topology manager with the specified
JPPFClient and listeners. |
TopologyManager(long topologyRefreshInterval,
long jvmHealthRefreshInterval,
JPPFClient client,
TopologyListener... listeners)
Initialize this topology manager with the specified
JPPFClient and listeners. |
TopologyManager(long topologyRefreshInterval,
long jvmHealthRefreshInterval,
TopologyListener... listeners)
Initialize this topology manager with a new
JPPFClient and the specified listeners. |
TopologyManager(TopologyListener... listeners)
Initialize this topology manager with a new
JPPFClient and the specified listeners. |
| Modifier and Type | Method and Description |
|---|---|
void |
addTopologyListener(TopologyListener listener)
Add a topology change listener.
|
void |
close() |
TopologyDriver |
getDriver(String uuid)
Get the driver with the specified uuid.
|
int |
getDriverCount()
Get the number of drivers currently handled.
|
List<TopologyDriver> |
getDrivers()
Get the drivers currently handled.
|
JPPFClient |
getJPPFClient()
Get the JPPF client.
|
TopologyNode |
getNode(String uuid)
Get the node with the specified uuid.
|
int |
getNodeCount()
Get the number of nodes currently handled.
|
org.jppf.management.NodeSelector |
getNodeFilter()
Get the node selector used to filter the nodes and associated events.
|
TopologyNode |
getNodeOrPeer(String uuid)
Get the node with the psecified uuid.
|
List<TopologyNode> |
getNodes()
Get the nodes currently handled.
|
TopologyPeer |
getPeer(String uuid)
Get the peer with the specified uuid.
|
int |
getPeerCount()
Get the number of peers currently handled.
|
List<TopologyPeer> |
getPeers()
Get the peers currently handled.
|
List<TopologyNode> |
getSlaveNodes(String masterNodeUuid)
Get the nodes that are slaves of the specified master node.
|
void |
removeTopologyListener(TopologyListener listener)
Remove a topology change listener.
|
void |
setNodeFilter(org.jppf.management.NodeSelector nodeFilter)
Set the node selector used to filter the nodes and associated events.
|
connectionAdded, connectionPoolAdded, connectionPoolRemoved, connectionRemovedpublic TopologyManager(TopologyListener... listeners)
JPPFClient and the specified listeners.
The refresh intervals are determined from the configuration, or take a default value of 1000L if they are not configured.listeners - a set of listeners to subscribe immediately for topology events.public TopologyManager(long topologyRefreshInterval,
long jvmHealthRefreshInterval,
TopologyListener... listeners)
JPPFClient and the specified listeners.topologyRefreshInterval - the interval in millis between refreshes of the topology.jvmHealthRefreshInterval - the interval in millis between refreshes of the JVM health data.listeners - a set of listeners to subscribe immediately for topology events.public TopologyManager(JPPFClient client, TopologyListener... listeners)
JPPFClient and listeners.
The refresh intervals are determined from the configuration, or take a default value of 1000L if they are not configured.client - the JPPF client used to discover and monitor the grid topology.listeners - a set of listeners to subscribe immediately for topology events.public TopologyManager(long topologyRefreshInterval,
long jvmHealthRefreshInterval,
JPPFClient client,
TopologyListener... listeners)
JPPFClient and listeners.topologyRefreshInterval - the interval in millis between refreshes of the topology.jvmHealthRefreshInterval - the interval in millis between refreshes of the JVM health data.client - the JPPF client used to discover and monitor the grid topology.listeners - a set of listeners to subscribe immediately for topology events.public TopologyManager(long topologyRefreshInterval,
long jvmHealthRefreshInterval,
JPPFClient client,
boolean loadSystemInfo,
TopologyListener... listeners)
JPPFClient and listeners.topologyRefreshInterval - the interval in millis between refreshes of the topology.jvmHealthRefreshInterval - the interval in millis between refreshes of the JVM health data.client - the JPPF client used to discover and monitor the grid topology.listeners - a set of listeners to subscribe immediately for topology events.loadSystemInfo - whether the system info of the nodes should be loaded.public List<TopologyDriver> getDrivers()
TopologyDriver instances.public TopologyDriver getDriver(String uuid)
uuid - the uuid of the driver to lookup.TopologyDriver instance.public List<TopologyNode> getNodes()
TopologyNode instances.public List<TopologyNode> getSlaveNodes(String masterNodeUuid)
masterNodeUuid - the UUID of the master node whose slaves to lookup.TopologyNode instances, possibly empty but never null.public TopologyNode getNode(String uuid)
uuid - the uuid of the driver to lookup.TopologyNode instance.public List<TopologyPeer> getPeers()
TopologyPeer instances.public TopologyPeer getPeer(String uuid)
uuid - the uuid of the driver to lookup.TopologyPeer instance.public int getDriverCount()
public int getNodeCount()
public int getPeerCount()
public TopologyNode getNodeOrPeer(String uuid)
uuid - the uuid of the node to lookup.TopologyNode instance.public void addTopologyListener(TopologyListener listener)
listener - the listener to add.public void removeTopologyListener(TopologyListener listener)
listener - the listener to remove.public JPPFClient getJPPFClient()
JPPFClient object.public org.jppf.management.NodeSelector getNodeFilter()
NodeSelector instance.public void setNodeFilter(org.jppf.management.NodeSelector nodeFilter)
nodeFilter - a NodeSelector instance.public void close()
close in interface AutoCloseableCopyright © 2005-2019 JPPF Team.