Modifier and Type | Class and Description |
---|---|
static class |
CreateServerOptions.Builder |
Constructor and Description |
---|
CreateServerOptions() |
Modifier and Type | Method and Description |
---|---|
CreateServerOptions |
adminPass(String adminPass) |
CreateServerOptions |
availabilityZone(String availabilityZone) |
<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 |
blockDeviceMappings(Set<BlockDeviceMapping> blockDeviceMappings) |
CreateServerOptions |
configDrive(boolean configDrive)
Set to true to use a config drive for metadata.
|
CreateServerOptions |
diskConfig(String diskConfig) |
boolean |
equals(Object object) |
String |
getAvailabilityZone() |
Set<BlockDeviceMapping> |
getBlockDeviceMappings()
Block devices that should be attached to the instance at boot time.
|
boolean |
getConfigDrive()
Determines if a configuration drive will be attached to the server or not.
|
String |
getDiskConfig()
When you create a server from an image with the diskConfig value set to
Server#DISK_CONFIG_AUTO , the server is built with a single partition that is expanded to
the disk size of the flavor selected. |
String |
getKeyPairName()
A keypair name can be defined when creating a server.
|
Set<String> |
getNetworks()
Get custom networks specified for the server.
|
Set<Network> |
getNovaNetworks()
Get custom networks specified for the server.
|
Set<String> |
getSecurityGroupNames()
Security groups the user specified to run servers with.
|
int |
hashCode() |
CreateServerOptions |
keyPairName(String keyName)
A keypair name can be defined when creating a server.
|
CreateServerOptions |
metadata(Map<String,String> metadata)
Custom cloud server metadata can also be supplied at launch time.
|
CreateServerOptions |
networks(Iterable<String> networks) |
CreateServerOptions |
networks(String... networks) |
CreateServerOptions |
novaNetworks(Iterable<Network> networks) |
CreateServerOptions |
securityGroupNames(Iterable<String> securityGroupNames) |
CreateServerOptions |
securityGroupNames(String... securityGroupNames) |
protected com.google.common.base.Objects.ToStringHelper |
string() |
String |
toString() |
CreateServerOptions |
userData(byte[] userData)
Custom user-data can be also be supplied at launch time.
|
CreateServerOptions |
writeFileToPath(byte[] contents,
String path)
You may further customize a cloud server by injecting data into the file
system of the cloud server itself.
|
protected com.google.common.base.Objects.ToStringHelper string()
public <R extends HttpRequest> R bindToRequest(R request, Map<String,Object> postParams)
MapBinder
bindToRequest
in interface MapBinder
PayloadParam
public CreateServerOptions writeFileToPath(byte[] contents, String path)
public CreateServerOptions adminPass(String adminPass)
public CreateServerOptions metadata(Map<String,String> metadata)
public CreateServerOptions userData(byte[] userData)
public CreateServerOptions configDrive(boolean configDrive)
http://docs.openstack.org/grizzly/openstack-compute/admin/content/config-drive.html
public CreateServerOptions keyPairName(String keyName)
getKeyPairName()
public CreateServerOptions availabilityZone(String availabilityZone)
getAvailabilityZone()
public CreateServerOptions securityGroupNames(String... securityGroupNames)
getSecurityGroupNames()
public CreateServerOptions securityGroupNames(Iterable<String> securityGroupNames)
getSecurityGroupNames()
public CreateServerOptions diskConfig(String diskConfig)
getDiskConfig()
public CreateServerOptions networks(Iterable<String> networks)
getNetworks()
public CreateServerOptions novaNetworks(Iterable<Network> networks)
public CreateServerOptions networks(String... networks)
getNetworks()
public CreateServerOptions blockDeviceMappings(Set<BlockDeviceMapping> blockDeviceMappings)
getBlockDeviceMappings()
public String getKeyPairName()
public String getAvailabilityZone()
public Set<String> getSecurityGroupNames()
NovaApi#getSecurityGroupExtensionApi(String)
to return
present
public Set<String> getNetworks()
public Set<Network> getNovaNetworks()
public String getDiskConfig()
Server#DISK_CONFIG_AUTO
, the server is built with a single partition that is expanded to
the disk size of the flavor selected. When you set the diskConfig attribute to
Server#DISK_CONFIG_MANUAL
, the server is built by using the partition scheme and file
system that is in the source image.
If the target flavor disk is larger, remaining disk space is left unpartitioned. A server inherits the diskConfig
attribute from the image from which it is created. However, you can override the diskConfig value when you create
a server. This field is only present if the Disk Config extension is installed in your OpenStack deployment.public boolean getConfigDrive()
public Set<BlockDeviceMapping> getBlockDeviceMappings()
public <R extends HttpRequest> R bindToRequest(R request, Object input)
bindToRequest
in interface Binder
Copyright © 2009-2016 The Apache Software Foundation. All Rights Reserved.