|
||||||||||
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 |
blockOnComplete
|
static RunScriptOptions |
NONE
Default options. |
protected Credentials |
overridingCredentials
|
protected int |
port
|
protected boolean |
runAsRoot
|
protected int |
seconds
|
protected String |
taskName
|
protected boolean |
wrapInInitScript
|
Constructor Summary | |
---|---|
RunScriptOptions()
|
Method Summary | |
---|---|
RunScriptOptions |
blockOnComplete(boolean blockOnComplete)
As of version 1.1.0, we cannot kick off a script unless a node is in RUNNING state. |
RunScriptOptions |
blockOnPort(int port,
int seconds)
When the node is started, wait until the following port is active |
Credentials |
getOverridingCredentials()
Whether to override the credentials with ones supplied in call to org.jclouds.compute.ComputeService#runScriptOnNodesWithTag . |
int |
getPort()
|
int |
getSeconds()
|
String |
getTaskName()
|
RunScriptOptions |
nameTask(String name)
|
RunScriptOptions |
overrideCredentialsWith(Credentials overridingCredentials)
|
RunScriptOptions |
overrideLoginCredentialWith(String loginCredential)
|
RunScriptOptions |
overrideLoginUserWith(String loginUser)
|
RunScriptOptions |
runAsRoot(boolean runAsRoot)
|
boolean |
shouldBlockOnComplete()
|
boolean |
shouldRunAsRoot()
Whether to run the script as root (or run with current privileges). |
boolean |
shouldWrapInInitScript()
Whether to wait until the script has completed. |
String |
toString()
|
RunScriptOptions |
wrapInInitScript(boolean wrapInInitScript)
default true |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final RunScriptOptions NONE
org.jclouds.compute.ComputeService#runScriptOnNodesWithTag
protected int port
protected int seconds
protected String taskName
protected Credentials overridingCredentials
protected boolean runAsRoot
protected boolean blockOnComplete
protected boolean wrapInInitScript
Constructor Detail |
---|
public RunScriptOptions()
Method Detail |
---|
public RunScriptOptions overrideCredentialsWith(Credentials overridingCredentials)
public RunScriptOptions overrideLoginUserWith(String loginUser)
public RunScriptOptions overrideLoginCredentialWith(String loginCredential)
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()
public Credentials getOverridingCredentials()
org.jclouds.compute.ComputeService#runScriptOnNodesWithTag
. By default, true.
public boolean shouldRunAsRoot()
public boolean shouldBlockOnComplete()
blockOnComplete(boolean)
public boolean shouldWrapInInitScript()
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |