public class CloudStackTemplateOptions extends TemplateOptions implements Cloneable
ComputeService.createNodesInGroup(String, int, TemplateOptions)
and
ComputeService.createNodesInGroup(String, int, TemplateOptions)
operations on the gogrid provider.
CloudStackTemplateOptions
object is to statically import
CloudStackTemplateOptions.*
and invoke a static creation method
followed by an instance mutator (if needed):
import static org.jclouds.compute.options.CloudStackTemplateOptions.Builder.*; ComputeService client = // get connection templateBuilder.options(inboundPorts(22, 80, 8080, 443)); Set<? extends NodeMetadata> set = client.createNodesInGroup(tag, 2, templateBuilder.build());
Modifier and Type | Class and Description |
---|---|
static class |
CloudStackTemplateOptions.Builder |
TemplateOptions.ImmutableTemplateOptions
RunScriptOptions.ImmutableRunScriptOptions
Modifier and Type | Field and Description |
---|---|
protected String |
ipOnDefaultNetwork |
protected Map<String,Long> |
ipsToNetworks |
protected String |
keyPair |
protected Set<Long> |
networkIds |
static CloudStackTemplateOptions |
NONE |
protected Set<Long> |
securityGroupIds |
protected boolean |
setupStaticNat |
blockUntilRunning, inboundPorts, privateKey, publicKey, script, tags, userMetadata
authenticateSudo, blockOnComplete, loginPassword, loginPrivateKey, loginUser, port, runAsRoot, seconds, taskName, wrapInInitScript
Constructor and Description |
---|
CloudStackTemplateOptions() |
as, blockOnComplete, blockUntilRunning, dontAuthorizePublicKey, equals, getInboundPorts, getPrivateKey, getPublicKey, getRunScript, getTags, getUserMetadata, hashCode, nameTask, overrideAuthenticateSudo, overrideCredentialsWith, overrideLoginCredentials, overrideLoginCredentialWith, overrideLoginPassword, overrideLoginPrivateKey, overrideLoginUser, overrideLoginUserWith, runAsRoot, runScript, runScript, shouldBlockUntilRunning, tags, toString, wrapInInitScript
getLoginPassword, getLoginPrivateKey, getLoginUser, getOverridingCredentials, getPort, getSeconds, getTaskName, hasLoginPassword, hasLoginPasswordOption, hasLoginPrivateKey, hasLoginPrivateKeyOption, shouldAuthenticateSudo, shouldBlockOnComplete, shouldRunAsRoot, shouldWrapInInitScript
protected String ipOnDefaultNetwork
protected String keyPair
protected boolean setupStaticNat
public static final CloudStackTemplateOptions NONE
public CloudStackTemplateOptions clone()
clone
in class TemplateOptions
public void copyTo(TemplateOptions to)
copyTo
in class TemplateOptions
public CloudStackTemplateOptions securityGroupId(long securityGroupId)
public CloudStackTemplateOptions securityGroupIds(Iterable<Long> securityGroupIds)
public CloudStackTemplateOptions networkId(long networkId)
public CloudStackTemplateOptions networkIds(Iterable<Long> networkIds)
public CloudStackTemplateOptions setupStaticNat(boolean setupStaticNat)
public boolean shouldSetupStaticNat()
public CloudStackTemplateOptions ipOnDefaultNetwork(String ipOnDefaultNetwork)
public String getIpOnDefaultNetwork()
public CloudStackTemplateOptions ipsToNetworks(Map<String,Long> ipsToNetworks)
public CloudStackTemplateOptions keyPair(String keyPair)
public String getKeyPair()
public CloudStackTemplateOptions blockOnPort(int port, int seconds)
RunScriptOptions
blockOnPort
in class TemplateOptions
TemplateOptions.blockOnPort(int, int)
public CloudStackTemplateOptions inboundPorts(int... ports)
TemplateOptions
inboundPorts
in class TemplateOptions
TemplateOptions.inboundPorts(int...)
public CloudStackTemplateOptions authorizePublicKey(String publicKey)
TemplateOptions
authorizePublicKey
in class TemplateOptions
TemplateOptions.authorizePublicKey(String)
public CloudStackTemplateOptions installPrivateKey(String privateKey)
TemplateOptions
installPrivateKey
in class TemplateOptions
TemplateOptions.installPrivateKey(String)
@Deprecated public CloudStackTemplateOptions runScript(Payload script)
TemplateOptions
runScript
in class TemplateOptions
TemplateOptions.runScript(Payload)
public CloudStackTemplateOptions userMetadata(Map<String,String> userMetadata)
userMetadata
in class TemplateOptions
userMetadata
- user-defined metadata to assign to this serverpublic CloudStackTemplateOptions userMetadata(String key, String value)
userMetadata
in class TemplateOptions
key
- key to place into the metadata mapvalue
- value to associate with that keyCopyright © 2009-2012 jclouds. All Rights Reserved.