public class IgniteLocalExecutor extends Object implements Executor
| Modifier and Type | Field and Description |
|---|---|
protected Map<String,AgentID> |
agents |
protected UUID |
group |
protected org.apache.ignite.Ignite |
ignite |
protected Map<AgentID,CountDownLatch> |
shutdowns |
| 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() |
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 transient Map<AgentID,CountDownLatch> shutdowns
protected final UUID group
protected final org.apache.ignite.Ignite ignite
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 void shutdown(AgentID agentID) throws TimeoutException
shutdown in interface ExecutorTimeoutExceptionpublic 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 © 2022. All rights reserved.