Enum ShipStrategy
- java.lang.Object
-
- java.lang.Enum<ShipStrategy>
-
- org.apache.flink.autoscaler.topology.ShipStrategy
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<ShipStrategy>
public enum ShipStrategy extends java.lang.Enum<ShipStrategy>
The ship strategy between 2 JobVertices.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ShipStrategy
of(java.lang.String value)
Generates a ShipStrategy from a string, or returnsUNKNOWN
if the value cannot match any ShipStrategy.static ShipStrategy
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static ShipStrategy[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
HASH
public static final ShipStrategy HASH
-
REBALANCE
public static final ShipStrategy REBALANCE
-
RESCALE
public static final ShipStrategy RESCALE
-
FORWARD
public static final ShipStrategy FORWARD
-
CUSTOM
public static final ShipStrategy CUSTOM
-
BROADCAST
public static final ShipStrategy BROADCAST
-
GLOBAL
public static final ShipStrategy GLOBAL
-
SHUFFLE
public static final ShipStrategy SHUFFLE
-
UNKNOWN
public static final ShipStrategy UNKNOWN
-
-
Method Detail
-
values
public static ShipStrategy[] 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 (ShipStrategy c : ShipStrategy.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ShipStrategy 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 namejava.lang.NullPointerException
- if the argument is null
-
of
@Nonnull public static ShipStrategy of(java.lang.String value)
Generates a ShipStrategy from a string, or returnsUNKNOWN
if the value cannot match any ShipStrategy.
-
-