public class CloudSigmaTemplateOptions extends TemplateOptions implements Cloneable
Modifier and Type | Class and Description |
---|---|
static class |
CloudSigmaTemplateOptions.Builder |
TemplateOptions.ImmutableTemplateOptions
RunScriptOptions.ImmutableRunScriptOptions
Modifier and Type | Field and Description |
---|---|
static CloudSigmaTemplateOptions |
NONE |
blockUntilRunning, inboundPorts, privateKey, publicKey, script, tags, userMetadata
authenticateSudo, blockOnComplete, loginPassword, loginPrivateKey, loginUser, port, runAsRoot, seconds, taskName, wrapInInitScript
Constructor and Description |
---|
CloudSigmaTemplateOptions() |
as, blockOnComplete, getInboundPorts, getPrivateKey, getPublicKey, getRunScript, getTags, getUserMetadata, runScript, shouldBlockUntilRunning, tags, wrapInInitScript
getLoginPassword, getLoginPrivateKey, getLoginUser, getOverridingCredentials, getPort, getSeconds, getTaskName, hasLoginPassword, hasLoginPasswordOption, hasLoginPrivateKey, hasLoginPrivateKeyOption, shouldAuthenticateSudo, shouldBlockOnComplete, shouldRunAsRoot, shouldWrapInInitScript
public static final CloudSigmaTemplateOptions NONE
public CloudSigmaTemplateOptions diskDriveAffinity(AffinityType diskDriveAffinity)
public AffinityType getDiskDriveAffinity()
public CloudSigmaTemplateOptions clone()
clone
in class TemplateOptions
public void copyTo(TemplateOptions to)
copyTo
in class TemplateOptions
public CloudSigmaTemplateOptions blockOnPort(int port, int seconds)
blockOnPort
in class TemplateOptions
public CloudSigmaTemplateOptions inboundPorts(int... ports)
inboundPorts
in class TemplateOptions
public CloudSigmaTemplateOptions authorizePublicKey(String publicKey)
authorizePublicKey
in class TemplateOptions
public CloudSigmaTemplateOptions installPrivateKey(String privateKey)
installPrivateKey
in class TemplateOptions
@Deprecated public CloudSigmaTemplateOptions runScript(Payload script)
runScript
in class TemplateOptions
TemplateOptions.ImmutableTemplateOptions.runScript(Statement)
,
Payloads
public CloudSigmaTemplateOptions blockUntilRunning(boolean blockUntilRunning)
TemplateOptions.ImmutableTemplateOptions.runScript(Statement)
and
RunScriptOptions.blockOnComplete(boolean)
, as all current
implementations utilize ssh in order to execute scripts.blockUntilRunning
in class TemplateOptions
blockUntilRunning
- (default true) whether to block until the nodes in this template
are in NodeState.RUNNING
statepublic CloudSigmaTemplateOptions dontAuthorizePublicKey()
dontAuthorizePublicKey
in class TemplateOptions
public CloudSigmaTemplateOptions nameTask(String name)
nameTask
in class TemplateOptions
jclouds-script-timestamp
where timestamp is millis since
epochpublic CloudSigmaTemplateOptions runAsRoot(boolean runAsRoot)
runAsRoot
in class TemplateOptions
public CloudSigmaTemplateOptions runScript(Statement script)
runScript
in class TemplateOptions
@Deprecated public CloudSigmaTemplateOptions overrideCredentialsWith(Credentials overridingCredentials)
overrideCredentialsWith
in class TemplateOptions
RunScriptOptions.overrideLoginCredentials(org.jclouds.domain.LoginCredentials)
@Deprecated public CloudSigmaTemplateOptions overrideLoginUserWith(String loginUser)
overrideLoginUserWith
in class TemplateOptions
RunScriptOptions.overrideLoginCredentials(org.jclouds.domain.LoginCredentials)
@Deprecated public CloudSigmaTemplateOptions overrideLoginCredentialWith(String loginCredential)
overrideLoginCredentialWith
in class TemplateOptions
RunScriptOptions.overrideLoginCredentials(org.jclouds.domain.LoginCredentials)
public CloudSigmaTemplateOptions overrideLoginCredentials(LoginCredentials overridingCredentials)
overrideLoginCredentials
in class TemplateOptions
public CloudSigmaTemplateOptions overrideLoginPassword(String password)
overrideLoginPassword
in class TemplateOptions
public CloudSigmaTemplateOptions overrideLoginPrivateKey(String privateKey)
overrideLoginPrivateKey
in class TemplateOptions
public CloudSigmaTemplateOptions overrideLoginUser(String loginUser)
overrideLoginUser
in class TemplateOptions
public CloudSigmaTemplateOptions overrideAuthenticateSudo(boolean authenticateSudo)
overrideAuthenticateSudo
in class TemplateOptions
public CloudSigmaTemplateOptions userMetadata(Map<String,String> userMetadata)
userMetadata
in class TemplateOptions
userMetadata
- user-defined metadata to assign to this serverpublic CloudSigmaTemplateOptions userMetadata(String key, String value)
userMetadata
in class TemplateOptions
key
- key to place into the metadata mapvalue
- value to associate with that keypublic boolean equals(Object o)
equals
in class TemplateOptions
public int hashCode()
hashCode
in class TemplateOptions
public String toString()
toString
in class TemplateOptions
Copyright © 2009-2012 jclouds. All Rights Reserved.