|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.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)
|
RunScriptOptions |
blockOnPort(int port,
int seconds)
When the node is started, wait until the following port is active |
Credentials |
getOverrideCredentials()
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 |
runAsRoot(boolean runAsRoot)
|
boolean |
shouldBlockOnComplete()
Whether to wait until the script has completed. |
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 |
withOverridingCredentials(Credentials overridingCredentials)
|
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 withOverridingCredentials(Credentials overridingCredentials)
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)
public RunScriptOptions blockOnPort(int port, int seconds)
public String getTaskName()
public int getPort()
public int getSeconds()
public Credentials getOverrideCredentials()
org.jclouds.compute.ComputeService#runScriptOnNodesWithTag
. By default, true.
public boolean shouldRunAsRoot()
public boolean shouldBlockOnComplete()
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 |