public class AgentPresenceManager extends Object implements StatusMessageListener
| Modifier and Type | Field and Description |
|---|---|
protected static org.lsst.ccs.utilities.logging.Logger |
log |
| Constructor and Description |
|---|
AgentPresenceManager() |
| Modifier and Type | Method and Description |
|---|---|
void |
addAgentPresenceListener(AgentPresenceListener l) |
boolean |
agentExists(String agentName) |
List<AgentInfo> |
listConnectedAgents() |
void |
onStatusMessage(StatusMessage s)
Called when a status message is received.
|
void |
removeAgentPresenceListener(AgentPresenceListener l) |
boolean |
waitForAgent(String name,
long timeout,
TimeUnit unit)
Wait for an Agent to be available on the buses.
|
public void onStatusMessage(StatusMessage s)
StatusMessageListeneronStatusMessage in interface StatusMessageListeners - Status bus message to be processed.public List<AgentInfo> listConnectedAgents()
public void addAgentPresenceListener(AgentPresenceListener l)
public void removeAgentPresenceListener(AgentPresenceListener l)
public boolean agentExists(String agentName)
public final boolean waitForAgent(String name, long timeout, TimeUnit unit) throws InterruptedException
name - The name of the Agenttimeout - The time to wait for the agent to become available.unit - The TimeUnit for the timeout.InterruptedExceptionCopyright © 2018 LSST. All rights reserved.