Package org.apache.nifi.controller.queue
Enum Class LoadBalanceStrategy
- All Implemented Interfaces:
Serializable
,Comparable<LoadBalanceStrategy>
,Constable
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionDo not load balance FlowFiles between nodes in the cluster.Determine which node to send a given FlowFile to based on the value of a user-specified FlowFile Attribute.FlowFiles will be distributed to nodes in the cluster in a Round-Robin fashion.All FlowFiles will be sent to the same node. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic LoadBalanceStrategy
Returns the enum constant of this class with the specified name.static LoadBalanceStrategy[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
DO_NOT_LOAD_BALANCE
Do not load balance FlowFiles between nodes in the cluster. -
PARTITION_BY_ATTRIBUTE
Determine which node to send a given FlowFile to based on the value of a user-specified FlowFile Attribute. All FlowFiles that have the same value for said Attribute will be sent to the same node in the cluster. -
ROUND_ROBIN
FlowFiles will be distributed to nodes in the cluster in a Round-Robin fashion. However, if a node in the cluster is not able to receive data as fast as other nodes, that node may be skipped in one or more iterations in order to maximize throughput of data distribution across the cluster. -
SINGLE_NODE
All FlowFiles will be sent to the same node. Which node they are sent to is not defined.
-
-
Constructor Details
-
LoadBalanceStrategy
private LoadBalanceStrategy()
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-