Modifier and Type | Class and Description |
---|---|
static class |
CreateServerOptions.Builder |
Constructor and Description |
---|
CreateServerOptions() |
Modifier and Type | Method and Description |
---|---|
<R extends HttpRequest> |
bindToRequest(R request,
Map<String,Object> postParams)
creates and binds the POST payload to the request using parameters specified.
|
<R extends HttpRequest> |
bindToRequest(R request,
Object input) |
CreateServerOptions |
withFile(String path,
byte[] contents)
You may further customize a cloud server by injecting data into the file system of the cloud
server itself.
|
CreateServerOptions |
withMetadata(Map<String,String> metadata)
Custom cloud server metadata can also be supplied at launch time.
|
CreateServerOptions |
withSharedIp(String publicIp)
Public IP addresses can be shared across multiple servers for use in various high availability
scenarios.
|
CreateServerOptions |
withSharedIpGroup(int id)
A shared IP group is a collection of servers that can share IPs with other members of the
group.
|
public <R extends HttpRequest> R bindToRequest(R request, Map<String,Object> postParams)
MapBinder
bindToRequest
in interface MapBinder
PayloadParam
public CreateServerOptions withFile(String path, byte[] contents)
public CreateServerOptions withSharedIpGroup(int id)
Servers in the same shared IP group can share public IPs for various high availability and load balancing configurations. To launch an HA server, include the optional sharedIpGroupId element and the server will be launched into that shared IP group.
Note: sharedIpGroupId is an optional parameter and for optimal performance, should ONLY be specified when intending to share IPs between servers.
withSharedIp(String)
public CreateServerOptions withMetadata(Map<String,String> metadata)
public CreateServerOptions withSharedIp(String publicIp)
If you intend to use a shared IP on the server being created and have no need for a separate public IP address, you may launch the server into a shared IP group and specify an IP address from that shared IP group to be used as its public IP. You can accomplish this by specifying the public shared IP address in your request. This is optional and is only valid if sharedIpGroupId is also supplied.
public <R extends HttpRequest> R bindToRequest(R request, Object input)
bindToRequest
in interface Binder
Copyright © 2009-2013 jclouds. All Rights Reserved.