Package org.infinispan.manager
Enum ClusterExecutionPolicy
- All Implemented Interfaces:
Serializable
,Comparable<ClusterExecutionPolicy>
ClusterExecutionPolicy controls how which nodes commands submitted via
ClusterExecutor
. That is the user
can ensure that a command goes or doesn't go to a specific physical location such as on the existing machine, rack
or site.
ClusterExecutionPolicy effectively scopes execution of commands to a subset of nodes. For example, someone might want to exclusively execute commands on a local network site instead of a backup remote network centre as well. Others might, for example, use only a dedicated subset of a certain Infinispan rack nodes for specific task execution.
- Since:
- 9.0
- Author:
- William Burns
-
Enum Constant Summary
Enum ConstantDescriptionThe command can be executed on any node in the clusterThe command will be executed only on a different machine.The command will be executed on machine on a different rack.The command will be executed on a different site.The command can be executed only on the same machine from where it was initiated.The command will be executed on a machine on the same rack.The command will be executed on a machine on the same site. -
Method Summary
Modifier and TypeMethodDescriptionabstract boolean
include
(TopologyAwareAddress thisAddress, TopologyAwareAddress otherAddress) static ClusterExecutionPolicy
Returns the enum constant of this type with the specified name.static ClusterExecutionPolicy[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
ALL
The command can be executed on any node in the cluster -
SAME_MACHINE
The command can be executed only on the same machine from where it was initiated. Note this implies same rack and same site. -
DIFFERENT_MACHINE
The command will be executed only on a different machine. Note this means it may or may not be on the same rack or site. -
SAME_RACK
The command will be executed on a machine on the same rack. Note this means it may or may not be executed on the same machine. -
DIFFERENT_RACK
The command will be executed on machine on a different rack. Note this means may or may not be on the same site. -
SAME_SITE
The command will be executed on a machine on the same site. Note this means it may or may not be executed on the same machine or even same rack. -
DIFFERENT_SITE
The command will be executed on a different site.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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
-
include
public abstract boolean include(TopologyAwareAddress thisAddress, TopologyAwareAddress otherAddress)
-