Class Server
java.lang.Object
org.jclouds.openstack.v2_0.domain.Resource
org.jclouds.openstack.nova.v2_0.domain.Server
- All Implemented Interfaces:
Comparable<Resource>
- Direct Known Subclasses:
ServerWithSecurityGroups
A server is a virtual machine instance in the compute system. Flavor and image are requisite
elements when creating a server.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Server.Builder<T extends Server.Builder<T>>
static enum
Servers contain a status attribute that can be used as an indication of the current server state. -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
Server
(String id, String name, Set<Link> links, String uuid, String tenantId, String userId, Date updated, Date created, String hostId, String accessIPv4, String accessIPv6, Server.Status status, Resource image, Resource flavor, String keyName, String configDrive, com.google.common.collect.Multimap<String, Address> addresses, Map<String, String> metadata, ServerExtendedStatus extendedStatus, ServerExtendedAttributes extendedAttributes, String diskConfig, String availabilityZone) -
Method Summary
Modifier and TypeMethodDescriptionstatic Server.Builder
<?> builder()
com.google.common.base.Optional
<String> return the Availability Zone of a servercom.google.common.base.Optional
<String> Disk config attribute from the Disk Config Extension (alias "OS-DCF").com.google.common.base.Optional
<ServerExtendedAttributes> Retrieves the extended server attributes fields (alias "OS-EXT-SRV-ATTR")com.google.common.base.Optional
<ServerExtendedStatus> Retrieves the extended server status fields (alias "OS-EXT-STS")getImage()
getUuid()
only present until the id is in uuid formprotected com.google.common.base.MoreObjects.ToStringHelper
string()
-
Field Details
-
DISK_CONFIG_MANUAL
- See Also:
-
DISK_CONFIG_AUTO
- See Also:
-
-
Constructor Details
-
Server
@ConstructorProperties({"id","name","links","uuid","tenant_id","user_id","updated","created","hostId","accessIPv4","accessIPv6","status","image","flavor","key_name","config_drive","addresses","metadata","extendedStatus","extendedAttributes","OS-DCF:diskConfig","OS-EXT-AZ:availability_zone"}) protected Server(String id, @Nullable String name, Set<Link> links, @Nullable String uuid, String tenantId, String userId, @Nullable Date updated, Date created, @Nullable String hostId, @Nullable String accessIPv4, @Nullable String accessIPv6, Server.Status status, @Nullable Resource image, Resource flavor, @Nullable String keyName, @Nullable String configDrive, com.google.common.collect.Multimap<String, Address> addresses, Map<String, String> metadata, @Nullable ServerExtendedStatus extendedStatus, @Nullable ServerExtendedAttributes extendedAttributes, @Nullable String diskConfig, @Nullable String availabilityZone)
-
-
Method Details
-
builder
-
toBuilder
-
getUuid
only present until the id is in uuid form- Returns:
- uuid, if id is an integer val
-
getTenantId
-
getUserId
-
getUpdated
-
getCreated
-
getHostId
- Returns:
- host identifier, or null if in
Server.Status.BUILD
-
getAccessIPv4
-
getAccessIPv6
-
getStatus
-
getConfigDrive
-
getImage
-
getFlavor
-
getMetadata
-
getAddresses
- Returns:
- the ip addresses assigned to the server
-
getKeyName
- Returns:
- keyName if extension is present and there is a value for this server
- See Also:
-
getExtendedStatus
Retrieves the extended server status fields (alias "OS-EXT-STS") NOTE: This field is only present if the Extended Status extension is installed.- See Also:
-
getExtendedAttributes
Retrieves the extended server attributes fields (alias "OS-EXT-SRV-ATTR") NOTE: This field is only present if the The Extended Server Attributes API extension is installed.- See Also:
-
getDiskConfig
Disk config attribute from the Disk Config Extension (alias "OS-DCF"). One ofDISK_CONFIG_AUTO
orDISK_CONFIG_MANUAL
. This field is only present if the Disk Config extension is installed. NOTE: Typically a field like this would be implemented as an enum but this field was originally implmented as a String andDISK_CONFIG_AUTO
andDISK_CONFIG_MANUAL
were added later as Strings to preserve backwards compatibility.- See Also:
-
getAvailabilityZone
return the Availability Zone of a server- See Also:
-
string
protected com.google.common.base.MoreObjects.ToStringHelper string()
-