org.eclipse.hyades.loaders.util
Class AgentsContext
java.lang.Object
org.eclipse.hyades.loaders.util.AgentsContext
- public class AgentsContext
- extends java.lang.Object
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
agentList
protected java.util.List agentList
id
protected java.lang.String id
currentAgent
protected TRCAgent currentAgent
AgentsContext
public AgentsContext(java.lang.String id)
getActiveAgent
public TRCAgent getActiveAgent(TRCAgent peerAgent)
- Parameters:
peerAgent -
- Returns:
- the monitored or attached agent or the agent from the same monitor with peerAgent or the first agent from the list
getAgentList
public java.util.List getAgentList()
- Returns:
- the list of registered agents that has the runtimeId==id
deregisterAgent
public boolean deregisterAgent(TRCAgent agent)
registerAgent
public boolean registerAgent(TRCAgent agent)
getId
public java.lang.String getId()
- Returns:
- the runtimeID of this set of agents