Package org.terracotta.angela.agent.com
Class IgniteFreeExecutor
- java.lang.Object
-
- org.terracotta.angela.agent.com.IgniteFreeExecutor
-
- All Implemented Interfaces:
AutoCloseable,Executor
public class IgniteFreeExecutor extends Object implements Executor
Executor which is not using Ignite and directly execute closures
-
-
Constructor Summary
Constructors Constructor Description IgniteFreeExecutor(UUID group, AgentID agentID)IgniteFreeExecutor(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()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
-
-
-
-
Method Detail
-
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
-
startRemoteAgent
public Optional<AgentID> startRemoteAgent(String hostname)
Description copied from interface:ExecutorReturns the new agentId that has been spawned. If an agent already exists for this hostname, empty optional instead.- Specified by:
startRemoteAgentin 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
-
-