net.java.dev.vcc.api
Enum PowerState

java.lang.Object
  extended by java.lang.Enum<PowerState>
      extended by net.java.dev.vcc.api.PowerState
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<PowerState>

public enum PowerState
extends java.lang.Enum<PowerState>

Represents the power states of a virtual machine.


Enum Constant Summary
PAUSED
          Execution of a running virtual machine has been paused, the state is still in memory but it is not consuming CPU cycles.
RUNNING
          The virtual machine's state is in memory and active.
STOPPED
          The virtual machine has been powered off, to power it on again will require going through the BIOS boot sequence.
SUSPENDED
          A running virtual machine's state has been written out to disk, powering it on again will resume it from this state and will be delayed while the state is restored from disk.
 
Method Summary
static PowerState valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static PowerState[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

STOPPED

public static final PowerState STOPPED
The virtual machine has been powered off, to power it on again will require going through the BIOS boot sequence.


SUSPENDED

public static final PowerState SUSPENDED
A running virtual machine's state has been written out to disk, powering it on again will resume it from this state and will be delayed while the state is restored from disk.


PAUSED

public static final PowerState PAUSED
Execution of a running virtual machine has been paused, the state is still in memory but it is not consuming CPU cycles.


RUNNING

public static final PowerState RUNNING
The virtual machine's state is in memory and active.

Method Detail

values

public static PowerState[] 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 (PowerState c : PowerState.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static PowerState 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 name
java.lang.NullPointerException - if the argument is null


Copyright © 2009. All Rights Reserved.