Package org.ovirt.engine.sdk4.types
Enum MigrationBandwidthAssignmentMethod
- java.lang.Object
-
- java.lang.Enum<MigrationBandwidthAssignmentMethod>
-
- org.ovirt.engine.sdk4.types.MigrationBandwidthAssignmentMethod
-
- All Implemented Interfaces:
Serializable
,Comparable<MigrationBandwidthAssignmentMethod>
public enum MigrationBandwidthAssignmentMethod extends Enum<MigrationBandwidthAssignmentMethod>
Defines how the migration bandwidth is assigned.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description AUTO
Takes the bandwidth from the Quality of Service if the Quality of Service is defined.CUSTOM
Custom defined bandwidth in Mbit/s.HYPERVISOR_DEFAULT
Takes the value as configured on the hypervisor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static MigrationBandwidthAssignmentMethod
fromValue(String value)
String
value()
static MigrationBandwidthAssignmentMethod
valueOf(String name)
Returns the enum constant of this type with the specified name.static MigrationBandwidthAssignmentMethod[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
AUTO
public static final MigrationBandwidthAssignmentMethod AUTO
Takes the bandwidth from the Quality of Service if the Quality of Service is defined. If the Quality of Service is not defined the bandwidth is taken from the detected link speed being used. If nothing is detected, bandwidth falls back to the hypervisor_default value.
-
CUSTOM
public static final MigrationBandwidthAssignmentMethod CUSTOM
Custom defined bandwidth in Mbit/s.
-
HYPERVISOR_DEFAULT
public static final MigrationBandwidthAssignmentMethod HYPERVISOR_DEFAULT
Takes the value as configured on the hypervisor.
-
-
Method Detail
-
values
public static MigrationBandwidthAssignmentMethod[] 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 (MigrationBandwidthAssignmentMethod c : MigrationBandwidthAssignmentMethod.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static MigrationBandwidthAssignmentMethod 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 nameNullPointerException
- if the argument is null
-
value
public String value()
-
fromValue
public static MigrationBandwidthAssignmentMethod fromValue(String value)
-
-