Package org.openstack4j.model.compute
Interface Server
-
- All Superinterfaces:
ModelEntity,Serializable
- All Known Implementing Classes:
NovaServer
public interface Server extends ModelEntity
A server is a virtual machine instance on a compute based system.- Author:
- Jeremy Unruh
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classServer.DiskConfigstatic classServer.StatusServers contain a status attribute that can be used as an indication of the current server state.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringgetAccessIPv4()StringgetAccessIPv6()AddressesgetAddresses()StringgetAdminPass()StringgetAvailabilityZone()StringgetConfigDrive()DategetCreated()Server.DiskConfiggetDiskConfig()Disk config attribute from the Disk Config Extension (alias "OS-DCF")..FaultgetFault()FlavorgetFlavor()StringgetFlavorId()StringgetHost()StringgetHostId()StringgetHypervisorHostname()StringgetId()ImagegetImage()StringgetImageId()StringgetInstanceName()StringgetKeyName()DategetLaunchedAt()List<? extends Link>getLinks()Map<String,String>getMetadata()StringgetName()List<String>getOsExtendedVolumesAttached()StringgetPowerState()intgetProgress()List<? extends SecurityGroup>getSecurityGroups()Server.StatusgetStatus()StringgetTaskState()StringgetTenantId()DategetTerminatedAt()DategetUpdated()StringgetUserId()StringgetUuid()StringgetVmState()
-
-
-
Method Detail
-
getId
String getId()
- Returns:
- the identifier for the server
-
getName
String getName()
- Returns:
- the descriptive name for the server
-
getAddresses
Addresses getAddresses()
- Returns:
- the addresses assigned to the server
-
getImageId
String getImageId()
- Returns:
- the image identifier
-
getImage
Image getImage()
- Returns:
- the image used to boot the server with
-
getFlavorId
String getFlavorId()
- Returns:
- the flavor identifier
-
getFlavor
Flavor getFlavor()
- Returns:
- the flavor to boot into
-
getAccessIPv4
String getAccessIPv4()
- Returns:
- the accessible IPV4 address (if applicable)
-
getAccessIPv6
String getAccessIPv6()
- Returns:
- the accessible IPV6 address (if applicable)
-
getConfigDrive
String getConfigDrive()
- Returns:
- the configDrive
-
getStatus
Server.Status getStatus()
- Returns:
- the status
-
getProgress
int getProgress()
- Returns:
- the progress
-
getFault
Fault getFault()
- Returns:
- the fault
-
getTenantId
String getTenantId()
- Returns:
- the tenant id
-
getUserId
String getUserId()
- Returns:
- the user id
-
getKeyName
String getKeyName()
- Returns:
- the key name
-
getHostId
String getHostId()
- Returns:
- the host id
-
getUpdated
Date getUpdated()
- Returns:
- the updated
-
getCreated
Date getCreated()
- Returns:
- the created
-
getTaskState
String getTaskState()
- Returns:
- the task state
-
getPowerState
String getPowerState()
- Returns:
- the power state
-
getVmState
String getVmState()
- Returns:
- the vm state
-
getHost
String getHost()
- Returns:
- the host
-
getInstanceName
String getInstanceName()
- Returns:
- the instance name
-
getHypervisorHostname
String getHypervisorHostname()
- Returns:
- the hypervisor hostname
-
getDiskConfig
Server.DiskConfig getDiskConfig()
Disk config attribute from the Disk Config Extension (alias "OS-DCF")..- Returns:
- the current disk configuration
-
getAvailabilityZone
String getAvailabilityZone()
- Returns:
- the availability zone
-
getLaunchedAt
Date getLaunchedAt()
- Returns:
- the last time the server was launched
-
getTerminatedAt
Date getTerminatedAt()
- Returns:
- the last termination date
-
getOsExtendedVolumesAttached
List<String> getOsExtendedVolumesAttached()
- Returns:
- the OS extended volumes attached
-
getUuid
String getUuid()
- Returns:
- the UUID for this server
-
getAdminPass
String getAdminPass()
- Returns:
- the administrative password to the VM
-
getSecurityGroups
List<? extends SecurityGroup> getSecurityGroups()
- Returns:
- security groups attached to the VM
-
-