public class RunScriptOnNodeAsInitScriptUsingSsh extends SudoAwareInitManager implements RunScriptOnNode
RunScriptOnNode.Factory
Modifier and Type | Field and Description |
---|---|
protected com.google.common.eventbus.EventBus |
eventBus |
computeLogger, init, initFile, logger, node, runAsRoot, ssh, sshFactory
Constructor and Description |
---|
RunScriptOnNodeAsInitScriptUsingSsh(com.google.common.base.Function<NodeMetadata,SshClient> sshFactory,
com.google.common.eventbus.EventBus eventBus,
InitScriptConfigurationForTasks initScriptConfiguration,
NodeMetadata node,
Statement script,
RunScriptOptions options) |
Modifier and Type | Method and Description |
---|---|
ExecResponse |
call()
Note that
RunScriptOnNode.init() must be called first. |
static InitScript |
createInitScript(InitScriptConfigurationForTasks config,
String name,
Statement script) |
protected ExecResponse |
doCall() |
RunScriptOnNodeAsInitScriptUsingSsh |
init()
verifies that the command can execute on the node.
|
protected void |
refreshSshIfNewAdminCredentialsConfigured(AdminAccess input) |
protected void |
setupLinkToInitFile() |
execScriptAsDefaultUser, getInitFile, getNode, getStatement, refreshAndRunAction, runAction, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getNode, getStatement
public RunScriptOnNodeAsInitScriptUsingSsh(com.google.common.base.Function<NodeMetadata,SshClient> sshFactory, com.google.common.eventbus.EventBus eventBus, InitScriptConfigurationForTasks initScriptConfiguration, NodeMetadata node, Statement script, RunScriptOptions options)
public RunScriptOnNodeAsInitScriptUsingSsh init()
RunScriptOnNode
init
in interface RunScriptOnNode
init
in class SudoAwareInitManager
public ExecResponse call()
RunScriptOnNode
RunScriptOnNode.init()
must be called first.call
in interface Callable<ExecResponse>
call
in interface RunScriptOnNode
public static InitScript createInitScript(InitScriptConfigurationForTasks config, String name, Statement script)
protected void refreshSshIfNewAdminCredentialsConfigured(AdminAccess input)
protected ExecResponse doCall()
protected void setupLinkToInitFile()
Copyright © 2009-2012 jclouds. All Rights Reserved.