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
Modifier and Type | Field and Description |
---|---|
static VCloudTemplateOptions |
NONE |
blockUntilRunning, inboundPorts, 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 obj) |
String |
getCustomizationScript() |
String |
getDescription() |
IpAddressAllocationMode |
getIpAddressAllocationMode() |
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 |
runScript(Payload script)
Deprecated.
|
String |
toString() |
VCloudTemplateOptions |
userMetadata(Map<String,String> userMetadata) |
VCloudTemplateOptions |
userMetadata(String key,
String value) |
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 VCloudTemplateOptions NONE
public VCloudTemplateOptions clone()
clone
in class TemplateOptions
public void copyTo(TemplateOptions to)
copyTo
in class TemplateOptions
public VCloudTemplateOptions description(String description)
public VCloudTemplateOptions customizationScript(String customizationScript)
public VCloudTemplateOptions ipAddressAllocationMode(IpAddressAllocationMode ipAddressAllocationMode)
public String getDescription()
public String getCustomizationScript()
public IpAddressAllocationMode getIpAddressAllocationMode()
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)
@Deprecated public VCloudTemplateOptions runScript(Payload script)
TemplateOptions
runScript
in class TemplateOptions
TemplateOptions.runScript(Payload)
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 keypublic 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.