Package org.openstack4j.model.compute
Enum Server.Status
- java.lang.Object
-
- java.lang.Enum<Server.Status>
-
- org.openstack4j.model.compute.Server.Status
-
- All Implemented Interfaces:
Serializable,Comparable<Server.Status>
- Enclosing interface:
- Server
public static enum Server.Status extends Enum<Server.Status>
Servers contain a status attribute that can be used as an indication of the current server state. Servers with an ACTIVE status are available for use.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ACTIVEThe server is activeBUILDThe server has not finished the original build processDELETEDThe server is permanently deleted.ERRORThe server is in error.HARD_REBOOTThe server is hard rebooting.MIGRATINGThe server is currently being migratedPASSWORDThe password is being reset on the server.PAUSEDIn a paused state, the state of the server is stored in RAM.REBOOTThe server is in a soft reboot state.REBUILDThe server is currently being rebuiltRESCUEThe server is in rescue modeRESIZEServer is performing the differential copy of data that changed during its initial copy.REVERT_RESIZEThe resize or migration of a server failed for some reason.SHELVEDThe server is shelvedSHELVED_OFFLOADEDThe server is shelved_offloaded, server removed from the hypervisor to minimize resource usage.SHUTOFFThe virtual machine (VM) was powered down by the user, but not through the OpenStack Compute API.STOPPEDThe server is powered off and the disk image still persists.SUSPENDEDThe server is suspended, either by request or necessity.UNKNOWNThe state of the server is unknown.UNRECOGNIZEDOpenStack4j could not find a Status mapping for the current reported Status.VERIFY_RESIZESystem is awaiting confirmation that the server is operational after a move or resize.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Server.StatusforValue(String value)Stringvalue()static Server.StatusvalueOf(String name)Returns the enum constant of this type with the specified name.static Server.Status[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ACTIVE
public static final Server.Status ACTIVE
The server is active
-
BUILD
public static final Server.Status BUILD
The server has not finished the original build process
-
REBUILD
public static final Server.Status REBUILD
The server is currently being rebuilt
-
SUSPENDED
public static final Server.Status SUSPENDED
The server is suspended, either by request or necessity. This status appears for only the following hypervisors: XenServer/XCP, KVM, and ESXi. Administrative users may suspend an instance if it is infrequently used or to perform system maintenance. When you suspend an instance, its VM state is stored on disk, all memory is written to disk, and the virtual machine is stopped. Suspending an instance is similar to placing a device in hibernation; memory and vCPUs become available to create other instances.
-
PAUSED
public static final Server.Status PAUSED
In a paused state, the state of the server is stored in RAM. A paused server continues to run in frozen state.
-
RESIZE
public static final Server.Status RESIZE
Server is performing the differential copy of data that changed during its initial copy. Server is down for this stage.
-
VERIFY_RESIZE
public static final Server.Status VERIFY_RESIZE
System is awaiting confirmation that the server is operational after a move or resize.
-
REVERT_RESIZE
public static final Server.Status REVERT_RESIZE
The resize or migration of a server failed for some reason. The destination server is being cleaned up and the original source server is restarting.
-
PASSWORD
public static final Server.Status PASSWORD
The password is being reset on the server.
-
REBOOT
public static final Server.Status REBOOT
The server is in a soft reboot state. A reboot command was passed to the operating system.
-
HARD_REBOOT
public static final Server.Status HARD_REBOOT
The server is hard rebooting. This is equivalent to pulling the power plug on a physical server, plugging it back in, and rebooting it.
-
DELETED
public static final Server.Status DELETED
The server is permanently deleted.
-
UNKNOWN
public static final Server.Status UNKNOWN
The state of the server is unknown. Contact your cloud provider.
-
ERROR
public static final Server.Status ERROR
The server is in error.
-
STOPPED
public static final Server.Status STOPPED
The server is powered off and the disk image still persists.
-
SHUTOFF
public static final Server.Status SHUTOFF
The virtual machine (VM) was powered down by the user, but not through the OpenStack Compute API.
-
MIGRATING
public static final Server.Status MIGRATING
The server is currently being migrated
-
SHELVED
public static final Server.Status SHELVED
The server is shelved
-
SHELVED_OFFLOADED
public static final Server.Status SHELVED_OFFLOADED
The server is shelved_offloaded, server removed from the hypervisor to minimize resource usage.
-
RESCUE
public static final Server.Status RESCUE
The server is in rescue mode
-
UNRECOGNIZED
public static final Server.Status UNRECOGNIZED
OpenStack4j could not find a Status mapping for the current reported Status. File an issue indicating the missing state
-
-
Method Detail
-
values
public static Server.Status[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (Server.Status c : Server.Status.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Server.Status valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
forValue
public static Server.Status forValue(String value)
-
value
public String value()
-
-