org.inria.myriads.snoozecommon.communication.localcontroller.hypervisor
Enum MigrationMethod

java.lang.Object
  extended by java.lang.Enum<MigrationMethod>
      extended by org.inria.myriads.snoozecommon.communication.localcontroller.hypervisor.MigrationMethod
All Implemented Interfaces:
Serializable, Comparable<MigrationMethod>

public enum MigrationMethod
extends Enum<MigrationMethod>

Libvirt migration method. (see virDomainMigrateFlags on http://libvirt.org/html/libvirt-libvirt.html)

Author:
Eugen Feller

Enum Constant Summary
live
          Live migration.
nosharedfull
          Noshared full.
nosharedincremental
          No shared incremental.
 
Method Summary
 int getValue()
          Returns current value.
static MigrationMethod valueOf(String name)
          Returns the enum constant of this type with the specified name.
static MigrationMethod[] 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

live

public static final MigrationMethod live
Live migration.


nosharedfull

public static final MigrationMethod nosharedfull
Noshared full.


nosharedincremental

public static final MigrationMethod nosharedincremental
No shared incremental.

Method Detail

values

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

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

valueOf

public static MigrationMethod 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

getValue

public int getValue()
Returns current value.

Returns:
The value


Copyright © 2012. All Rights Reserved.