Package org.terracotta.angela.agent.com
Class IgniteLocalExecutor
- java.lang.Object
-
- org.terracotta.angela.agent.com.IgniteLocalExecutor
-
- All Implemented Interfaces:
AutoCloseable,Executor
- Direct Known Subclasses:
IgniteSshRemoteExecutor
public class IgniteLocalExecutor extends Object implements Executor
Executor which is using only one local ignite instance, plus eventually one per client job
-
-
Field Summary
Fields Modifier and Type Field Description protected IgniteAgentGroupagentGroupprotected AgentIDagentIDprotected UUIDgroupprotected org.apache.ignite.Igniteignite
-
Constructor Summary
Constructors Constructor Description IgniteLocalExecutor(UUID group, AgentID agentID, org.apache.ignite.Ignite ignite)IgniteLocalExecutor(Agent agent)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()<R> Future<R>executeAsync(AgentID agentID, org.apache.ignite.lang.IgniteCallable<R> job)Future<Void>executeAsync(AgentID agentID, org.apache.ignite.lang.IgniteRunnable job)Optional<AgentID>findAgentID(String hostname)ClustergetCluster()ClustergetCluster(ClientId clientId)BlockingQueue<FileTransfer>getFileTransferQueue(InstanceId instanceId)AgentGroupgetGroup()org.apache.ignite.IgnitegetIgnite()AgentIDgetLocalAgentID()Optional<CompletableFuture<Void>>shutdown(AgentID agentID)Optional<AgentID>startRemoteAgent(String hostname)Returns the new agentId that has been spawned.StringtoString()voiduploadClientJars(AgentID agentID, InstanceId instanceId, List<Path> locations)voiduploadKit(AgentID agentID, InstanceId instanceId, Distribution distribution, String kitInstallationName, Path kitInstallationPath)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.terracotta.angela.agent.com.Executor
downloadFiles, execute, execute, forAgent, getAgentID, uploadFiles
-
-
-
-
Field Detail
-
group
protected final UUID group
-
ignite
protected final org.apache.ignite.Ignite ignite
-
agentID
protected final AgentID agentID
-
agentGroup
protected final IgniteAgentGroup agentGroup
-
-
Method Detail
-
getIgnite
public org.apache.ignite.Ignite getIgnite()
-
close
public void close()
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceExecutor
-
uploadClientJars
public void uploadClientJars(AgentID agentID, InstanceId instanceId, List<Path> locations)
- Specified by:
uploadClientJarsin interfaceExecutor
-
uploadKit
public void uploadKit(AgentID agentID, InstanceId instanceId, Distribution distribution, String kitInstallationName, Path kitInstallationPath)
-
shutdown
public Optional<CompletableFuture<Void>> shutdown(AgentID agentID)
-
getLocalAgentID
public AgentID getLocalAgentID()
- Specified by:
getLocalAgentIDin interfaceExecutor
-
findAgentID
public Optional<AgentID> findAgentID(String hostname)
- Specified by:
findAgentIDin interfaceExecutor
-
getGroup
public AgentGroup getGroup()
-
getCluster
public Cluster getCluster()
- Specified by:
getClusterin interfaceExecutor
-
getCluster
public Cluster getCluster(ClientId clientId)
- Specified by:
getClusterin interfaceExecutor
-
executeAsync
public Future<Void> executeAsync(AgentID agentID, org.apache.ignite.lang.IgniteRunnable job)
- Specified by:
executeAsyncin interfaceExecutor
-
executeAsync
public <R> Future<R> executeAsync(AgentID agentID, org.apache.ignite.lang.IgniteCallable<R> job)
- Specified by:
executeAsyncin interfaceExecutor
-
getFileTransferQueue
public BlockingQueue<FileTransfer> getFileTransferQueue(InstanceId instanceId)
- Specified by:
getFileTransferQueuein interfaceExecutor
-
-