public class IgniteLocalExecutor extends Object implements Executor
| Modifier and Type | Field and Description |
|---|---|
protected IgniteAgentGroup |
agentGroup |
protected AgentID |
agentID |
protected UUID |
group |
protected org.apache.ignite.Ignite |
ignite |
| Constructor and Description |
|---|
IgniteLocalExecutor(Agent agent) |
IgniteLocalExecutor(UUID group,
AgentID agentID,
org.apache.ignite.Ignite ignite) |
| 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() |
org.apache.ignite.Ignite |
getIgnite() |
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, uploadFilesprotected final UUID group
protected final org.apache.ignite.Ignite ignite
protected final AgentID agentID
protected final IgniteAgentGroup agentGroup
public IgniteLocalExecutor(Agent agent)
public org.apache.ignite.Ignite getIgnite()
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 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.