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
blockUntilRunning, inboundPorts, networks, nodeNames, NONE, privateKey, publicKey, script, securityGroups, tags, userMetadata
authenticateSudo, blockOnComplete, loginPassword, loginPrivateKey, loginUser, port, runAsRoot, seconds, taskName, wrapInInitScript
Constructor and Description |
---|
CloudStackTemplateOptions() |
as, blockOnComplete, getGroups, getInboundPorts, getNetworks, getNodeNames, getPrivateKey, getPublicKey, getRunScript, getTags, getUserMetadata, networks, runScript, securityGroups, securityGroups, shouldBlockUntilRunning, string, tags, wrapInInitScript
copyTo, getLoginPassword, getLoginPrivateKey, getLoginUser, getPort, getSeconds, getTaskName, hasLoginPassword, hasLoginPasswordOption, hasLoginPrivateKey, hasLoginPrivateKeyOption, overrideLoginPassword, overrideLoginPrivateKey, shouldAuthenticateSudo, shouldBlockOnComplete, shouldRunAsRoot, shouldWrapInInitScript
public CloudStackTemplateOptions securityGroupIds(Iterable<String> securityGroupIds)
public CloudStackTemplateOptions ipsToNetworks(Map<String,String> ipsToNetworks)
public CloudStackTemplateOptions ipOnDefaultNetwork(String ipOnDefaultNetwork)
public CloudStackTemplateOptions keyPair(String keyPair)
public CloudStackTemplateOptions setupStaticNat(boolean setupStaticNat)
public CloudStackTemplateOptions account(String account)
public CloudStackTemplateOptions domainId(String domainId)
public CloudStackTemplateOptions generateKeyPair(boolean generateKeyPair)
public CloudStackTemplateOptions generateSecurityGroup(boolean generateSecurityGroup)
public CloudStackTemplateOptions diskOfferingId(String diskOfferingId)
public CloudStackTemplateOptions dataDiskSize(int dataDiskSize)
public CloudStackTemplateOptions userData(byte[] userData)
public CloudStackTemplateOptions userData(String userData)
public CloudStackTemplateOptions userData(URL userDataUrl) throws IOException
IOException
public String getIpOnDefaultNetwork()
public String getKeyPair()
public boolean shouldSetupStaticNat()
public String getAccount()
public String getDomainId()
public boolean shouldGenerateKeyPair()
public boolean shouldGenerateSecurityGroup()
public String getDiskOfferingId()
public int getDataDiskSize()
public byte[] getUserData()
public CloudStackTemplateOptions 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 String toString()
toString
in class RunScriptOptions
public CloudStackTemplateOptions blockOnPort(int port, int seconds)
blockOnPort
in class TemplateOptions
public CloudStackTemplateOptions inboundPorts(int... ports)
inboundPorts
in class TemplateOptions
public CloudStackTemplateOptions authorizePublicKey(String publicKey)
authorizePublicKey
in class TemplateOptions
public CloudStackTemplateOptions installPrivateKey(String privateKey)
installPrivateKey
in class TemplateOptions
public CloudStackTemplateOptions blockUntilRunning(boolean blockUntilRunning)
TemplateOptions.runScript(Statement)
and
RunScriptOptions.blockOnComplete(boolean)
, as all current
implementations utilize ssh in order to execute scripts.blockUntilRunning
in class TemplateOptions
blockUntilRunning
- (default true) whether to block until the nodes in this template
are in Status#RUNNING
statepublic CloudStackTemplateOptions dontAuthorizePublicKey()
dontAuthorizePublicKey
in class TemplateOptions
public CloudStackTemplateOptions nameTask(String name)
nameTask
in class TemplateOptions
jclouds-script-timestamp
where timestamp is millis since
epochpublic CloudStackTemplateOptions runAsRoot(boolean runAsRoot)
runAsRoot
in class TemplateOptions
public CloudStackTemplateOptions runScript(Statement script)
runScript
in class TemplateOptions
public CloudStackTemplateOptions overrideLoginCredentials(LoginCredentials overridingCredentials)
overrideLoginCredentials
in class TemplateOptions
public CloudStackTemplateOptions overrideLoginPassword(String password)
overrideLoginPassword
in class TemplateOptions
public CloudStackTemplateOptions overrideLoginPrivateKey(String privateKey)
overrideLoginPrivateKey
in class TemplateOptions
public CloudStackTemplateOptions overrideLoginUser(String loginUser)
overrideLoginUser
in class TemplateOptions
public CloudStackTemplateOptions overrideAuthenticateSudo(boolean authenticateSudo)
overrideAuthenticateSudo
in class TemplateOptions
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
Copyright © 2009-2016 The Apache Software Foundation. All Rights Reserved.