public class Server extends Resource
Modifier and Type | Class and Description |
---|---|
static class |
Server.Builder<T extends Server.Builder<T>> |
static class |
Server.Status
Servers contain a status attribute that can be used as an indication of the current server
state.
|
Modifier and Type | Field and Description |
---|---|
static String |
DISK_CONFIG_AUTO |
static String |
DISK_CONFIG_MANUAL |
Modifier | Constructor and Description |
---|---|
protected |
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) |
Modifier and Type | Method and Description |
---|---|
static Server.Builder<?> |
builder() |
String |
getAccessIPv4() |
String |
getAccessIPv6() |
com.google.common.collect.Multimap<String,Address> |
getAddresses() |
String |
getConfigDrive() |
Date |
getCreated() |
com.google.common.base.Optional<String> |
getDiskConfig()
Disk config attribute from the Disk Config Extension (alias "OS-DCF").
|
com.google.common.base.Optional<ServerExtendedAttributes> |
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.
|
com.google.common.base.Optional<ServerExtendedStatus> |
getExtendedStatus()
Retrieves the extended server status fields (alias "OS-EXT-STS")
NOTE: This field is only present if the Extended Status extension is installed.
|
Resource |
getFlavor() |
String |
getHostId() |
Resource |
getImage() |
String |
getKeyName() |
Map<String,String> |
getMetadata() |
Server.Status |
getStatus() |
String |
getTenantId() |
Date |
getUpdated() |
String |
getUserId() |
String |
getUuid()
only present until the id is in uuid form
|
protected com.google.common.base.Objects.ToStringHelper |
string() |
Server.Builder<?> |
toBuilder() |
public static final String DISK_CONFIG_MANUAL
public static final String DISK_CONFIG_AUTO
@ConstructorProperties(value={"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"}) 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, 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)
public static Server.Builder<?> builder()
public Server.Builder<?> toBuilder()
@Nullable public String getUuid()
public String getTenantId()
public String getUserId()
public Date getCreated()
@Nullable public String getHostId()
Server.Status.BUILD
public Server.Status getStatus()
public Resource getImage()
public Resource getFlavor()
public com.google.common.collect.Multimap<String,Address> getAddresses()
@Nullable public String getKeyName()
KeyPairApi
public com.google.common.base.Optional<ServerExtendedStatus> getExtendedStatus()
org.jclouds.openstack.nova.v2_0.features.ExtensionApi#getExtensionByAlias
,
ExtensionNamespaces.EXTENDED_STATUS
public com.google.common.base.Optional<ServerExtendedAttributes> getExtendedAttributes()
org.jclouds.openstack.nova.v2_0.features.ExtensionApi#getExtensionByAlias
,
ExtensionNamespaces.EXTENDED_STATUS
public com.google.common.base.Optional<String> getDiskConfig()
DISK_CONFIG_AUTO
or DISK_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 and DISK_CONFIG_AUTO
and
DISK_CONFIG_MANUAL
were added later as Strings to preserve backwards
compatibility.org.jclouds.openstack.nova.v2_0.features.ExtensionApi#getExtensionByAlias
,
ExtensionNamespaces.DISK_CONFIG
,
CreateServerOptions#getDiskConfig()
Copyright © 2009-2014 The Apache Software Foundation. All Rights Reserved.