Package org.terracotta.angela.agent
Class Agent
- java.lang.Object
-
- org.terracotta.angela.agent.Agent
-
- All Implemented Interfaces:
AutoCloseable
public class Agent extends Object implements AutoCloseable
- Author:
- Ludovic Orban
-
-
Field Summary
Fields Modifier and Type Field Description static StringAGENT_IS_READY_MARKER_LOGstatic StringAGENT_TYPE_ORCHESTRATORstatic StringAGENT_TYPE_REMOTEstatic PathROOT_DIRstatic PathWORK_DIR
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()AgentIDgetAgentID()UUIDgetGroupId()org.apache.ignite.IgnitegetIgnite()static Agentignite(UUID group, String instanceName, PortAllocator portAllocator, Collection<String> peers)static AgentigniteOrchestrator(UUID group, PortAllocator portAllocator)static Agentlocal(UUID group)static voidmain(String[] args)main method used when starting a new ignite agent locally or remotelyStringtoString()
-
-
-
Field Detail
-
AGENT_TYPE_ORCHESTRATOR
public static final String AGENT_TYPE_ORCHESTRATOR
- See Also:
- Constant Field Values
-
AGENT_TYPE_REMOTE
public static final String AGENT_TYPE_REMOTE
- See Also:
- Constant Field Values
-
AGENT_IS_READY_MARKER_LOG
public static final String AGENT_IS_READY_MARKER_LOG
- See Also:
- Constant Field Values
-
ROOT_DIR
public static final Path ROOT_DIR
-
WORK_DIR
public static final Path WORK_DIR
-
-
Method Detail
-
getGroupId
public UUID getGroupId()
-
getAgentID
public AgentID getAgentID()
-
getIgnite
public org.apache.ignite.Ignite getIgnite()
-
close
public void close()
- Specified by:
closein interfaceAutoCloseable
-
main
public static void main(String[] args)
main method used when starting a new ignite agent locally or remotely
-
igniteOrchestrator
public static Agent igniteOrchestrator(UUID group, PortAllocator portAllocator)
-
ignite
public static Agent ignite(UUID group, String instanceName, PortAllocator portAllocator, Collection<String> peers)
-
-