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 api = // get connection templateBuilder.options(rootPassword("caQu5rou")); Set<? extends NodeMetadata> set = api.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
The IP address to assign to the new node instance.
|
protected String |
rootPassword
The password to set for the root user on the created server instance.
|
protected int |
transferGB
The monthly data transfer limit (in GB) for the server.
|
blockUntilRunning, inboundPorts, NONE, 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() |
String |
getRootPassword() |
int |
getTransferGB() |
boolean |
hasRootPassword() |
GleSYSTemplateOptions |
inboundPorts(int... ports)
Opens the set of ports to public access.
|
GleSYSTemplateOptions |
installPrivateKey(String privateKey)
replaces the rsa ssh key used at login.
|
GleSYSTemplateOptions |
ip(String ip)
Sets the IP address to assign to the new server instance.
|
GleSYSTemplateOptions |
rootPassword(String rootPassword)
Sets the password for the root user on the created server instance.
|
com.google.common.base.Objects.ToStringHelper |
string() |
GleSYSTemplateOptions |
transferGB(int transferGB)
Sets the monthly data transfer limit (in GB) for the server.
|
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, overrideLoginCredentials, overrideLoginPassword, overrideLoginPrivateKey, overrideLoginUser, runAsRoot, runScript, runScript, shouldBlockUntilRunning, tags, wrapInInitScript
getLoginPassword, getLoginPrivateKey, getLoginUser, getPort, getSeconds, getTaskName, hasLoginPassword, hasLoginPasswordOption, hasLoginPrivateKey, hasLoginPrivateKeyOption, shouldAuthenticateSudo, shouldBlockOnComplete, shouldRunAsRoot, shouldWrapInInitScript, toString
protected String ip
any
" the node will be automatically assigned a free IP
address.protected String rootPassword
protected int transferGB
public GleSYSTemplateOptions clone()
clone
in class TemplateOptions
public void copyTo(TemplateOptions to)
copyTo
in class TemplateOptions
public GleSYSTemplateOptions ip(String ip)
any
" the server will be automatically assigned a free IP
address.ServerApi#createWithHostnameAndRootPassword
,
InetAddresses.isInetAddress(java.lang.String)
public String getIp()
public GleSYSTemplateOptions rootPassword(String rootPassword)
ServerApi#createWithHostnameAndRootPassword
public String getRootPassword()
null
if none is
set (and a random password will be assigned).public boolean hasRootPassword()
true
if a root password has been specified.public GleSYSTemplateOptions transferGB(int transferGB)
ServerSpec.getTransferGB()
public int getTransferGB()
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)
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 keypublic com.google.common.base.Objects.ToStringHelper string()
string
in class TemplateOptions
Copyright © 2009-2013 jclouds. All Rights Reserved.