|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jclouds.compute.options.RunScriptOptions
org.jclouds.compute.options.TemplateOptions
org.jclouds.glesys.compute.options.GleSYSTemplateOptions
public class GleSYSTemplateOptions
Contains options supported by the
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());
| Nested Class Summary | |
|---|---|
static class |
GleSYSTemplateOptions.Builder
|
| Nested classes/interfaces inherited from class org.jclouds.compute.options.TemplateOptions |
|---|
org.jclouds.compute.options.TemplateOptions.ImmutableTemplateOptions |
| Nested classes/interfaces inherited from class org.jclouds.compute.options.RunScriptOptions |
|---|
org.jclouds.compute.options.RunScriptOptions.ImmutableRunScriptOptions |
| Field Summary | |
|---|---|
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. |
| Fields inherited from class org.jclouds.compute.options.TemplateOptions |
|---|
blockUntilRunning, inboundPorts, nodeNames, NONE, privateKey, publicKey, script, securityGroups, tags, userMetadata |
| Fields inherited from class org.jclouds.compute.options.RunScriptOptions |
|---|
authenticateSudo, blockOnComplete, loginPassword, loginPrivateKey, loginUser, port, runAsRoot, seconds, taskName, wrapInInitScript |
| Constructor Summary | |
|---|---|
GleSYSTemplateOptions()
|
|
| Method Summary | |
|---|---|
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 |
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)
|
| Methods inherited from class org.jclouds.compute.options.TemplateOptions |
|---|
as, blockOnComplete, blockUntilRunning, dontAuthorizePublicKey, equals, getGroups, getInboundPorts, getNodeNames, getPrivateKey, getPublicKey, getRunScript, getTags, getUserMetadata, hashCode, nameTask, overrideAuthenticateSudo, overrideLoginCredentials, overrideLoginPassword, overrideLoginPrivateKey, overrideLoginUser, runAsRoot, runScript, runScript, securityGroups, securityGroups, shouldBlockUntilRunning, tags, wrapInInitScript |
| Methods inherited from class org.jclouds.compute.options.RunScriptOptions |
|---|
getLoginPassword, getLoginPrivateKey, getLoginUser, getPort, getSeconds, getTaskName, hasLoginPassword, hasLoginPasswordOption, hasLoginPrivateKey, hasLoginPrivateKeyOption, shouldAuthenticateSudo, shouldBlockOnComplete, shouldRunAsRoot, shouldWrapInInitScript, toString |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected String ip
any" the node will be automatically assigned a free IP
address.
protected String rootPassword
protected int transferGB
| Constructor Detail |
|---|
public GleSYSTemplateOptions()
| Method Detail |
|---|
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.TemplateOptions
public 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 com.google.common.base.Objects.ToStringHelper string()
string in class org.jclouds.compute.options.TemplateOptions
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||