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, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetNode, getStatementpublic 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()
RunScriptOnNodeinit in interface RunScriptOnNodeinit in class SudoAwareInitManagerpublic ExecResponse call()
RunScriptOnNodeRunScriptOnNode.init() must be called first.call in interface Callable<ExecResponse>call in interface RunScriptOnNodepublic static InitScript createInitScript(InitScriptConfigurationForTasks config, String name, Statement script)
protected void refreshSshIfNewAdminCredentialsConfigured(AdminAccess input)
protected ExecResponse doCall()
protected void setupLinkToInitFile()
Copyright © 2009-2013 jclouds. All Rights Reserved.