public class GoGridTemplateOptions extends TemplateOptions implements Cloneable
ComputeService#createNodesInGroup(String, int, TemplateOptions)
and
ComputeService#createNodesInGroup(String, int, TemplateOptions)
operations on the gogrid provider.
GoGridTemplateOptions
object is to statically import
GoGridTemplateOptions.*
and invoke a static creation method followed
by an instance mutator (if needed):
import static org.jclouds.compute.options.GoGridTemplateOptions.Builder.*; ComputeService client = // get connection templateBuilder.options(inboundPorts(22, 80, 8080, 443)); Set<? extends NodeMetadata> set = client.createNodesInGroup(tag, 2, templateBuilder.build());TODO add GoGrid specific options
Modifier and Type | Class and Description |
---|---|
static class |
GoGridTemplateOptions.Builder |
TemplateOptions.ImmutableTemplateOptions
RunScriptOptions.ImmutableRunScriptOptions
Modifier and Type | Field and Description |
---|---|
static GoGridTemplateOptions |
NONE |
blockUntilRunning, inboundPorts, networks, nodeNames, privateKey, publicKey, script, securityGroups, tags, userMetadata
authenticateSudo, blockOnComplete, loginPassword, loginPrivateKey, loginUser, port, runAsRoot, seconds, taskName, wrapInInitScript
Constructor and Description |
---|
GoGridTemplateOptions() |
Modifier and Type | Method and Description |
---|---|
GoGridTemplateOptions |
authorizePublicKey(String publicKey)
authorize an rsa ssh key.
|
GoGridTemplateOptions |
blockOnPort(int port,
int seconds)
When the node is started, wait until the following port is active
|
GoGridTemplateOptions |
clone() |
void |
copyTo(TemplateOptions to) |
GoGridTemplateOptions |
inboundPorts(int... ports)
Opens the set of ports to public access.
|
GoGridTemplateOptions |
installPrivateKey(String privateKey)
replaces the rsa ssh key used at login.
|
GoGridTemplateOptions |
networks(Iterable<String> networks)
Assigns the created nodes to these networks
|
GoGridTemplateOptions |
nodeNames(Iterable<String> nodeNames)
specifies names to be used for the created nodes.
|
GoGridTemplateOptions |
userMetadata(Map<String,String> userMetadata) |
GoGridTemplateOptions |
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, string, tags, wrapInInitScript
copyTo, getLoginPassword, getLoginPrivateKey, getLoginUser, getPort, getSeconds, getTaskName, hasLoginPassword, hasLoginPasswordOption, hasLoginPrivateKey, hasLoginPrivateKeyOption, overrideLoginPassword, overrideLoginPrivateKey, shouldAuthenticateSudo, shouldBlockOnComplete, shouldRunAsRoot, shouldWrapInInitScript, toString
public static final GoGridTemplateOptions NONE
public GoGridTemplateOptions clone()
clone
in class TemplateOptions
public void copyTo(TemplateOptions to)
copyTo
in class TemplateOptions
public GoGridTemplateOptions blockOnPort(int port, int seconds)
RunScriptOptions
blockOnPort
in class TemplateOptions
TemplateOptions.blockOnPort(int, int)
public GoGridTemplateOptions inboundPorts(int... ports)
TemplateOptions
inboundPorts
in class TemplateOptions
TemplateOptions.inboundPorts(int...)
public GoGridTemplateOptions authorizePublicKey(String publicKey)
TemplateOptions
authorizePublicKey
in class TemplateOptions
TemplateOptions.authorizePublicKey(String)
public GoGridTemplateOptions installPrivateKey(String privateKey)
TemplateOptions
installPrivateKey
in class TemplateOptions
TemplateOptions.installPrivateKey(String)
public GoGridTemplateOptions userMetadata(Map<String,String> userMetadata)
userMetadata
in class TemplateOptions
userMetadata
- user-defined metadata to assign to this serverpublic GoGridTemplateOptions userMetadata(String key, String value)
userMetadata
in class TemplateOptions
key
- key to place into the metadata mapvalue
- value to associate with that keypublic GoGridTemplateOptions nodeNames(Iterable<String> nodeNames)
nodeNames
in class TemplateOptions
public GoGridTemplateOptions networks(Iterable<String> networks)
networks
in class TemplateOptions
Copyright © 2009-2016 The Apache Software Foundation. All Rights Reserved.