Package org.terracotta.angela.agent.com
Interface Executor
-
- All Superinterfaces:
AutoCloseable
- All Known Implementing Classes:
IgniteFreeExecutor,IgniteLocalExecutor,IgniteSshRemoteExecutor
public interface Executor extends AutoCloseable
- Author:
- Mathieu Carbou
-
-
Field Summary
Fields Modifier and Type Field Description static org.slf4j.Loggerlogger
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description voidclose()default voiddownloadFiles(InstanceId instanceId, Path dest)default <R> Rexecute(AgentID agentID, org.apache.ignite.lang.IgniteCallable<R> job)default voidexecute(AgentID agentID, org.apache.ignite.lang.IgniteRunnable job)<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)default AgentExecutorforAgent(AgentID agentID)default AgentIDgetAgentID(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.voiduploadClientJars(AgentID agentID, InstanceId instanceId, List<Path> locations)default voiduploadFiles(InstanceId instanceId, List<Path> locations, Future<Void> remoteDownloadFuture)voiduploadKit(AgentID agentID, InstanceId instanceId, Distribution distribution, String kitInstallationName, Path kitInstallationPath)
-
-
-
Method Detail
-
getLocalAgentID
AgentID getLocalAgentID()
-
startRemoteAgent
Optional<AgentID> startRemoteAgent(String hostname)
Returns the new agentId that has been spawned. If an agent already exists for this hostname, empty optional instead.
-
getGroup
AgentGroup getGroup()
-
getCluster
Cluster getCluster()
-
executeAsync
<R> Future<R> executeAsync(AgentID agentID, org.apache.ignite.lang.IgniteCallable<R> job)
-
getFileTransferQueue
BlockingQueue<FileTransfer> getFileTransferQueue(InstanceId instanceId)
-
close
void close()
- Specified by:
closein interfaceAutoCloseable
-
uploadClientJars
void uploadClientJars(AgentID agentID, InstanceId instanceId, List<Path> locations)
-
uploadKit
void uploadKit(AgentID agentID, InstanceId instanceId, Distribution distribution, String kitInstallationName, Path kitInstallationPath)
-
shutdown
Optional<CompletableFuture<Void>> shutdown(AgentID agentID)
-
execute
default void execute(AgentID agentID, org.apache.ignite.lang.IgniteRunnable job)
-
execute
default <R> R execute(AgentID agentID, org.apache.ignite.lang.IgniteCallable<R> job)
-
forAgent
default AgentExecutor forAgent(AgentID agentID)
-
getAgentID
default AgentID getAgentID(String hostname) throws NoSuchElementException
- Throws:
NoSuchElementException
-
downloadFiles
default void downloadFiles(InstanceId instanceId, Path dest)
-
uploadFiles
default void uploadFiles(InstanceId instanceId, List<Path> locations, Future<Void> remoteDownloadFuture)
-
-