public class IgniteFreeExecutor extends Object implements Executor
| Constructor and Description |
|---|
IgniteFreeExecutor(Agent agent) |
IgniteFreeExecutor(UUID group,
AgentID agentID) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
<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) |
Cluster |
getCluster() |
Cluster |
getCluster(ClientId clientId) |
BlockingQueue<FileTransfer> |
getFileTransferQueue(InstanceId instanceId) |
AgentGroup |
getGroup() |
AgentID |
getLocalAgentID() |
Optional<CompletableFuture<Void>> |
shutdown(AgentID agentID) |
Optional<AgentID> |
startRemoteAgent(String hostname)
Returns the new agentId that has been spawned.
|
String |
toString() |
void |
uploadClientJars(AgentID agentID,
InstanceId instanceId,
List<Path> locations) |
void |
uploadKit(AgentID agentID,
InstanceId instanceId,
Distribution distribution,
String kitInstallationName,
Path kitInstallationPath) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitdownloadFiles, execute, execute, forAgent, getAgentID, uploadFilespublic IgniteFreeExecutor(Agent agent)
public void close()
close in interface AutoCloseableclose in interface Executorpublic void uploadClientJars(AgentID agentID, InstanceId instanceId, List<Path> locations)
uploadClientJars in interface Executorpublic void uploadKit(AgentID agentID, InstanceId instanceId, Distribution distribution, String kitInstallationName, Path kitInstallationPath)
public Optional<CompletableFuture<Void>> shutdown(AgentID agentID)
public AgentID getLocalAgentID()
getLocalAgentID in interface Executorpublic Optional<AgentID> findAgentID(String hostname)
findAgentID in interface Executorpublic Optional<AgentID> startRemoteAgent(String hostname)
ExecutorstartRemoteAgent in interface Executorpublic AgentGroup getGroup()
public Cluster getCluster()
getCluster in interface Executorpublic Cluster getCluster(ClientId clientId)
getCluster in interface Executorpublic Future<Void> executeAsync(AgentID agentID, org.apache.ignite.lang.IgniteRunnable job)
executeAsync in interface Executorpublic <R> Future<R> executeAsync(AgentID agentID, org.apache.ignite.lang.IgniteCallable<R> job)
executeAsync in interface Executorpublic BlockingQueue<FileTransfer> getFileTransferQueue(InstanceId instanceId)
getFileTransferQueue in interface ExecutorCopyright © 2023. All rights reserved.