public class TerremarkVCloudTemplateOptions extends TemplateOptions implements Cloneable
ComputeService#runNode
operation on
the "trmk-vcloudexpress" provider.
import static org.jclouds.vcloud.terremark.compute.options.TerremarkVCloudTemplateOptions.Builder.*;
ComputeService client = // get connection
templateBuilder.options(inboundPorts(22, 80, 8080, 443));
Set extends NodeMetadata> set = client.runNodesWithTag(tag, 2, templateBuilder.build());
Modifier and Type | Class and Description |
---|---|
static class |
TerremarkVCloudTemplateOptions.Builder |
TemplateOptions.ImmutableTemplateOptions
RunScriptOptions.ImmutableRunScriptOptions
Modifier and Type | Field and Description |
---|---|
static TerremarkVCloudTemplateOptions |
NONE |
blockUntilRunning, inboundPorts, privateKey, publicKey, script, tags, userMetadata
authenticateSudo, blockOnComplete, loginPassword, loginPrivateKey, loginUser, port, runAsRoot, seconds, taskName, wrapInInitScript
Constructor and Description |
---|
TerremarkVCloudTemplateOptions() |
as, blockOnComplete, blockUntilRunning, dontAuthorizePublicKey, getInboundPorts, getPrivateKey, getPublicKey, getRunScript, getTags, getUserMetadata, nameTask, overrideAuthenticateSudo, overrideCredentialsWith, overrideLoginCredentials, overrideLoginCredentialWith, overrideLoginPassword, overrideLoginPrivateKey, overrideLoginUser, overrideLoginUserWith, runAsRoot, runScript, runScript, shouldBlockUntilRunning, tags, wrapInInitScript
getLoginPassword, getLoginPrivateKey, getLoginUser, getOverridingCredentials, getPort, getSeconds, getTaskName, hasLoginPassword, hasLoginPasswordOption, hasLoginPrivateKey, hasLoginPrivateKeyOption, shouldAuthenticateSudo, shouldBlockOnComplete, shouldRunAsRoot, shouldWrapInInitScript
public static final TerremarkVCloudTemplateOptions NONE
public TerremarkVCloudTemplateOptions clone()
clone
in class TemplateOptions
public void copyTo(TemplateOptions to)
copyTo
in class TemplateOptions
public TerremarkVCloudTemplateOptions sshKeyFingerprint(String keyPair)
public TerremarkVCloudTemplateOptions noKeyPair()
public TerremarkVCloudTemplateOptions blockOnPort(int port, int seconds)
RunScriptOptions
blockOnPort
in class TemplateOptions
TemplateOptions.blockOnPort(int, int)
public TerremarkVCloudTemplateOptions inboundPorts(int... ports)
inboundPorts
in class TemplateOptions
TemplateOptions.inboundPorts
public TerremarkVCloudTemplateOptions authorizePublicKey(String publicKey)
TemplateOptions
authorizePublicKey
in class TemplateOptions
TemplateOptions.authorizePublicKey(String)
public TerremarkVCloudTemplateOptions installPrivateKey(String privateKey)
TemplateOptions
installPrivateKey
in class TemplateOptions
TemplateOptions.installPrivateKey(String)
@Deprecated public TerremarkVCloudTemplateOptions runScript(Payload script)
TemplateOptions
runScript
in class TemplateOptions
TemplateOptions.runScript(Payload)
public TerremarkVCloudTemplateOptions userMetadata(Map<String,String> userMetadata)
userMetadata
in class TemplateOptions
userMetadata
- user-defined metadata to assign to this serverTemplateOptions.userMetadata
public TerremarkVCloudTemplateOptions userMetadata(String key, String value)
userMetadata
in class TemplateOptions
key
- key to place into the metadata mapvalue
- value to associate with that keypublic String getSshKeyFingerprint()
public boolean shouldAutomaticallyCreateKeyPair()
public int hashCode()
hashCode
in class TemplateOptions
public boolean equals(Object obj)
equals
in class TemplateOptions
public String toString()
toString
in class TemplateOptions
Copyright © 2009-2012 jclouds. All Rights Reserved.