public class VCloudTemplateOptions extends TemplateOptions implements Cloneable
ComputeService#runNode
operation on
the "vcloud" provider.
import static org.jclouds.compute.options.VCloudTemplateOptions.Builder.*;
ComputeService client = // get connection
templateBuilder.options(inboundPorts(22, 80, 8080, 443));
Set set = client.createNodesInGroup(tag, 2, templateBuilder.build());
Modifier and Type | Class and Description |
---|---|
static class |
VCloudTemplateOptions.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 |
---|
VCloudTemplateOptions() |
Modifier and Type | Method and Description |
---|---|
VCloudTemplateOptions |
authorizePublicKey(String publicKey)
authorize an rsa ssh key.
|
VCloudTemplateOptions |
blockOnPort(int port,
int seconds)
When the node is started, wait until the following port is active
|
VCloudTemplateOptions |
clone() |
void |
copyTo(TemplateOptions to) |
VCloudTemplateOptions |
customizationScript(String customizationScript)
Specifies the customizationScript used to run instances with
|
VCloudTemplateOptions |
description(String description)
Optional description.
|
boolean |
equals(Object o) |
VCloudTemplateOptions |
fenceMode(FenceMode fenceMode)
How to connect to the parent network
|
String |
getCustomizationScript() |
String |
getDescription() |
FenceMode |
getFenceMode() |
IpAddressAllocationMode |
getIpAddressAllocationMode() |
URI |
getParentNetwork() |
int |
hashCode() |
VCloudTemplateOptions |
inboundPorts(int... ports)
special thing is that we do assume if you are passing groups that you have
everything you need already defined.
|
VCloudTemplateOptions |
installPrivateKey(String privateKey)
replaces the rsa ssh key used at login.
|
VCloudTemplateOptions |
ipAddressAllocationMode(IpAddressAllocationMode ipAddressAllocationMode)
Specifies the ipAddressAllocationMode used to for network interfaces on
the VMs
|
VCloudTemplateOptions |
parentNetwork(URI parentNetwork)
Specifies the parentNetwork to connect the the network interfaces on the
VMs to.
|
com.google.common.base.Objects.ToStringHelper |
string() |
VCloudTemplateOptions |
userMetadata(Map<String,String> userMetadata) |
VCloudTemplateOptions |
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, tags, wrapInInitScript
getLoginPassword, getLoginPrivateKey, getLoginUser, getPort, getSeconds, getTaskName, hasLoginPassword, hasLoginPasswordOption, hasLoginPrivateKey, hasLoginPrivateKeyOption, shouldAuthenticateSudo, shouldBlockOnComplete, shouldRunAsRoot, shouldWrapInInitScript, toString
public VCloudTemplateOptions clone()
clone
in class TemplateOptions
public void copyTo(TemplateOptions to)
copyTo
in class TemplateOptions
public boolean equals(Object o)
equals
in class TemplateOptions
public int hashCode()
hashCode
in class TemplateOptions
public com.google.common.base.Objects.ToStringHelper string()
string
in class TemplateOptions
public VCloudTemplateOptions description(String description)
public VCloudTemplateOptions customizationScript(String customizationScript)
public VCloudTemplateOptions ipAddressAllocationMode(IpAddressAllocationMode ipAddressAllocationMode)
public VCloudTemplateOptions parentNetwork(URI parentNetwork)
public VCloudTemplateOptions fenceMode(FenceMode fenceMode)
public String getDescription()
public String getCustomizationScript()
public IpAddressAllocationMode getIpAddressAllocationMode()
public URI getParentNetwork()
public FenceMode getFenceMode()
public VCloudTemplateOptions blockOnPort(int port, int seconds)
RunScriptOptions
blockOnPort
in class TemplateOptions
TemplateOptions.blockOnPort(int, int)
public VCloudTemplateOptions inboundPorts(int... ports)
inboundPorts
in class TemplateOptions
TemplateOptions.inboundPorts
public VCloudTemplateOptions authorizePublicKey(String publicKey)
TemplateOptions
authorizePublicKey
in class TemplateOptions
TemplateOptions.authorizePublicKey(String)
public VCloudTemplateOptions installPrivateKey(String privateKey)
TemplateOptions
installPrivateKey
in class TemplateOptions
TemplateOptions.installPrivateKey(String)
public VCloudTemplateOptions userMetadata(Map<String,String> userMetadata)
userMetadata
in class TemplateOptions
userMetadata
- user-defined metadata to assign to this serverpublic VCloudTemplateOptions userMetadata(String key, String value)
userMetadata
in class TemplateOptions
key
- key to place into the metadata mapvalue
- value to associate with that keyCopyright © 2009-2013 jclouds. All Rights Reserved.