public interface Executor extends AutoCloseable
| Modifier and Type | Field and Description |
|---|---|
static org.slf4j.Logger |
logger |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
default void |
downloadFiles(InstanceId instanceId,
Path dest) |
default <R> R |
execute(AgentID agentID,
org.apache.ignite.lang.IgniteCallable<R> job) |
default void |
execute(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 AgentExecutor |
forAgent(AgentID agentID) |
default AgentID |
getAgentID(String hostname) |
Cluster |
getCluster() |
Cluster |
getCluster(ClientId clientId) |
BlockingQueue<FileTransfer> |
getFileTransferQueue(InstanceId instanceId) |
AgentGroup |
getGroup() |
AgentID |
getLocalAgentID() |
void |
shutdown(AgentID agentID) |
Optional<AgentID> |
startRemoteAgent(String hostname)
Returns the new agentId that has been spawned.
|
void |
uploadClientJars(AgentID agentID,
InstanceId instanceId,
List<Path> locations) |
default void |
uploadFiles(InstanceId instanceId,
List<Path> locations,
Future<Void> remoteDownloadFuture) |
void |
uploadKit(AgentID agentID,
InstanceId instanceId,
Distribution distribution,
String kitInstallationName,
Path kitInstallationPath) |
AgentID getLocalAgentID()
Optional<AgentID> startRemoteAgent(String hostname)
AgentGroup getGroup()
Cluster getCluster()
<R> Future<R> executeAsync(AgentID agentID, org.apache.ignite.lang.IgniteCallable<R> job)
BlockingQueue<FileTransfer> getFileTransferQueue(InstanceId instanceId)
void close()
close in interface AutoCloseablevoid uploadClientJars(AgentID agentID, InstanceId instanceId, List<Path> locations)
void uploadKit(AgentID agentID, InstanceId instanceId, Distribution distribution, String kitInstallationName, Path kitInstallationPath)
void shutdown(AgentID agentID) throws TimeoutException
TimeoutExceptiondefault void execute(AgentID agentID, org.apache.ignite.lang.IgniteRunnable job)
default <R> R execute(AgentID agentID, org.apache.ignite.lang.IgniteCallable<R> job)
default AgentExecutor forAgent(AgentID agentID)
default AgentID getAgentID(String hostname) throws NoSuchElementException
NoSuchElementExceptiondefault void downloadFiles(InstanceId instanceId, Path dest)
default void uploadFiles(InstanceId instanceId, List<Path> locations, Future<Void> remoteDownloadFuture)
Copyright © 2022. All rights reserved.