public class SudoAwareInitManager extends Object
Modifier and Type | Field and Description |
---|---|
protected Logger |
computeLogger |
protected InitScript |
init |
protected String |
initFile |
protected Logger |
logger |
protected NodeMetadata |
node |
protected boolean |
runAsRoot |
protected SshClient |
ssh |
protected com.google.common.base.Function<NodeMetadata,SshClient> |
sshFactory |
Constructor and Description |
---|
SudoAwareInitManager(com.google.common.base.Function<NodeMetadata,SshClient> sshFactory,
boolean runAsRoot,
NodeMetadata node,
InitScriptConfigurationForTasks initScriptConfiguration,
InitScript init) |
Modifier and Type | Method and Description |
---|---|
protected String |
execScriptAsDefaultUser(String action) |
String |
getInitFile() |
NodeMetadata |
getNode() |
InitScript |
getStatement() |
SudoAwareInitManager |
init() |
ExecResponse |
refreshAndRunAction(String action) |
ExecResponse |
runAction(String action) |
String |
toString() |
protected Logger logger
protected NodeMetadata node
protected final String initFile
protected final InitScript init
protected final boolean runAsRoot
protected final com.google.common.base.Function<NodeMetadata,SshClient> sshFactory
protected SshClient ssh
public SudoAwareInitManager(com.google.common.base.Function<NodeMetadata,SshClient> sshFactory, boolean runAsRoot, NodeMetadata node, InitScriptConfigurationForTasks initScriptConfiguration, InitScript init)
public String getInitFile()
public SudoAwareInitManager init()
public ExecResponse refreshAndRunAction(String action)
public ExecResponse runAction(String action)
public NodeMetadata getNode()
public InitScript getStatement()
Copyright © 2009-2012 jclouds. All Rights Reserved.