org.libvirt

Class DomainInfo.DomainState

public static class DomainInfo.DomainState extends Enum<DomainInfo.DomainState>

Author: stoty

Field Summary
static List<DomainInfo.DomainState>VALUES
An immutable list containing the values comprising this enum class in the order they're declared.
static DomainInfo.DomainStateVIR_DOMAIN_BLOCKED
the domain is blocked on resource
static DomainInfo.DomainStateVIR_DOMAIN_CRASHED
the domain is crashed
static DomainInfo.DomainStateVIR_DOMAIN_NOSTATE
no state
static DomainInfo.DomainStateVIR_DOMAIN_PAUSED
the domain is paused by user
static DomainInfo.DomainStateVIR_DOMAIN_RUNNING
the domain is running
static DomainInfo.DomainStateVIR_DOMAIN_SHUTDOWN
the domain is being shut down
static DomainInfo.DomainStateVIR_DOMAIN_SHUTOFF
the domain is shut off
Method Summary
List<DomainInfo.DomainState>family()
Returns an immutable list containing the values comprising this enum class in the order they're declared.
static DomainInfo.DomainStatevalueOf(String name)
Static factory to return the enum constant pertaining to the given string name.

Field Detail

VALUES

public static final List<DomainInfo.DomainState> VALUES
An immutable list containing the values comprising this enum class in the order they're declared. This field may be used to iterate over the constants as follows:
for(DomainState c : DomainState.VALUES)
    System.out.println(c);

VIR_DOMAIN_BLOCKED

public static final DomainInfo.DomainState VIR_DOMAIN_BLOCKED
the domain is blocked on resource

VIR_DOMAIN_CRASHED

public static final DomainInfo.DomainState VIR_DOMAIN_CRASHED
the domain is crashed

VIR_DOMAIN_NOSTATE

public static final DomainInfo.DomainState VIR_DOMAIN_NOSTATE
no state

VIR_DOMAIN_PAUSED

public static final DomainInfo.DomainState VIR_DOMAIN_PAUSED
the domain is paused by user

VIR_DOMAIN_RUNNING

public static final DomainInfo.DomainState VIR_DOMAIN_RUNNING
the domain is running

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

Method Detail

family

public final List<DomainInfo.DomainState> family()
Returns an immutable list containing the values comprising this enum class in the order they're declared. This instance method simply returns VALUES. Few programmers should have any need to use this method. It is provided for use by sophisticated enum-based data structures to prevent the need for reflective access to VALUES.

Returns: an immutable list containing the values comprising this enum class, in the order they're declared.

valueOf

public static final DomainInfo.DomainState valueOf(String name)
Static factory to return the enum constant pertaining to the given string name. The string must match exactly an identifier used to declare an enum constant in this type.

Throws: IllegalArgumentException if this enum class has no constant with the specified name.