|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jclouds.compute.options.RunScriptOptions org.jclouds.compute.options.TemplateOptions org.jclouds.compute.options.TemplateOptions.ImmutableTemplateOptions
public static class TemplateOptions.ImmutableTemplateOptions
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.jclouds.compute.options.TemplateOptions |
---|
TemplateOptions.Builder, TemplateOptions.ImmutableTemplateOptions |
Nested classes/interfaces inherited from class org.jclouds.compute.options.RunScriptOptions |
---|
RunScriptOptions.ImmutableRunScriptOptions |
Field Summary |
---|
Fields inherited from class org.jclouds.compute.options.TemplateOptions |
---|
blockUntilRunning, inboundPorts, NONE, privateKey, publicKey, script, tags, userMetadata |
Fields inherited from class org.jclouds.compute.options.RunScriptOptions |
---|
blockOnComplete, overridingCredentials, port, runAsRoot, seconds, taskName, wrapInInitScript |
Constructor Summary | |
---|---|
TemplateOptions.ImmutableTemplateOptions(TemplateOptions delegate)
|
Method Summary | ||
---|---|---|
|
as(Class<T> clazz)
|
|
TemplateOptions |
authorizePublicKey(Payload publicKey)
Deprecated. |
|
TemplateOptions |
authorizePublicKey(String publicKey)
authorize an rsa ssh key. |
|
TemplateOptions |
blockOnComplete(boolean blockOnComplete)
As of version 1.1.0, we cannot kick off a script unless a node is in RUNNING state. |
|
TemplateOptions |
blockOnPort(int port,
int seconds)
When the node is started, wait until the following port is active |
|
TemplateOptions |
blockUntilRunning(boolean blockUntilRunning)
unsupported as objects of this class are immutable |
|
TemplateOptions |
clone()
|
|
void |
copyTo(TemplateOptions to)
|
|
TemplateOptions |
dontAuthorizePublicKey()
|
|
int[] |
getInboundPorts()
|
|
Credentials |
getOverridingCredentials()
Whether to override the credentials with ones supplied in call to org.jclouds.compute.ComputeService#runScriptOnNodesWithTag . |
|
int |
getPort()
|
|
String |
getPrivateKey()
|
|
String |
getPublicKey()
|
|
Statement |
getRunScript()
|
|
int |
getSeconds()
|
|
Set<String> |
getTags()
|
|
String |
getTaskName()
|
|
Map<String,String> |
getUserMetadata()
|
|
TemplateOptions |
inboundPorts(int... ports)
Opens the set of ports to public access. |
|
TemplateOptions |
installPrivateKey(Payload privateKey)
replaces the rsa ssh key used at login. |
|
TemplateOptions |
installPrivateKey(String privateKey)
replaces the rsa ssh key used at login. |
|
TemplateOptions |
nameTask(String name)
|
|
TemplateOptions |
overrideCredentialsWith(Credentials overridingCredentials)
|
|
TemplateOptions |
overrideLoginCredentialWith(String loginCredential)
|
|
TemplateOptions |
overrideLoginUserWith(String loginUser)
|
|
TemplateOptions |
runAsRoot(boolean runAsRoot)
|
|
TemplateOptions |
runScript(byte[] script)
please use alternative that uses the Statement object |
|
TemplateOptions |
runScript(Payload script)
|
|
TemplateOptions |
runScript(Statement script)
unsupported as objects of this class are immutable |
|
boolean |
shouldBlockOnComplete()
|
|
boolean |
shouldBlockUntilRunning()
|
|
boolean |
shouldRunAsRoot()
Whether to run the script as root (or run with current privileges). |
|
boolean |
shouldWrapInInitScript()
Whether to wait until the script has completed. |
|
TemplateOptions |
tags(Iterable<String> tags)
assigns tags to the created nodes |
|
String |
toString()
|
|
TemplateOptions |
userMetadata(Map<String,String> userMetadata)
|
|
TemplateOptions |
userMetadata(String key,
String value)
|
|
TemplateOptions |
wrapInInitScript(boolean wrapInInitScript)
default true |
Methods inherited from class org.jclouds.compute.options.TemplateOptions |
---|
equals, hashCode |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public TemplateOptions.ImmutableTemplateOptions(TemplateOptions delegate)
Method Detail |
---|
public TemplateOptions clone()
clone
in class TemplateOptions
public String getTaskName()
getTaskName
in class RunScriptOptions
public int getPort()
getPort
in class RunScriptOptions
public int getSeconds()
getSeconds
in class RunScriptOptions
public Credentials getOverridingCredentials()
RunScriptOptions
org.jclouds.compute.ComputeService#runScriptOnNodesWithTag
. By default, true.
getOverridingCredentials
in class RunScriptOptions
public boolean shouldRunAsRoot()
RunScriptOptions
shouldRunAsRoot
in class RunScriptOptions
public boolean shouldBlockOnComplete()
shouldBlockOnComplete
in class RunScriptOptions
RunScriptOptions.blockOnComplete(boolean)
public boolean shouldWrapInInitScript()
RunScriptOptions
shouldWrapInInitScript
in class RunScriptOptions
public void copyTo(TemplateOptions to)
copyTo
in class TemplateOptions
public String toString()
toString
in class TemplateOptions
public TemplateOptions runScript(Payload script)
runScript
in class TemplateOptions
runScript(Statement)
,
Payloads
public TemplateOptions runScript(Statement script)
runScript
in class TemplateOptions
public TemplateOptions installPrivateKey(Payload privateKey)
TemplateOptions
String
installPrivateKey
in class TemplateOptions
Payloads
public TemplateOptions dontAuthorizePublicKey()
dontAuthorizePublicKey
in class TemplateOptions
@Deprecated public TemplateOptions authorizePublicKey(Payload publicKey)
TemplateOptions
String
authorizePublicKey
in class TemplateOptions
Payloads
public TemplateOptions blockOnPort(int port, int seconds)
RunScriptOptions
blockOnPort
in class TemplateOptions
public TemplateOptions nameTask(String name)
nameTask
in class TemplateOptions
jclouds-script-timestamp
where timestamp is millis since epochpublic TemplateOptions runAsRoot(boolean runAsRoot)
runAsRoot
in class TemplateOptions
public TemplateOptions overrideCredentialsWith(Credentials overridingCredentials)
overrideCredentialsWith
in class TemplateOptions
public TemplateOptions overrideLoginUserWith(String loginUser)
overrideLoginUserWith
in class TemplateOptions
public TemplateOptions overrideLoginCredentialWith(String loginCredential)
overrideLoginCredentialWith
in class TemplateOptions
public TemplateOptions wrapInInitScript(boolean wrapInInitScript)
RunScriptOptions
wrapInInitScript
in class TemplateOptions
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 TemplateOptions blockOnComplete(boolean blockOnComplete)
RunScriptOptions
blockOnComplete
in class TemplateOptions
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 <T extends TemplateOptions> T as(Class<T> clazz)
as
in class TemplateOptions
public TemplateOptions authorizePublicKey(String publicKey)
TemplateOptions
authorizePublicKey
in class TemplateOptions
public TemplateOptions blockUntilRunning(boolean blockUntilRunning)
blockUntilRunning
in class TemplateOptions
blockUntilRunning
- (default true) whether to block until the nodes in this template
are in NodeState.RUNNING
statepublic int[] getInboundPorts()
getInboundPorts
in class TemplateOptions
public String getPrivateKey()
getPrivateKey
in class TemplateOptions
public String getPublicKey()
getPublicKey
in class TemplateOptions
public Statement getRunScript()
getRunScript
in class TemplateOptions
public boolean shouldBlockUntilRunning()
shouldBlockUntilRunning
in class TemplateOptions
blockUntilRunning(boolean)
public TemplateOptions inboundPorts(int... ports)
TemplateOptions
inboundPorts
in class TemplateOptions
public TemplateOptions installPrivateKey(String privateKey)
TemplateOptions
installPrivateKey
in class TemplateOptions
public TemplateOptions runScript(byte[] script)
TemplateOptions
Statement
object
runScript
in class TemplateOptions
runScript(Statement)
,
Payloads
public Set<String> getTags()
getTags
in class TemplateOptions
public TemplateOptions tags(Iterable<String> tags)
TemplateOptions
tags
in class TemplateOptions
public TemplateOptions userMetadata(Map<String,String> userMetadata)
userMetadata
in class TemplateOptions
userMetadata
- user-defined metadata to assign to this serverpublic TemplateOptions userMetadata(String key, String value)
userMetadata
in class TemplateOptions
key
- key to place into the metadata mapvalue
- value to associate with that keypublic Map<String,String> getUserMetadata()
getUserMetadata
in class TemplateOptions
TemplateOptions.userMetadata(Map)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |