|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jclouds.compute.options.RunScriptOptions org.jclouds.compute.options.TemplateOptions org.jclouds.gogrid.compute.options.GoGridTemplateOptions
public class GoGridTemplateOptions
Contains options supported by the
ComputeService.createNodesInGroup(String, int, TemplateOptions)
and
ComputeService.runNodesWithTag(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.runNodesWithTag(tag, 2, templateBuilder.build());TODO add GoGrid specific options
Nested Class Summary | |
---|---|
static class |
GoGridTemplateOptions.Builder
|
Nested classes/interfaces inherited from class org.jclouds.compute.options.TemplateOptions |
---|
TemplateOptions.ImmutableTemplateOptions |
Nested classes/interfaces inherited from class org.jclouds.compute.options.RunScriptOptions |
---|
RunScriptOptions.ImmutableRunScriptOptions |
Field Summary | |
---|---|
static GoGridTemplateOptions |
NONE
|
Fields inherited from class org.jclouds.compute.options.TemplateOptions |
---|
blockUntilRunning, inboundPorts, privateKey, publicKey, script, tags, userMetadata |
Fields inherited from class org.jclouds.compute.options.RunScriptOptions |
---|
blockOnComplete, overridingCredentials, port, runAsRoot, seconds, taskName, wrapInInitScript |
Constructor Summary | |
---|---|
GoGridTemplateOptions()
|
Method Summary | |
---|---|
GoGridTemplateOptions |
authorizePublicKey(Payload publicKey)
Deprecated. |
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(Payload privateKey)
Deprecated. |
GoGridTemplateOptions |
installPrivateKey(String privateKey)
replaces the rsa ssh key used at login. |
GoGridTemplateOptions |
runScript(byte[] script)
Deprecated. |
GoGridTemplateOptions |
runScript(Payload script)
|
GoGridTemplateOptions |
userMetadata(Map<String,String> userMetadata)
|
GoGridTemplateOptions |
userMetadata(String key,
String value)
|
Methods inherited from class org.jclouds.compute.options.TemplateOptions |
---|
as, blockOnComplete, blockUntilRunning, dontAuthorizePublicKey, equals, getInboundPorts, getPrivateKey, getPublicKey, getRunScript, getTags, getUserMetadata, hashCode, nameTask, overrideCredentialsWith, overrideLoginCredentialWith, overrideLoginUserWith, runAsRoot, runScript, shouldBlockUntilRunning, tags, toString, wrapInInitScript |
Methods inherited from class org.jclouds.compute.options.RunScriptOptions |
---|
getOverridingCredentials, getPort, getSeconds, getTaskName, shouldBlockOnComplete, shouldRunAsRoot, shouldWrapInInitScript |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final GoGridTemplateOptions NONE
Constructor Detail |
---|
public GoGridTemplateOptions()
Method Detail |
---|
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)
@Deprecated public GoGridTemplateOptions authorizePublicKey(Payload publicKey)
TemplateOptions
String
authorizePublicKey
in class TemplateOptions
TemplateOptions.authorizePublicKey(Payload)
public GoGridTemplateOptions installPrivateKey(String privateKey)
TemplateOptions
installPrivateKey
in class TemplateOptions
TemplateOptions.installPrivateKey(String)
@Deprecated public GoGridTemplateOptions installPrivateKey(Payload privateKey)
TemplateOptions
String
installPrivateKey
in class TemplateOptions
TemplateOptions.installPrivateKey(Payload)
public GoGridTemplateOptions runScript(Payload script)
runScript
in class TemplateOptions
TemplateOptions.runScript(Payload)
@Deprecated public GoGridTemplateOptions runScript(byte[] script)
TemplateOptions
Statement
object
runScript
in class TemplateOptions
TemplateOptions.runScript(byte[])
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 key
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |