|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<ContextConfiguration.ManagementStrategy>
com.oracle.coherence.patterns.command.ContextConfiguration.ManagementStrategy
public static enum ContextConfiguration.ManagementStrategy
The ContextConfiguration.ManagementStrategy of a Context
is used to specify how work (like Commands) are
stored and managed.
| Enum Constant Summary | |
|---|---|
COLOCATED
The COLOCATED strategy ensures that
all work (like Commands) are managed in the
JVM where the Context is being managed. |
|
DISTRIBUTED
The DISTRIBUTED strategy ensures that
all work (like Commands) are stored and
managed in a distributed manner across the available
resources (ie: clustered JVMs) instead of being "colocated". |
|
| Method Summary | |
|---|---|
static ContextConfiguration.ManagementStrategy |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static ContextConfiguration.ManagementStrategy[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final ContextConfiguration.ManagementStrategy COLOCATED
COLOCATED strategy ensures that
all work (like Commands) are managed in the
JVM where the Context is being managed.
This has the benefit of minimizing network traffic to
execute work (meaning higher-performance), but means more
JVM tuning needs to occur ensure all work (like Commands)
can co-exist in the same JVM with the Context.
public static final ContextConfiguration.ManagementStrategy DISTRIBUTED
DISTRIBUTED strategy ensures that
all work (like Commands) are stored and
managed in a distributed manner across the available
resources (ie: clustered JVMs) instead of being "colocated".
This has the benefit of increasing the amount of work that may be submitted for execution (meaning greater capacity), but also means lower performance as it introduces more network traffic between JVMs.
| Method Detail |
|---|
public static ContextConfiguration.ManagementStrategy[] values()
for (ContextConfiguration.ManagementStrategy c : ContextConfiguration.ManagementStrategy.values()) System.out.println(c);
public static ContextConfiguration.ManagementStrategy valueOf(String name)
name - the name of the enum constant to be returned.
IllegalArgumentException - if this enum type has no constant
with the specified name
NullPointerException - if the argument is null
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||