hu.mta.sztaki.lpds.cloud.simulator.iaas
Enum VirtualMachine.State

java.lang.Object
  extended by java.lang.Enum<VirtualMachine.State>
      extended by hu.mta.sztaki.lpds.cloud.simulator.iaas.VirtualMachine.State
All Implemented Interfaces:
Serializable, Comparable<VirtualMachine.State>
Enclosing class:
VirtualMachine

public static enum VirtualMachine.State
extends Enum<VirtualMachine.State>

the possible states of a virtual machine in DISSECT-CF.

Author:
"Gabor Kecskemeti, Laboratory of Parallel and Distributed Systems, MTA SZTAKI (c) 2012"

Enum Constant Summary
DESTROYED
          The VM is not running and it does not have any storage requirements in any of the repositories.
INITIAL_TR
          The VA of the machine is arranged to be usable for the execution.
MIGRATING
          The VM is on the move between two Phisical machines.
NONSERVABLE
          The VM is destroyed, and it is not possible to instantiate it in the current cloud infrastructure (or the VM was terminated on user request before it was possible to instantiate it in the cloud)
RESUME_TR
          The VM is about to be running.
RUNNING
          The VM is operating according to the user's needs.
SHUTDOWN
          The VM is not running.
STARTUP
          The VM is booting up, and already consumes energy although it does not offer useful services for its user.
SUSPEND_TR
          The VM is about to be suspended, and its memory is under serialization.
SUSPENDED
          The VM is awaiting to be resumed.
SUSPENDED_MIG
          This state signs that there was a problem with a migration operation.
 
Method Summary
static VirtualMachine.State valueOf(String name)
          Returns the enum constant of this type with the specified name.
static VirtualMachine.State[] 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

INITIAL_TR

public static final VirtualMachine.State INITIAL_TR
The VA of the machine is arranged to be usable for the execution. The VM is not consuming energy. There is no used storage.


STARTUP

public static final VirtualMachine.State STARTUP
The VM is booting up, and already consumes energy although it does not offer useful services for its user. The VM stores a clone of the VA in a repository.


RUNNING

public static final VirtualMachine.State RUNNING
The VM is operating according to the user's needs. The VM consumes energy. The VM stores a clone of the VA in a repository.


SUSPEND_TR

public static final VirtualMachine.State SUSPEND_TR
The VM is about to be suspended, and its memory is under serialization. The VM does not consume energy anymore. The VM stores a clone of the VA in a repository.


SUSPENDED

public static final VirtualMachine.State SUSPENDED
The VM is awaiting to be resumed. It can be resumed fast and it can skip the bootup procedure. The VM does not consume energy. The VM stores a clone of the VA and its serialized memory in a repository.


SUSPENDED_MIG

public static final VirtualMachine.State SUSPENDED_MIG
This state signs that there was a problem with a migration operation. Otherwise it is equivalent to a regular suspended state.


RESUME_TR

public static final VirtualMachine.State RESUME_TR
The VM is about to be running. Its memory is transferred and deserialized. The VM still stores a clone of the VA and its serialized memory in a repository. The VM starts to consume energy for the deserialization.


MIGRATING

public static final VirtualMachine.State MIGRATING
The VM is on the move between two Phisical machines. During this operation it could happen that the VM and its serialized memory occupies disk space in two repositories. The VM starts to consume energy during the deserialization of its memory on the target PM.


SHUTDOWN

public static final VirtualMachine.State SHUTDOWN
The VM is not running. It's disk image (but not its memory state) can be found in the repository. So it is possible to start the VM up without the need for initial transfer. The VM is not consuming energy.


DESTROYED

public static final VirtualMachine.State DESTROYED
The VM is not running and it does not have any storage requirements in any of the repositories. The VM is not consuming energy.


NONSERVABLE

public static final VirtualMachine.State NONSERVABLE
The VM is destroyed, and it is not possible to instantiate it in the current cloud infrastructure (or the VM was terminated on user request before it was possible to instantiate it in the cloud)

Method Detail

values

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

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

valueOf

public static VirtualMachine.State 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 name
NullPointerException - if the argument is null


Copyright © 2012–2015 University of Innsbruck & MTA SZTAKI. All rights reserved.