Class GleSYSTemplateOptions
java.lang.Object
org.jclouds.compute.options.RunScriptOptions
org.jclouds.compute.options.TemplateOptions
org.jclouds.glesys.compute.options.GleSYSTemplateOptions
- All Implemented Interfaces:
Cloneable
Contains options supported by the
and
operations on the glesys provider.
invalid reference
ComputeService#createNodesInGroup(String, int, TemplateOptions)
invalid reference
ComputeService#createNodesInGroup(String, int, TemplateOptions)
Usage
The recommended way to instantiate aGleSYSTemplateOptions 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
Nested ClassesNested classes/interfaces inherited from class org.jclouds.compute.options.TemplateOptions
TemplateOptions.ImmutableTemplateOptionsNested classes/interfaces inherited from class org.jclouds.compute.options.RunScriptOptions
RunScriptOptions.ImmutableRunScriptOptions -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected StringThe IP address to assign to the new node instance.protected StringThe password to set for the root user on the created server instance.protected intThe monthly data transfer limit (in GB) for the server.Fields inherited from class org.jclouds.compute.options.TemplateOptions
blockUntilRunning, inboundPorts, networks, nodeNames, NONE, privateKey, publicKey, script, securityGroups, tags, userMetadataFields inherited from class org.jclouds.compute.options.RunScriptOptions
authenticateSudo, blockOnComplete, loginPassword, loginPrivateKey, loginUser, port, runAsRoot, seconds, taskName, wrapInInitScript -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionauthorizePublicKey(String publicKey) authorize an rsa ssh key.blockOnPort(int port, int seconds) When the node is started, wait until the following port is activeclone()voidgetIp()intbooleaninboundPorts(int... ports) Opens the set of ports to public access.installPrivateKey(String privateKey) replaces the rsa ssh key used at login.Sets the IP address to assign to the new server instance.Assigns the created nodes to these networksspecifies names to be used for the created nodes.rootPassword(String rootPassword) Sets the password for the root user on the created server instance.com.google.common.base.MoreObjects.ToStringHelperstring()transferGB(int transferGB) Sets the monthly data transfer limit (in GB) for the server.userMetadata(String key, String value) userMetadata(Map<String, String> userMetadata) Methods inherited from class org.jclouds.compute.options.TemplateOptions
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, wrapInInitScriptMethods inherited from class org.jclouds.compute.options.RunScriptOptions
copyTo, getLoginPassword, getLoginPrivateKey, getLoginUser, getPort, getSeconds, getTaskName, hasLoginPassword, hasLoginPasswordOption, hasLoginPrivateKey, hasLoginPrivateKeyOption, overrideLoginPassword, overrideLoginPrivateKey, shouldAuthenticateSudo, shouldBlockOnComplete, shouldRunAsRoot, shouldWrapInInitScript, toString
-
Field Details
-
ip
The IP address to assign to the new node instance. If set to "any" the node will be automatically assigned a free IP address. -
rootPassword
The password to set for the root user on the created server instance. If left unspecified, a random password will be assigned. -
transferGB
protected int transferGBThe monthly data transfer limit (in GB) for the server.
-
-
Constructor Details
-
GleSYSTemplateOptions
public GleSYSTemplateOptions()
-
-
Method Details
-
clone
- Overrides:
clonein classTemplateOptions
-
copyTo
- Overrides:
copyToin classTemplateOptions
-
ip
Sets the IP address to assign to the new server instance. If set to "any" the server will be automatically assigned a free IP address.- See Also:
-
getIp
- Returns:
- the IP address to assign to the new server instance.
-
rootPassword
Sets the password for the root user on the created server instance. If left unspecified, a random password will be assigned.- See Also:
-
getRootPassword
- Returns:
- the password set for the root user or
nullif none is set (and a random password will be assigned).
-
hasRootPassword
public boolean hasRootPassword()- Returns:
trueif a root password has been specified.
-
transferGB
Sets the monthly data transfer limit (in GB) for the server.- See Also:
-
getTransferGB
public int getTransferGB()- Returns:
- the monthly data transfer limit (in GB) for the server.
-
blockOnPort
Description copied from class:RunScriptOptionsWhen the node is started, wait until the following port is active- Overrides:
blockOnPortin classTemplateOptions- See Also:
-
inboundPorts
Description copied from class:TemplateOptionsOpens the set of ports to public access.- Overrides:
inboundPortsin classTemplateOptions- See Also:
-
authorizePublicKey
Description copied from class:TemplateOptionsauthorize an rsa ssh key.- Overrides:
authorizePublicKeyin classTemplateOptions- See Also:
-
installPrivateKey
Description copied from class:TemplateOptionsreplaces the rsa ssh key used at login.- Overrides:
installPrivateKeyin classTemplateOptions- See Also:
-
userMetadata
- Overrides:
userMetadatain classTemplateOptions- Parameters:
userMetadata- user-defined metadata to assign to this server
-
userMetadata
- Overrides:
userMetadatain classTemplateOptions- Parameters:
key- key to place into the metadata mapvalue- value to associate with that key
-
nodeNames
specifies names to be used for the created nodes. Note that this does not guarantee uniqueness - if there are already existing nodes with a name specified here, there will still be a new node created with the same name. Also, if more nodes are to be created than there are names, subsequent names will use the default naming strategy for that cloud.- Overrides:
nodeNamesin classTemplateOptions
-
networks
Assigns the created nodes to these networks- Overrides:
networksin classTemplateOptions
-
string
public com.google.common.base.MoreObjects.ToStringHelper string()- Overrides:
stringin classTemplateOptions
-