public class GleSYSTemplateOptions extends TemplateOptions implements Cloneable
ComputeService.createNodesInGroup(String, int, TemplateOptions)
and
ComputeService.createNodesInGroup(String, int, TemplateOptions)
operations on the
glesys provider.
GleSYSTemplateOptions
object is to
statically import GleSYSTemplateOptions.*
and invoke a static creation method followed by
an instance mutator (if needed):
import static org.jclouds.compute.options.GleSYSTemplateOptions.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 |
GleSYSTemplateOptions.Builder |
TemplateOptions.ImmutableTemplateOptions
RunScriptOptions.ImmutableRunScriptOptions
Modifier and Type | Field and Description |
---|---|
protected String |
ip |
static GleSYSTemplateOptions |
NONE |
blockUntilRunning, inboundPorts, privateKey, publicKey, script, tags, userMetadata
authenticateSudo, blockOnComplete, loginPassword, loginPrivateKey, loginUser, port, runAsRoot, seconds, taskName, wrapInInitScript
Constructor and Description |
---|
GleSYSTemplateOptions() |
Modifier and Type | Method and Description |
---|---|
GleSYSTemplateOptions |
authorizePublicKey(String publicKey)
authorize an rsa ssh key.
|
GleSYSTemplateOptions |
blockOnPort(int port,
int seconds)
When the node is started, wait until the following port is active
|
GleSYSTemplateOptions |
clone() |
void |
copyTo(TemplateOptions to) |
String |
getIp() |
GleSYSTemplateOptions |
inboundPorts(int... ports)
Opens the set of ports to public access.
|
GleSYSTemplateOptions |
installPrivateKey(String privateKey)
replaces the rsa ssh key used at login.
|
TemplateOptions |
ip(String ip) |
GleSYSTemplateOptions |
runScript(Payload script)
Deprecated.
|
GleSYSTemplateOptions |
userMetadata(Map<String,String> userMetadata) |
GleSYSTemplateOptions |
userMetadata(String key,
String value) |
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
getLoginPassword, getLoginPrivateKey, getLoginUser, getOverridingCredentials, getPort, getSeconds, getTaskName, hasLoginPassword, hasLoginPasswordOption, hasLoginPrivateKey, hasLoginPrivateKeyOption, shouldAuthenticateSudo, shouldBlockOnComplete, shouldRunAsRoot, shouldWrapInInitScript
protected String ip
public static final GleSYSTemplateOptions NONE
public GleSYSTemplateOptions clone()
clone
in class TemplateOptions
public void copyTo(TemplateOptions to)
copyTo
in class TemplateOptions
public TemplateOptions ip(String ip)
ServerClient.createServerWithHostnameAndRootPassword(org.jclouds.glesys.domain.ServerSpec, java.lang.String, java.lang.String, org.jclouds.glesys.options.CreateServerOptions...)
,
InetAddresses.isInetAddress(java.lang.String)
public String getIp()
public GleSYSTemplateOptions blockOnPort(int port, int seconds)
RunScriptOptions
blockOnPort
in class TemplateOptions
TemplateOptions.blockOnPort(int, int)
public GleSYSTemplateOptions inboundPorts(int... ports)
TemplateOptions
inboundPorts
in class TemplateOptions
TemplateOptions.inboundPorts(int...)
public GleSYSTemplateOptions authorizePublicKey(String publicKey)
TemplateOptions
authorizePublicKey
in class TemplateOptions
TemplateOptions.authorizePublicKey(String)
public GleSYSTemplateOptions installPrivateKey(String privateKey)
TemplateOptions
installPrivateKey
in class TemplateOptions
TemplateOptions.installPrivateKey(String)
@Deprecated public GleSYSTemplateOptions runScript(Payload script)
TemplateOptions
runScript
in class TemplateOptions
TemplateOptions.runScript(Payload)
public GleSYSTemplateOptions userMetadata(Map<String,String> userMetadata)
userMetadata
in class TemplateOptions
userMetadata
- user-defined metadata to assign to this serverpublic GleSYSTemplateOptions userMetadata(String key, String value)
userMetadata
in class TemplateOptions
key
- key to place into the metadata mapvalue
- value to associate with that keyCopyright © 2009-2012 jclouds. All Rights Reserved.