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() |
Modifier and Type | Method and Description |
---|---|
TerremarkVCloudTemplateOptions |
authorizePublicKey(String publicKey)
authorize an rsa ssh key.
|
TerremarkVCloudTemplateOptions |
blockOnPort(int port,
int seconds)
When the node is started, wait until the following port is active
|
TerremarkVCloudTemplateOptions |
clone() |
void |
copyTo(TemplateOptions to) |
boolean |
equals(Object obj) |
String |
getSshKeyFingerprint() |
int |
hashCode() |
TerremarkVCloudTemplateOptions |
inboundPorts(int... ports)
special thing is that we do assume if you are passing groups that you have
everything you need already defined.
|
TerremarkVCloudTemplateOptions |
installPrivateKey(String privateKey)
replaces the rsa ssh key used at login.
|
TerremarkVCloudTemplateOptions |
noKeyPair()
Do not use a keypair on instances
|
boolean |
shouldAutomaticallyCreateKeyPair() |
TerremarkVCloudTemplateOptions |
sshKeyFingerprint(String keyPair)
Specifies the keypair used to run instances with
|
String |
toString() |
TerremarkVCloudTemplateOptions |
userMetadata(Map<String,String> userMetadata) |
TerremarkVCloudTemplateOptions |
userMetadata(String key,
String value) |
as, blockOnComplete, blockUntilRunning, dontAuthorizePublicKey, getInboundPorts, getPrivateKey, getPublicKey, getRunScript, getTags, getUserMetadata, nameTask, overrideAuthenticateSudo, overrideLoginCredentials, overrideLoginPassword, overrideLoginPrivateKey, overrideLoginUser, runAsRoot, runScript, runScript, shouldBlockUntilRunning, string, tags, wrapInInitScript
getLoginPassword, getLoginPrivateKey, getLoginUser, 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)
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 RunScriptOptions
Copyright © 2009-2013 jclouds. All Rights Reserved.