public class SoftLayerTemplateOptions extends TemplateOptions implements Cloneable
ComputeService.createNodesInGroup(String, int, TemplateOptions)
and
ComputeService.createNodesInGroup(String, int, TemplateOptions)
operations on the gogrid provider.
SoftLayerTemplateOptions
object is to statically import
SoftLayerTemplateOptions.*
and invoke a static creation method
followed by an instance mutator (if needed):
import static org.jclouds.compute.options.SoftLayerTemplateOptions.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 |
SoftLayerTemplateOptions.Builder |
TemplateOptions.ImmutableTemplateOptions
RunScriptOptions.ImmutableRunScriptOptions
Modifier and Type | Field and Description |
---|---|
protected List<Integer> |
blockDevices |
protected Boolean |
dedicatedAccountHostOnlyFlag |
protected String |
diskType |
protected String |
domainName |
protected Boolean |
hourlyBillingFlag |
protected Integer |
portSpeed |
protected String |
postInstallScriptUri |
protected Integer |
primaryBackendNetworkComponentNetworkVlanId |
protected Integer |
primaryNetworkComponentNetworkVlanId |
protected Boolean |
privateNetworkOnlyFlag |
protected List<Integer> |
sshKeys |
protected String |
userData |
blockUntilRunning, inboundPorts, networks, nodeNames, NONE, privateKey, publicKey, script, securityGroups, tags, userMetadata
authenticateSudo, blockOnComplete, loginPassword, loginPrivateKey, loginUser, port, runAsRoot, seconds, taskName, wrapInInitScript
Constructor and Description |
---|
SoftLayerTemplateOptions() |
as, blockOnComplete, equals, getGroups, getInboundPorts, getNetworks, getNodeNames, getPrivateKey, getPublicKey, getRunScript, getTags, getUserMetadata, hashCode, 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, toString
protected String domainName
protected String diskType
protected Integer portSpeed
protected String userData
protected Integer primaryNetworkComponentNetworkVlanId
protected Integer primaryBackendNetworkComponentNetworkVlanId
protected Boolean hourlyBillingFlag
protected Boolean dedicatedAccountHostOnlyFlag
protected Boolean privateNetworkOnlyFlag
protected String postInstallScriptUri
public SoftLayerTemplateOptions clone()
clone
in class TemplateOptions
public void copyTo(TemplateOptions to)
copyTo
in class TemplateOptions
public SoftLayerTemplateOptions domainName(String domainName)
VirtualGuestApi.createVirtualGuest(org.jclouds.softlayer.domain.VirtualGuest)
,
InternetDomainName.hasPublicSuffix()
public SoftLayerTemplateOptions blockDevices(Iterable<Integer> capacities)
public SoftLayerTemplateOptions blockDevices(Integer... capacities)
public SoftLayerTemplateOptions diskType(@Nullable String diskType)
public SoftLayerTemplateOptions portSpeed(@Nullable Integer portSpeed)
public SoftLayerTemplateOptions userData(@Nullable String userData)
public SoftLayerTemplateOptions primaryNetworkComponentNetworkVlanId(@Nullable Integer primaryNetworkComponentNetworkVlanId)
public SoftLayerTemplateOptions primaryBackendNetworkComponentNetworkVlanId(@Nullable Integer primaryBackendNetworkComponentNetworkVlanId)
public SoftLayerTemplateOptions hourlyBillingFlag(@Nullable Boolean hourlyBillingFlag)
public SoftLayerTemplateOptions dedicatedAccountHostOnlyFlag(@Nullable Boolean dedicatedAccountHostOnlyFlag)
public SoftLayerTemplateOptions privateNetworkOnlyFlag(@Nullable Boolean privateNetworkOnlyFlag)
public SoftLayerTemplateOptions postInstallScriptUri(@Nullable String postInstallScriptUri)
public SoftLayerTemplateOptions sshKeys(Iterable<Integer> sshKeys)
public SoftLayerTemplateOptions sshKeys(Integer... sshKeys)
public String getDomainName()
public String getDiskType()
public Integer getPortSpeed()
public String getUserData()
public Integer getPrimaryNetworkComponentNetworkVlanId()
public Integer getPrimaryBackendNetworkComponentNetworkVlanId()
public Boolean isHourlyBillingFlag()
public Boolean isDedicatedAccountHostOnlyFlag()
public Boolean isPrivateNetworkOnlyFlag()
public String getPostInstallScriptUri()
public SoftLayerTemplateOptions blockOnPort(int port, int seconds)
blockOnPort
in class TemplateOptions
public SoftLayerTemplateOptions inboundPorts(int... ports)
inboundPorts
in class TemplateOptions
public SoftLayerTemplateOptions authorizePublicKey(String publicKey)
authorizePublicKey
in class TemplateOptions
public SoftLayerTemplateOptions installPrivateKey(String privateKey)
installPrivateKey
in class TemplateOptions
public SoftLayerTemplateOptions 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 SoftLayerTemplateOptions dontAuthorizePublicKey()
dontAuthorizePublicKey
in class TemplateOptions
public SoftLayerTemplateOptions nameTask(String name)
nameTask
in class TemplateOptions
jclouds-script-timestamp
where timestamp is millis since
epochpublic SoftLayerTemplateOptions runAsRoot(boolean runAsRoot)
runAsRoot
in class TemplateOptions
public SoftLayerTemplateOptions runScript(Statement script)
runScript
in class TemplateOptions
public SoftLayerTemplateOptions overrideLoginCredentials(LoginCredentials overridingCredentials)
overrideLoginCredentials
in class TemplateOptions
public SoftLayerTemplateOptions overrideLoginPassword(String password)
overrideLoginPassword
in class TemplateOptions
public SoftLayerTemplateOptions overrideLoginPrivateKey(String privateKey)
overrideLoginPrivateKey
in class TemplateOptions
public SoftLayerTemplateOptions overrideLoginUser(String loginUser)
overrideLoginUser
in class TemplateOptions
public SoftLayerTemplateOptions overrideAuthenticateSudo(boolean authenticateSudo)
overrideAuthenticateSudo
in class TemplateOptions
public SoftLayerTemplateOptions userMetadata(Map<String,String> userMetadata)
userMetadata
in class TemplateOptions
userMetadata
- user-defined metadata to assign to this serverpublic SoftLayerTemplateOptions userMetadata(String key, String value)
userMetadata
in class TemplateOptions
key
- key to place into the metadata mapvalue
- value to associate with that keypublic SoftLayerTemplateOptions nodeNames(Iterable<String> nodeNames)
nodeNames
in class TemplateOptions
public SoftLayerTemplateOptions networks(Iterable<String> networks)
networks
in class TemplateOptions
Copyright © 2009-2016 The Apache Software Foundation. All Rights Reserved.