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 com.google.common.base.Optional<List<Integer>> |
blockDevices |
protected com.google.common.base.Optional<String> |
diskType |
protected String |
domainName |
static SoftLayerTemplateOptions |
NONE |
protected com.google.common.base.Optional<Integer> |
portSpeed |
blockUntilRunning, inboundPorts, networks, nodeNames, privateKey, publicKey, script, securityGroups, tags, userMetadata
authenticateSudo, blockOnComplete, loginPassword, loginPrivateKey, loginUser, port, runAsRoot, seconds, taskName, wrapInInitScript
Constructor and Description |
---|
SoftLayerTemplateOptions() |
Modifier and Type | Method and Description |
---|---|
SoftLayerTemplateOptions |
authorizePublicKey(String publicKey)
authorize an rsa ssh key.
|
TemplateOptions |
blockDevices(Integer... capacities) |
TemplateOptions |
blockDevices(Iterable<Integer> capacities) |
SoftLayerTemplateOptions |
blockOnPort(int port,
int seconds)
When the node is started, wait until the following port is active
|
SoftLayerTemplateOptions |
clone() |
void |
copyTo(TemplateOptions to) |
TemplateOptions |
diskType(String diskType) |
TemplateOptions |
domainName(String domainName)
will replace the default domain used when ordering virtual guests.
|
com.google.common.base.Optional<List<Integer>> |
getBlockDevices() |
com.google.common.base.Optional<String> |
getDiskType() |
String |
getDomainName() |
com.google.common.base.Optional<Integer> |
getPortSpeed() |
SoftLayerTemplateOptions |
inboundPorts(int... ports)
Opens the set of ports to public access.
|
SoftLayerTemplateOptions |
installPrivateKey(String privateKey)
replaces the rsa ssh key used at login.
|
SoftLayerTemplateOptions |
networks(Iterable<String> networks)
Assigns the created nodes to these networks
|
SoftLayerTemplateOptions |
nodeNames(Iterable<String> nodeNames)
specifies names to be used for the created nodes.
|
TemplateOptions |
portSpeed(Integer portSpeed) |
SoftLayerTemplateOptions |
userMetadata(Map<String,String> userMetadata) |
SoftLayerTemplateOptions |
userMetadata(String key,
String value) |
as, blockOnComplete, blockUntilRunning, dontAuthorizePublicKey, equals, getGroups, getInboundPorts, getNetworks, getNodeNames, getPrivateKey, getPublicKey, getRunScript, getTags, getUserMetadata, hashCode, nameTask, networks, overrideAuthenticateSudo, overrideLoginCredentials, overrideLoginPassword, overrideLoginPrivateKey, overrideLoginUser, runAsRoot, runScript, runScript, securityGroups, securityGroups, shouldBlockUntilRunning, string, tags, wrapInInitScript
getLoginPassword, getLoginPrivateKey, getLoginUser, getPort, getSeconds, getTaskName, hasLoginPassword, hasLoginPasswordOption, hasLoginPrivateKey, hasLoginPrivateKeyOption, shouldAuthenticateSudo, shouldBlockOnComplete, shouldRunAsRoot, shouldWrapInInitScript, toString
protected String domainName
protected com.google.common.base.Optional<String> diskType
protected com.google.common.base.Optional<Integer> portSpeed
public static final SoftLayerTemplateOptions NONE
public SoftLayerTemplateOptions clone()
clone
in class TemplateOptions
public void copyTo(TemplateOptions to)
copyTo
in class TemplateOptions
public TemplateOptions domainName(String domainName)
VirtualGuestApi.createVirtualGuest(org.jclouds.softlayer.domain.VirtualGuest)
,
InternetDomainName.hasPublicSuffix()
public TemplateOptions blockDevices(Iterable<Integer> capacities)
public TemplateOptions blockDevices(Integer... capacities)
public TemplateOptions diskType(String diskType)
public TemplateOptions portSpeed(Integer portSpeed)
public String getDomainName()
public com.google.common.base.Optional<String> getDiskType()
public com.google.common.base.Optional<Integer> getPortSpeed()
public SoftLayerTemplateOptions blockOnPort(int port, int seconds)
RunScriptOptions
blockOnPort
in class TemplateOptions
TemplateOptions.blockOnPort(int, int)
public SoftLayerTemplateOptions inboundPorts(int... ports)
TemplateOptions
inboundPorts
in class TemplateOptions
TemplateOptions.inboundPorts(int...)
public SoftLayerTemplateOptions authorizePublicKey(String publicKey)
TemplateOptions
authorizePublicKey
in class TemplateOptions
TemplateOptions.authorizePublicKey(String)
public SoftLayerTemplateOptions installPrivateKey(String privateKey)
TemplateOptions
installPrivateKey
in class TemplateOptions
TemplateOptions.installPrivateKey(String)
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-2014 The Apache Software Foundation. All Rights Reserved.