org.jclouds.compute.callables
Class SudoAwareInitManager
java.lang.Object
org.jclouds.compute.callables.SudoAwareInitManager
- Direct Known Subclasses:
- RunScriptOnNodeAsInitScriptUsingSsh
public class SudoAwareInitManager
- extends Object
- Author:
- Adrian Cole
computeLogger
@Named(value="jclouds.compute")
protected Logger computeLogger
logger
protected Logger logger
node
protected NodeMetadata node
initFile
protected final String initFile
init
protected final InitScript init
runAsRoot
protected final boolean runAsRoot
sshFactory
protected final com.google.common.base.Function<NodeMetadata,SshClient> sshFactory
ssh
protected SshClient ssh
SudoAwareInitManager
public SudoAwareInitManager(com.google.common.base.Function<NodeMetadata,SshClient> sshFactory,
boolean runAsRoot,
NodeMetadata node,
InitScriptConfigurationForTasks initScriptConfiguration,
InitScript init)
getInitFile
public String getInitFile()
- Returns:
- the absolute path to the file on disk relating to this task.
init
public SudoAwareInitManager init()
refreshAndRunAction
public ExecResponse refreshAndRunAction(String action)
runAction
public ExecResponse runAction(String action)
execScriptAsDefaultUser
protected String execScriptAsDefaultUser(String action)
getNode
public NodeMetadata getNode()
toString
public String toString()
- Overrides:
toString
in class Object
getStatement
public InitScript getStatement()
Copyright © 2009-2012 jclouds. All Rights Reserved.