Package org.terracotta.angela.agent.com
Class IgniteSshRemoteExecutor
- java.lang.Object
-
- org.terracotta.angela.agent.com.IgniteLocalExecutor
-
- org.terracotta.angela.agent.com.IgniteSshRemoteExecutor
-
- All Implemented Interfaces:
AutoCloseable,Executor
public class IgniteSshRemoteExecutor extends IgniteLocalExecutor
Executor which will deploy an Ignite agent remotely for all specified non-local hosts
-
-
Field Summary
-
Fields inherited from class org.terracotta.angela.agent.com.IgniteLocalExecutor
agentGroup, agentID, group, ignite
-
-
Constructor Summary
Constructors Constructor Description IgniteSshRemoteExecutor(UUID group, AgentID agentID, org.apache.ignite.Ignite ignite)IgniteSshRemoteExecutor(Agent agent)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()IgniteSshRemoteExecutorsetPort(int port)IgniteSshRemoteExecutorsetRemoteUserName(String remoteUserName)IgniteSshRemoteExecutorsetRemoteUserNameKeyPath(String remoteUserNameKeyPath)IgniteSshRemoteExecutorsetStrictHostKeyChecking(boolean strictHostKeyChecking)IgniteSshRemoteExecutorsetTcEnv(TerracottaCommandLineEnvironment tcEnv)Optional<AgentID>startRemoteAgent(String hostname)Returns the new agentId that has been spawned.-
Methods inherited from class org.terracotta.angela.agent.com.IgniteLocalExecutor
executeAsync, executeAsync, findAgentID, getCluster, getCluster, getFileTransferQueue, getGroup, getIgnite, getLocalAgentID, shutdown, toString, uploadClientJars, uploadKit
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.terracotta.angela.agent.com.Executor
downloadFiles, execute, execute, forAgent, getAgentID, uploadFiles
-
-
-
-
Method Detail
-
setTcEnv
public IgniteSshRemoteExecutor setTcEnv(TerracottaCommandLineEnvironment tcEnv)
-
setRemoteUserName
public IgniteSshRemoteExecutor setRemoteUserName(String remoteUserName)
-
setRemoteUserNameKeyPath
public IgniteSshRemoteExecutor setRemoteUserNameKeyPath(String remoteUserNameKeyPath)
-
setPort
public IgniteSshRemoteExecutor setPort(int port)
-
setStrictHostKeyChecking
public IgniteSshRemoteExecutor setStrictHostKeyChecking(boolean strictHostKeyChecking)
-
startRemoteAgent
public Optional<AgentID> startRemoteAgent(String hostname)
Description copied from interface:ExecutorReturns the new agentId that has been spawned. If an agent already exists for this hostname, empty optional instead.- Specified by:
startRemoteAgentin interfaceExecutor- Overrides:
startRemoteAgentin classIgniteLocalExecutor
-
close
public void close()
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceExecutor- Overrides:
closein classIgniteLocalExecutor
-
-