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

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

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

Represents the possible states of the physical machines modeled in the system

Author:
"Gabor Kecskemeti, Distributed and Parallel Systems Group, University of Innsbruck (c) 2013"

Enum Constant Summary
OFF
          The machine is completely switched off, minimal consumption is recorded.
RUNNING
          The machine is currently serving VMs.
SWITCHINGOFF
          The machine is about to be switched off.
SWITCHINGON
          The machine is under preparation to serve VMs.
 
Method Summary
static PhysicalMachine.State valueOf(String name)
          Returns the enum constant of this type with the specified name.
static PhysicalMachine.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

OFF

public static final PhysicalMachine.State OFF
The machine is completely switched off, minimal consumption is recorded.


SWITCHINGON

public static final PhysicalMachine.State SWITCHINGON
The machine is under preparation to serve VMs. Some consumption is recorded already.


RUNNING

public static final PhysicalMachine.State RUNNING
The machine is currently serving VMs. The machine and its VMs are consuming energy.


SWITCHINGOFF

public static final PhysicalMachine.State SWITCHINGOFF
The machine is about to be switched off. It no longer accepts VM requests but it still consumes energy.

Method Detail

values

public static PhysicalMachine.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 (PhysicalMachine.State c : PhysicalMachine.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 PhysicalMachine.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.