|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jclouds.compute.options.RunScriptOptions
public class RunScriptOptions
Enables additional options for running a script.
Nested Class Summary | |
---|---|
static class |
RunScriptOptions.Builder
|
static class |
RunScriptOptions.ImmutableRunScriptOptions
|
Field Summary | |
---|---|
protected Boolean |
authenticateSudo
|
protected boolean |
blockOnComplete
|
protected com.google.common.base.Optional<String> |
loginPassword
|
protected com.google.common.base.Optional<String> |
loginPrivateKey
|
protected String |
loginUser
|
static RunScriptOptions |
NONE
Default options. |
protected int |
port
|
protected boolean |
runAsRoot
|
protected int |
seconds
|
protected String |
taskName
|
protected boolean |
wrapInInitScript
|
Constructor Summary | |
---|---|
RunScriptOptions()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final RunScriptOptions NONE
ComputeService.runScriptOnNodesMatching(com.google.common.base.Predicate, java.lang.String)
protected int port
protected int seconds
protected String taskName
protected boolean runAsRoot
protected boolean blockOnComplete
protected boolean wrapInInitScript
protected String loginUser
protected Boolean authenticateSudo
protected com.google.common.base.Optional<String> loginPassword
protected com.google.common.base.Optional<String> loginPrivateKey
Constructor Detail |
---|
public RunScriptOptions()
Method Detail |
---|
@Deprecated public RunScriptOptions overrideCredentialsWith(Credentials overridingCredentials)
overrideLoginCredentials(org.jclouds.domain.LoginCredentials)
public RunScriptOptions overrideLoginCredentials(LoginCredentials overridingCredentials)
@Deprecated public RunScriptOptions overrideLoginUserWith(String loginUser)
overrideLoginCredentials(org.jclouds.domain.LoginCredentials)
public RunScriptOptions overrideLoginUser(String loginUser)
@Deprecated public RunScriptOptions overrideLoginCredentialWith(String loginCredential)
overrideLoginCredentials(org.jclouds.domain.LoginCredentials)
public RunScriptOptions overrideLoginPassword(String password)
public RunScriptOptions overrideLoginPrivateKey(String privateKey)
public RunScriptOptions overrideAuthenticateSudo(boolean authenticateSudo)
public RunScriptOptions nameTask(String name)
jclouds-script-timestamp
where timestamp is millis since
epochpublic RunScriptOptions runAsRoot(boolean runAsRoot)
public RunScriptOptions wrapInInitScript(boolean wrapInInitScript)
wrapInInitScript
- if the command is long-running, use this option to ensure it is
wrapInInitScripted properly. (ex. have jclouds wrap it an init
script, nohup, etc)
public RunScriptOptions blockOnComplete(boolean blockOnComplete)
blockOnComplete
- (default true) false means kick off the script in the
background, but don't wait for it to finish. (as of version
1.1.0, implemented as nohup)public RunScriptOptions blockOnPort(int port, int seconds)
public String getTaskName()
public int getPort()
public int getSeconds()
@Nullable public String getLoginUser()
ComputeService.runScriptOnNode(java.lang.String, org.jclouds.scriptbuilder.domain.Statement, org.jclouds.compute.options.RunScriptOptions)
. By
default, null.@Nullable public Boolean shouldAuthenticateSudo()
ComputeService.runScriptOnNode(java.lang.String, org.jclouds.scriptbuilder.domain.Statement, org.jclouds.compute.options.RunScriptOptions)
. By
default, null.@Deprecated public Credentials getOverridingCredentials()
getLoginPassword()
,
getLoginPrivateKey()
,
getLoginUser()
public boolean hasLoginPasswordOption()
public boolean hasLoginPassword()
@Nullable public String getLoginPassword()
ComputeService.runScriptOnNode(java.lang.String, org.jclouds.scriptbuilder.domain.Statement, org.jclouds.compute.options.RunScriptOptions)
. By
default, null.public boolean hasLoginPrivateKeyOption()
public boolean hasLoginPrivateKey()
@Nullable public String getLoginPrivateKey()
ComputeService.runScriptOnNode(java.lang.String, org.jclouds.scriptbuilder.domain.Statement, org.jclouds.compute.options.RunScriptOptions)
. By
default, null.public boolean shouldRunAsRoot()
public boolean shouldBlockOnComplete()
blockOnComplete(boolean)
public boolean shouldWrapInInitScript()
public String toString()
toString
in class Object
public int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |