public static class RunScriptOptions.ImmutableRunScriptOptions extends RunScriptOptions
RunScriptOptions.Builder, RunScriptOptions.ImmutableRunScriptOptions
authenticateSudo, blockOnComplete, loginPassword, loginPrivateKey, loginUser, NONE, port, runAsRoot, seconds, taskName, wrapInInitScript
Constructor and Description |
---|
RunScriptOptions.ImmutableRunScriptOptions(RunScriptOptions delegate) |
Modifier and Type | Method and Description |
---|---|
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
|
String |
getLoginPassword() |
String |
getLoginPrivateKey() |
String |
getLoginUser() |
int |
getPort() |
int |
getSeconds() |
String |
getTaskName() |
RunScriptOptions |
nameTask(String name) |
RunScriptOptions |
overrideAuthenticateSudo(boolean authenticateSudo) |
RunScriptOptions |
overrideLoginCredentials(LoginCredentials overridingCredentials) |
RunScriptOptions |
overrideLoginPassword(String password) |
RunScriptOptions |
overrideLoginPrivateKey(String privateKey) |
RunScriptOptions |
overrideLoginUser(String loginUser) |
RunScriptOptions |
runAsRoot(boolean runAsRoot) |
Boolean |
shouldAuthenticateSudo() |
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
|
equals, hashCode, hasLoginPassword, hasLoginPasswordOption, hasLoginPrivateKey, hasLoginPrivateKeyOption, string
public RunScriptOptions.ImmutableRunScriptOptions(RunScriptOptions delegate)
public String toString()
toString
in class RunScriptOptions
public boolean shouldRunAsRoot()
RunScriptOptions
shouldRunAsRoot
in class RunScriptOptions
public RunScriptOptions runAsRoot(boolean runAsRoot)
runAsRoot
in class RunScriptOptions
public boolean shouldBlockOnComplete()
shouldBlockOnComplete
in class RunScriptOptions
RunScriptOptions.blockOnComplete(boolean)
public RunScriptOptions blockOnComplete(boolean blockOnComplete)
RunScriptOptions
blockOnComplete
in class RunScriptOptions
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 overrideLoginCredentials(LoginCredentials overridingCredentials)
overrideLoginCredentials
in class RunScriptOptions
public RunScriptOptions overrideLoginPassword(String password)
overrideLoginPassword
in class RunScriptOptions
public RunScriptOptions overrideLoginPrivateKey(String privateKey)
overrideLoginPrivateKey
in class RunScriptOptions
public RunScriptOptions overrideAuthenticateSudo(boolean authenticateSudo)
overrideAuthenticateSudo
in class RunScriptOptions
public String getLoginUser()
getLoginUser
in class RunScriptOptions
ComputeService.runScriptOnNode(java.lang.String, org.jclouds.scriptbuilder.domain.Statement, org.jclouds.compute.options.RunScriptOptions)
. By
default, null.public Boolean shouldAuthenticateSudo()
shouldAuthenticateSudo
in class RunScriptOptions
ComputeService.runScriptOnNode(java.lang.String, org.jclouds.scriptbuilder.domain.Statement, org.jclouds.compute.options.RunScriptOptions)
. By
default, null.public String getLoginPassword()
getLoginPassword
in class RunScriptOptions
ComputeService.runScriptOnNode(java.lang.String, org.jclouds.scriptbuilder.domain.Statement, org.jclouds.compute.options.RunScriptOptions)
. By
default, null.public String getLoginPrivateKey()
getLoginPrivateKey
in class RunScriptOptions
ComputeService.runScriptOnNode(java.lang.String, org.jclouds.scriptbuilder.domain.Statement, org.jclouds.compute.options.RunScriptOptions)
. By
default, null.public boolean shouldWrapInInitScript()
RunScriptOptions
shouldWrapInInitScript
in class RunScriptOptions
public RunScriptOptions overrideLoginUser(String loginUser)
overrideLoginUser
in class RunScriptOptions
public RunScriptOptions wrapInInitScript(boolean wrapInInitScript)
RunScriptOptions
wrapInInitScript
in class RunScriptOptions
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 String getTaskName()
getTaskName
in class RunScriptOptions
public RunScriptOptions nameTask(String name)
nameTask
in class RunScriptOptions
jclouds-script-timestamp
where timestamp is millis since
epochpublic RunScriptOptions blockOnPort(int port, int seconds)
RunScriptOptions
blockOnPort
in class RunScriptOptions
public int getPort()
getPort
in class RunScriptOptions
public int getSeconds()
getSeconds
in class RunScriptOptions
Copyright © 2009-2014 The Apache Software Foundation. All Rights Reserved.