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 |
account |
protected int |
dataDiskSize |
protected String |
diskOfferingId |
protected String |
domainId |
protected boolean |
generateKeyPair |
protected boolean |
generateSecurityGroup |
protected String |
ipOnDefaultNetwork |
protected Map<String,String> |
ipsToNetworks |
protected String |
keyPair |
static CloudStackTemplateOptions |
NONE |
protected Set<String> |
securityGroupIds |
protected boolean |
setupStaticNat |
protected byte[] |
unencodedData |
blockUntilRunning, inboundPorts, networks, nodeNames, privateKey, publicKey, script, securityGroups, tags, userMetadata
authenticateSudo, blockOnComplete, loginPassword, loginPrivateKey, loginUser, port, runAsRoot, seconds, taskName, wrapInInitScript
Constructor and Description |
---|
CloudStackTemplateOptions() |
as, blockOnComplete, blockUntilRunning, dontAuthorizePublicKey, equals, getGroups, getInboundPorts, getNetworks, getNodeNames, getPrivateKey, getPublicKey, getRunScript, getTags, getUserMetadata, hashCode, nameTask, overrideAuthenticateSudo, overrideLoginCredentials, overrideLoginPassword, overrideLoginPrivateKey, overrideLoginUser, runAsRoot, runScript, runScript, securityGroups, securityGroups, shouldBlockUntilRunning, string, tags, wrapInInitScript
copyTo, getLoginPassword, getLoginPrivateKey, getLoginUser, getPort, getSeconds, getTaskName, hasLoginPassword, hasLoginPasswordOption, hasLoginPrivateKey, hasLoginPrivateKeyOption, overrideLoginPassword, overrideLoginPrivateKey, shouldAuthenticateSudo, shouldBlockOnComplete, shouldRunAsRoot, shouldWrapInInitScript, toString
protected String ipOnDefaultNetwork
protected String keyPair
protected boolean setupStaticNat
protected String account
protected String domainId
protected boolean generateKeyPair
protected boolean generateSecurityGroup
protected String diskOfferingId
protected int dataDiskSize
protected byte[] unencodedData
public static final CloudStackTemplateOptions NONE
public CloudStackTemplateOptions clone()
clone
in class TemplateOptions
public void copyTo(TemplateOptions to)
copyTo
in class TemplateOptions
public CloudStackTemplateOptions diskOfferingId(String diskOfferingId)
public String getDiskOfferingId()
public CloudStackTemplateOptions dataDiskSize(int dataDiskSize)
DeployVirtualMachineOptions#dataDiskSize
public int getDataDiskSize()
public CloudStackTemplateOptions userData(byte[] unencodedData)
DeployVirtualMachineOptions#userData
public byte[] getUserData()
public CloudStackTemplateOptions securityGroupId(String securityGroupId)
DeployVirtualMachineOptions#securityGroupId
public CloudStackTemplateOptions securityGroupIds(Iterable<String> securityGroupIds)
DeployVirtualMachineOptions#securityGroupIds
public CloudStackTemplateOptions generateSecurityGroup(boolean enable)
shouldGenerateKeyPair()
public boolean shouldGenerateSecurityGroup()
@Deprecated public CloudStackTemplateOptions networkId(String networkId)
DeployVirtualMachineOptions#networkId
@Deprecated public CloudStackTemplateOptions networkIds(Iterable<String> networkIds)
DeployVirtualMachineOptions#networkIds
@Deprecated public Set<String> getNetworkIds()
public CloudStackTemplateOptions setupStaticNat(boolean setupStaticNat)
public boolean shouldSetupStaticNat()
public CloudStackTemplateOptions ipOnDefaultNetwork(String ipOnDefaultNetwork)
DeployVirtualMachineOptions#ipOnDefaultNetwork
public String getIpOnDefaultNetwork()
public CloudStackTemplateOptions ipsToNetworks(Map<String,String> ipsToNetworks)
DeployVirtualMachineOptions#ipOnDefaultNetwork(String)
public CloudStackTemplateOptions keyPair(String keyPair)
DeployVirtualMachineOptions#keyPair(String)
public String getKeyPair()
public CloudStackTemplateOptions generateKeyPair(boolean enable)
shouldGenerateKeyPair()
public boolean shouldGenerateKeyPair()
public CloudStackTemplateOptions account(String account)
DeployVirtualMachineOptions#accountInDomain(String,String)
public String getAccount()
public CloudStackTemplateOptions domainId(String domainId)
DeployVirtualMachineOptions#accountInDomain(String,String)
,
DeployVirtualMachineOptions#domainId(String)
public String getDomainId()
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)
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 keypublic CloudStackTemplateOptions nodeNames(Iterable<String> nodeNames)
nodeNames
in class TemplateOptions
public CloudStackTemplateOptions networks(Iterable<String> networks)
networks
in class TemplateOptions
public CloudStackTemplateOptions networks(String... networks)
networks
in class TemplateOptions
TemplateOptions.networks(Iterable)
Copyright © 2009-2016 The Apache Software Foundation. All Rights Reserved.