Package org.jclouds.compute.callables
Class RunScriptOnNodeAsInitScriptUsingSshAndBlockUntilComplete
java.lang.Object
org.jclouds.compute.callables.SudoAwareInitManager
org.jclouds.compute.callables.RunScriptOnNodeAsInitScriptUsingSsh
org.jclouds.compute.callables.RunScriptOnNodeAsInitScriptUsingSshAndBlockUntilComplete
- All Implemented Interfaces:
Callable<ExecResponse>
,RunScriptOnNode
public class RunScriptOnNodeAsInitScriptUsingSshAndBlockUntilComplete
extends RunScriptOnNodeAsInitScriptUsingSsh
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.jclouds.compute.callables.RunScriptOnNode
RunScriptOnNode.Factory
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final BlockUntilInitScriptStatusIsZeroThenReturnOutput.Factory
protected final ComputeServiceConstants.Timeouts
Fields inherited from class org.jclouds.compute.callables.RunScriptOnNodeAsInitScriptUsingSsh
eventBus
Fields inherited from class org.jclouds.compute.callables.SudoAwareInitManager
computeLogger, init, initFile, logger, node, runAsRoot, ssh, sshFactory
-
Constructor Summary
ConstructorsConstructorDescriptionRunScriptOnNodeAsInitScriptUsingSshAndBlockUntilComplete
(BlockUntilInitScriptStatusIsZeroThenReturnOutput.Factory statusFactory, ComputeServiceConstants.Timeouts timeouts, com.google.common.base.Function<NodeMetadata, SshClient> sshFactory, com.google.common.eventbus.EventBus eventBus, InitScriptConfigurationForTasks initScriptConfiguration, NodeMetadata node, Statement script, RunScriptOptions options) -
Method Summary
Methods inherited from class org.jclouds.compute.callables.RunScriptOnNodeAsInitScriptUsingSsh
call, createInitScript, refreshSshIfNewAdminCredentialsConfigured, setupLinkToInitFile
Methods inherited from class org.jclouds.compute.callables.SudoAwareInitManager
execScriptAsDefaultUser, getInitFile, getNode, getStatement, refreshAndRunAction, runAction, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.jclouds.compute.callables.RunScriptOnNode
getNode, getStatement
-
Field Details
-
timeouts
-
statusFactory
-
-
Constructor Details
-
RunScriptOnNodeAsInitScriptUsingSshAndBlockUntilComplete
@Inject public RunScriptOnNodeAsInitScriptUsingSshAndBlockUntilComplete(BlockUntilInitScriptStatusIsZeroThenReturnOutput.Factory statusFactory, ComputeServiceConstants.Timeouts timeouts, com.google.common.base.Function<NodeMetadata, SshClient> sshFactory, com.google.common.eventbus.EventBus eventBus, InitScriptConfigurationForTasks initScriptConfiguration, NodeMetadata node, Statement script, RunScriptOptions options)
-
-
Method Details
-
doCall
- Overrides:
doCall
in classRunScriptOnNodeAsInitScriptUsingSsh
-
future
-
init
Description copied from interface:RunScriptOnNode
verifies that the command can execute on the node. For example, if this is ssh, it may attempt to find a reachable socket. If this is using an API, it may attempt to validate that connection.- Specified by:
init
in interfaceRunScriptOnNode
- Overrides:
init
in classRunScriptOnNodeAsInitScriptUsingSsh
-