Package org.terracotta.angela.agent.com
Class AgentGroup
- java.lang.Object
-
- org.terracotta.angela.agent.com.AgentGroup
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
IgniteAgentGroup,LocalAgentGroup
public abstract class AgentGroup extends Object implements Serializable
- Author:
- Mathieu Carbou
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AgentGroup(UUID id, AgentID agentID)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description booleancontains(AgentID agentID)voidforEach(Consumer<? super AgentID> action)abstract Collection<AgentID>getAllAgents()A combination of all Ignite agent launched for both remoting (remote agent) or for running client jobs, plus the orchestratorCollection<AgentID>getClientAgents()UUIDgetId()AgentIDgetLocalAgentID()Collection<String>getPeerAddresses()Collection<AgentID>getRemoteAgentIDs()Only the Ignite nodes started remotely to control process launching, once per hostname.Collection<AgentID>getSpawnedAgents()booleanisEmpty()intsize()Stream<AgentID>stream()StringtoString()
-
-
-
Method Detail
-
getId
public final UUID getId()
-
getLocalAgentID
public final AgentID getLocalAgentID()
-
getAllAgents
public abstract Collection<AgentID> getAllAgents()
A combination of all Ignite agent launched for both remoting (remote agent) or for running client jobs, plus the orchestrator
-
getClientAgents
public final Collection<AgentID> getClientAgents()
- Returns:
- all Ignite agent spawned to run client code
-
getSpawnedAgents
public final Collection<AgentID> getSpawnedAgents()
- Returns:
- all Ignite agent spawned that must be closed at the end
-
getRemoteAgentIDs
public final Collection<AgentID> getRemoteAgentIDs()
Only the Ignite nodes started remotely to control process launching, once per hostname. These are not the client agents.
-
getPeerAddresses
public final Collection<String> getPeerAddresses()
-
size
public final int size()
-
isEmpty
public final boolean isEmpty()
-
contains
public final boolean contains(AgentID agentID)
-
-