public class GleSYSTemplateOptions extends org.jclouds.compute.options.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 |
| 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.
|
| Constructor and Description |
|---|
GleSYSTemplateOptions() |
| Modifier and Type | Method and Description |
|---|---|
GleSYSTemplateOptions |
authorizePublicKey(String publicKey) |
GleSYSTemplateOptions |
blockOnPort(int port,
int seconds) |
GleSYSTemplateOptions |
clone() |
void |
copyTo(org.jclouds.compute.options.TemplateOptions to) |
String |
getIp() |
String |
getRootPassword() |
int |
getTransferGB() |
boolean |
hasRootPassword() |
GleSYSTemplateOptions |
inboundPorts(int... ports) |
GleSYSTemplateOptions |
installPrivateKey(String privateKey) |
GleSYSTemplateOptions |
ip(String ip)
Sets the IP address to assign to the new server instance.
|
GleSYSTemplateOptions |
networks(Iterable<String> networks) |
GleSYSTemplateOptions |
nodeNames(Iterable<String> nodeNames) |
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, getGroups, getInboundPorts, getNetworks, getNodeNames, getPrivateKey, getPublicKey, getRunScript, getTags, getUserMetadata, hashCode, nameTask, networks, overrideAuthenticateSudo, overrideLoginCredentials, overrideLoginPassword, overrideLoginPrivateKey, overrideLoginUser, runAsRoot, runScript, runScript, securityGroups, securityGroups, shouldBlockUntilRunning, tags, wrapInInitScriptgetLoginPassword, getLoginPrivateKey, getLoginUser, getPort, getSeconds, getTaskName, hasLoginPassword, hasLoginPasswordOption, hasLoginPrivateKey, hasLoginPrivateKeyOption, shouldAuthenticateSudo, shouldBlockOnComplete, shouldRunAsRoot, shouldWrapInInitScript, toStringprotected 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 org.jclouds.compute.options.TemplateOptionspublic void copyTo(org.jclouds.compute.options.TemplateOptions to)
copyTo in class org.jclouds.compute.options.TemplateOptionspublic 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#createWithHostnameAndRootPasswordpublic 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)
blockOnPort in class org.jclouds.compute.options.TemplateOptionsTemplateOptions.blockOnPort(int, int)public GleSYSTemplateOptions inboundPorts(int... ports)
inboundPorts in class org.jclouds.compute.options.TemplateOptionsTemplateOptions.inboundPorts(int...)public GleSYSTemplateOptions authorizePublicKey(String publicKey)
authorizePublicKey in class org.jclouds.compute.options.TemplateOptionsTemplateOptions.authorizePublicKey(String)public GleSYSTemplateOptions installPrivateKey(String privateKey)
installPrivateKey in class org.jclouds.compute.options.TemplateOptionsTemplateOptions.installPrivateKey(String)public GleSYSTemplateOptions userMetadata(Map<String,String> userMetadata)
userMetadata in class org.jclouds.compute.options.TemplateOptionspublic GleSYSTemplateOptions userMetadata(String key, String value)
userMetadata in class org.jclouds.compute.options.TemplateOptionspublic GleSYSTemplateOptions nodeNames(Iterable<String> nodeNames)
nodeNames in class org.jclouds.compute.options.TemplateOptionspublic GleSYSTemplateOptions networks(Iterable<String> networks)
networks in class org.jclouds.compute.options.TemplateOptionspublic com.google.common.base.Objects.ToStringHelper string()
string in class org.jclouds.compute.options.TemplateOptionsCopyright © 2009-2014 The Apache Software Foundation. All Rights Reserved.