Package org.libvirt
Enum DomainInfo.DomainState
- java.lang.Object
-
- java.lang.Enum<DomainInfo.DomainState>
-
- org.libvirt.DomainInfo.DomainState
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<DomainInfo.DomainState>
- Enclosing class:
- DomainInfo
public static enum DomainInfo.DomainState extends java.lang.Enum<DomainInfo.DomainState>
- Author:
- stoty
-
-
Enum Constant Summary
Enum Constants Enum Constant Description VIR_DOMAIN_BLOCKED
the domain is blocked on resourceVIR_DOMAIN_CRASHED
the domain is crashedVIR_DOMAIN_NOSTATE
no stateVIR_DOMAIN_PAUSED
the domain is paused by userVIR_DOMAIN_RUNNING
the domain is runningVIR_DOMAIN_SHUTDOWN
the domain is being shut downVIR_DOMAIN_SHUTOFF
the domain is shut off
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static DomainInfo.DomainState
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static DomainInfo.DomainState[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
VIR_DOMAIN_NOSTATE
public static final DomainInfo.DomainState VIR_DOMAIN_NOSTATE
no state
-
VIR_DOMAIN_RUNNING
public static final DomainInfo.DomainState VIR_DOMAIN_RUNNING
the domain is running
-
VIR_DOMAIN_BLOCKED
public static final DomainInfo.DomainState VIR_DOMAIN_BLOCKED
the domain is blocked on resource
-
VIR_DOMAIN_PAUSED
public static final DomainInfo.DomainState VIR_DOMAIN_PAUSED
the domain is paused by user
-
VIR_DOMAIN_SHUTDOWN
public static final DomainInfo.DomainState VIR_DOMAIN_SHUTDOWN
the domain is being shut down
-
VIR_DOMAIN_SHUTOFF
public static final DomainInfo.DomainState VIR_DOMAIN_SHUTOFF
the domain is shut off
-
VIR_DOMAIN_CRASHED
public static final DomainInfo.DomainState VIR_DOMAIN_CRASHED
the domain is crashed
-
-
Method Detail
-
values
public static DomainInfo.DomainState[] 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 (DomainInfo.DomainState c : DomainInfo.DomainState.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DomainInfo.DomainState valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-