|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jclouds.compute.options.RunScriptOptions org.jclouds.compute.options.TemplateOptions org.jclouds.softlayer.compute.options.SoftLayerTemplateOptions
public class SoftLayerTemplateOptions
Contains options supported by the
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());
Nested Class Summary | |
---|---|
static class |
SoftLayerTemplateOptions.Builder
|
Nested classes/interfaces inherited from class org.jclouds.compute.options.TemplateOptions |
---|
TemplateOptions.ImmutableTemplateOptions |
Nested classes/interfaces inherited from class org.jclouds.compute.options.RunScriptOptions |
---|
RunScriptOptions.ImmutableRunScriptOptions |
Field Summary | |
---|---|
protected String |
domainName
|
static SoftLayerTemplateOptions |
NONE
|
Fields inherited from class org.jclouds.compute.options.TemplateOptions |
---|
blockUntilRunning, inboundPorts, privateKey, publicKey, script, tags, userMetadata |
Fields inherited from class org.jclouds.compute.options.RunScriptOptions |
---|
authenticateSudo, blockOnComplete, loginPassword, loginPrivateKey, loginUser, port, runAsRoot, seconds, taskName, wrapInInitScript |
Constructor Summary | |
---|---|
SoftLayerTemplateOptions()
|
Method Summary | |
---|---|
SoftLayerTemplateOptions |
authorizePublicKey(String publicKey)
authorize an rsa ssh key. |
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 |
domainName(String domainName)
will replace the default domain used when ordering virtual guests. |
String |
getDomainName()
|
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 |
runScript(Payload script)
Deprecated. |
SoftLayerTemplateOptions |
userMetadata(Map<String,String> userMetadata)
|
SoftLayerTemplateOptions |
userMetadata(String key,
String value)
|
Methods inherited from class org.jclouds.compute.options.TemplateOptions |
---|
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 |
Methods inherited from class org.jclouds.compute.options.RunScriptOptions |
---|
getLoginPassword, getLoginPrivateKey, getLoginUser, getOverridingCredentials, getPort, getSeconds, getTaskName, hasLoginPassword, hasLoginPasswordOption, hasLoginPrivateKey, hasLoginPrivateKeyOption, shouldAuthenticateSudo, shouldBlockOnComplete, shouldRunAsRoot, shouldWrapInInitScript |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected String domainName
public static final SoftLayerTemplateOptions NONE
Constructor Detail |
---|
public SoftLayerTemplateOptions()
Method Detail |
---|
public SoftLayerTemplateOptions clone()
clone
in class TemplateOptions
public void copyTo(TemplateOptions to)
copyTo
in class TemplateOptions
public TemplateOptions domainName(String domainName)
VirtualGuestClient.orderVirtualGuest(org.jclouds.softlayer.domain.ProductOrder)
,
InternetDomainName.hasPublicSuffix()
public String getDomainName()
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)
@Deprecated public SoftLayerTemplateOptions runScript(Payload script)
TemplateOptions
runScript
in class TemplateOptions
TemplateOptions.runScript(Payload)
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 key
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |