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.ImmutableTemplateOptionsRunScriptOptions.ImmutableRunScriptOptions| Modifier and Type | Field and Description |
|---|---|
protected String |
ip |
static GleSYSTemplateOptions |
NONE |
blockUntilRunning, inboundPorts, privateKey, publicKey, script, tags, userMetadataauthenticateSudo, 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, wrapInInitScriptgetLoginPassword, getLoginPrivateKey, getLoginUser, getOverridingCredentials, getPort, getSeconds, getTaskName, hasLoginPassword, hasLoginPasswordOption, hasLoginPrivateKey, hasLoginPrivateKeyOption, shouldAuthenticateSudo, shouldBlockOnComplete, shouldRunAsRoot, shouldWrapInInitScriptprotected String ip
public static final GleSYSTemplateOptions NONE
public GleSYSTemplateOptions clone()
clone in class TemplateOptionspublic void copyTo(TemplateOptions to)
copyTo in class TemplateOptionspublic 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)
RunScriptOptionsblockOnPort in class TemplateOptionsTemplateOptions.blockOnPort(int, int)public GleSYSTemplateOptions inboundPorts(int... ports)
TemplateOptionsinboundPorts in class TemplateOptionsTemplateOptions.inboundPorts(int...)public GleSYSTemplateOptions authorizePublicKey(String publicKey)
TemplateOptionsauthorizePublicKey in class TemplateOptionsTemplateOptions.authorizePublicKey(String)public GleSYSTemplateOptions installPrivateKey(String privateKey)
TemplateOptionsinstallPrivateKey in class TemplateOptionsTemplateOptions.installPrivateKey(String)@Deprecated public GleSYSTemplateOptions runScript(Payload script)
TemplateOptionsrunScript in class TemplateOptionsTemplateOptions.runScript(Payload)public GleSYSTemplateOptions userMetadata(Map<String,String> userMetadata)
userMetadata in class TemplateOptionsuserMetadata - user-defined metadata to assign to this serverpublic GleSYSTemplateOptions userMetadata(String key, String value)
userMetadata in class TemplateOptionskey - key to place into the metadata mapvalue - value to associate with that keyCopyright © 2009-2012 jclouds. All Rights Reserved.