public enum DistributedTaskExecutionPolicy extends Enum<DistributedTaskExecutionPolicy>
DistributedTaskExecutionPolicy effectively scopes execution of tasks to a subset of nodes. For example, someone might want to exclusively execute tasks 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. DistributedTaskExecutionPolicy is set per instance of DistributedTask.
Enum Constant and Description |
---|
ALL |
SAME_MACHINE |
SAME_RACK |
SAME_SITE |
Modifier and Type | Method and Description |
---|---|
static DistributedTaskExecutionPolicy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DistributedTaskExecutionPolicy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DistributedTaskExecutionPolicy ALL
public static final DistributedTaskExecutionPolicy SAME_MACHINE
public static final DistributedTaskExecutionPolicy SAME_RACK
public static final DistributedTaskExecutionPolicy SAME_SITE
public static DistributedTaskExecutionPolicy[] values()
for (DistributedTaskExecutionPolicy c : DistributedTaskExecutionPolicy.values()) System.out.println(c);
public static DistributedTaskExecutionPolicy valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2017 JBoss, a division of Red Hat. All Rights Reserved.