|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jclouds.compute.options.RunScriptOptions org.jclouds.compute.options.TemplateOptions org.jclouds.vcloud.compute.options.VCloudTemplateOptions
public class VCloudTemplateOptions
Contains options supported in the 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 extends NodeMetadata> set = client.runNodesWithTag(tag, 2, templateBuilder.build());
- Author:
- Adrian Cole
Nested Class Summary
static class
VCloudTemplateOptions.Builder
Nested classes/interfaces inherited from class org.jclouds.compute.options.TemplateOptions
TemplateOptions.ImmutableTemplateOptions
Nested classes/interfaces inherited from class org.jclouds.compute.options.RunScriptOptions
RunScriptOptions.ImmutableRunScriptOptions
Field Summary
static VCloudTemplateOptions
NONE
Fields inherited from class org.jclouds.compute.options.TemplateOptions
blockUntilRunning, inboundPorts, privateKey, publicKey, script, tags, userMetadata
Fields inherited from class org.jclouds.compute.options.RunScriptOptions
blockOnComplete, overridingCredentials, port, runAsRoot, seconds, taskName, wrapInInitScript
Constructor Summary
VCloudTemplateOptions()
Method Summary
VCloudTemplateOptions
authorizePublicKey(Payload publicKey)
Deprecated.
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(Payload privateKey)
Deprecated.
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(byte[] script)
Deprecated.
VCloudTemplateOptions
runScript(Payload script)
String
toString()
VCloudTemplateOptions
userMetadata(Map<String,String> userMetadata)
VCloudTemplateOptions
userMetadata(String key,
String value)
Methods inherited from class org.jclouds.compute.options.TemplateOptions
as, blockOnComplete, blockUntilRunning, dontAuthorizePublicKey, getInboundPorts, getPrivateKey, getPublicKey, getRunScript, getTags, getUserMetadata, nameTask, overrideCredentialsWith, overrideLoginCredentialWith, overrideLoginUserWith, runAsRoot, runScript, shouldBlockUntilRunning, tags, wrapInInitScript
Methods inherited from class org.jclouds.compute.options.RunScriptOptions
getOverridingCredentials, getPort, getSeconds, getTaskName, shouldBlockOnComplete, shouldRunAsRoot, shouldWrapInInitScript
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
Field Detail
NONE
public static final VCloudTemplateOptions NONE
Constructor Detail
VCloudTemplateOptions
public VCloudTemplateOptions()
Method Detail
clone
public VCloudTemplateOptions clone()
- Overrides:
clone
in class TemplateOptions
copyTo
public void copyTo(TemplateOptions to)
- Overrides:
copyTo
in class TemplateOptions
description
public VCloudTemplateOptions description(String description)
- Optional description. Used for the Description of the vApp created by this
instantiation.
customizationScript
public VCloudTemplateOptions customizationScript(String customizationScript)
- Specifies the customizationScript used to run instances with
ipAddressAllocationMode
public VCloudTemplateOptions ipAddressAllocationMode(IpAddressAllocationMode ipAddressAllocationMode)
- Specifies the ipAddressAllocationMode used to for network interfaces on
the VMs
getDescription
public String getDescription()
- Returns:
- description of the vApp
getCustomizationScript
public String getCustomizationScript()
- Returns:
- customizationScript on the vms
getIpAddressAllocationMode
public IpAddressAllocationMode getIpAddressAllocationMode()
- Returns:
- ipAddressAllocationMode on the vms
blockOnPort
public VCloudTemplateOptions blockOnPort(int port,
int seconds)
- Description copied from class:
RunScriptOptions
- When the node is started, wait until the following port is active
- Overrides:
blockOnPort
in class TemplateOptions
- See Also:
TemplateOptions.blockOnPort(int, int)
inboundPorts
public VCloudTemplateOptions inboundPorts(int... ports)
- special thing is that we do assume if you are passing groups that you have
everything you need already defined. for example, our option inboundPorts
normally creates ingress rules accordingly but if we notice you've
specified securityGroups, we do not mess with rules at all
- Overrides:
inboundPorts
in class TemplateOptions
- See Also:
TemplateOptions.inboundPorts
authorizePublicKey
public VCloudTemplateOptions authorizePublicKey(String publicKey)
- Description copied from class:
TemplateOptions
- authorize an rsa ssh key.
- Overrides:
authorizePublicKey
in class TemplateOptions
- See Also:
TemplateOptions.authorizePublicKey(String)
authorizePublicKey
@Deprecated
public VCloudTemplateOptions authorizePublicKey(Payload publicKey)
- Deprecated.
- Description copied from class:
TemplateOptions
- authorize an rsa ssh key.
please use alternative that uses
String
- Overrides:
authorizePublicKey
in class TemplateOptions
- See Also:
TemplateOptions.authorizePublicKey(Payload)
installPrivateKey
public VCloudTemplateOptions installPrivateKey(String privateKey)
- Description copied from class:
TemplateOptions
- replaces the rsa ssh key used at login.
- Overrides:
installPrivateKey
in class TemplateOptions
- See Also:
TemplateOptions.installPrivateKey(String)
installPrivateKey
@Deprecated
public VCloudTemplateOptions installPrivateKey(Payload privateKey)
- Deprecated.
- Description copied from class:
TemplateOptions
- replaces the rsa ssh key used at login.
please use alternative that uses
String
- Overrides:
installPrivateKey
in class TemplateOptions
- See Also:
TemplateOptions.installPrivateKey(Payload)
runScript
public VCloudTemplateOptions runScript(Payload script)
- Overrides:
runScript
in class TemplateOptions
- See Also:
TemplateOptions.runScript(Payload)
runScript
@Deprecated
public VCloudTemplateOptions runScript(byte[] script)
- Deprecated.
- Description copied from class:
TemplateOptions
-
please use alternative that uses the
Statement
object
- Overrides:
runScript
in class TemplateOptions
- See Also:
TemplateOptions.runScript(byte[])
userMetadata
public VCloudTemplateOptions userMetadata(Map<String,String> userMetadata)
-
- Overrides:
userMetadata
in class TemplateOptions
- Parameters:
userMetadata
- user-defined metadata to assign to this server
userMetadata
public VCloudTemplateOptions userMetadata(String key,
String value)
-
- Overrides:
userMetadata
in class TemplateOptions
- Parameters:
key
- key to place into the metadata mapvalue
- value to associate with that key
hashCode
public int hashCode()
- Overrides:
hashCode
in class TemplateOptions
equals
public boolean equals(Object obj)
- Overrides:
equals
in class TemplateOptions
toString
public String toString()
- Overrides:
toString
in class TemplateOptions
Overview
Package
Class
Use
Tree
Deprecated
Index
Help
PREV CLASS
NEXT CLASS
FRAMES
NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD
DETAIL: FIELD | CONSTR | METHOD
Copyright © 2009-2011 jclouds. All Rights Reserved.