public static class TemplateOptions.ImmutableTemplateOptions extends TemplateOptions
TemplateOptions.Builder, TemplateOptions.ImmutableTemplateOptions
RunScriptOptions.ImmutableRunScriptOptions
blockUntilRunning, inboundPorts, NONE, privateKey, publicKey, script, tags, userMetadata
authenticateSudo, blockOnComplete, loginPassword, loginPrivateKey, loginUser, port, runAsRoot, seconds, taskName, wrapInInitScript
Constructor and Description |
---|
TemplateOptions.ImmutableTemplateOptions(TemplateOptions delegate) |
equals, hashCode, runScript
getOverridingCredentials, hasLoginPassword, hasLoginPasswordOption, hasLoginPrivateKey, hasLoginPrivateKeyOption
public TemplateOptions.ImmutableTemplateOptions(TemplateOptions delegate)
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 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)
TemplateOptions
runScript
in class TemplateOptions
runScript(Statement)
,
Payloads
public TemplateOptions runScript(Statement script)
runScript
in class TemplateOptions
public TemplateOptions dontAuthorizePublicKey()
dontAuthorizePublicKey
in class TemplateOptions
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 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 TemplateOptions overrideLoginCredentials(LoginCredentials overridingCredentials)
overrideLoginCredentials
in class TemplateOptions
public TemplateOptions overrideLoginPassword(String password)
overrideLoginPassword
in class TemplateOptions
public TemplateOptions overrideLoginPrivateKey(String privateKey)
overrideLoginPrivateKey
in class TemplateOptions
public TemplateOptions overrideAuthenticateSudo(boolean authenticateSudo)
overrideAuthenticateSudo
in class TemplateOptions
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.@Deprecated public TemplateOptions overrideCredentialsWith(Credentials overridingCredentials)
RunScriptOptions
overrideCredentialsWith
in class TemplateOptions
RunScriptOptions.overrideLoginCredentials(org.jclouds.domain.LoginCredentials)
@Deprecated public TemplateOptions overrideLoginUserWith(String loginUser)
RunScriptOptions
overrideLoginUserWith
in class TemplateOptions
RunScriptOptions.overrideLoginCredentials(org.jclouds.domain.LoginCredentials)
public TemplateOptions overrideLoginUser(String loginUser)
overrideLoginUser
in class TemplateOptions
public TemplateOptions overrideLoginCredentialWith(String loginCredential)
RunScriptOptions
overrideLoginCredentialWith
in class TemplateOptions
RunScriptOptions.overrideLoginCredentials(org.jclouds.domain.LoginCredentials)
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 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)
Copyright © 2009-2012 jclouds. All Rights Reserved.