com.oracle.coherence.patterns.command
Enum ContextConfiguration.ManagementStrategy

java.lang.Object
  extended by java.lang.Enum<ContextConfiguration.ManagementStrategy>
      extended by com.oracle.coherence.patterns.command.ContextConfiguration.ManagementStrategy
All Implemented Interfaces:
Serializable, Comparable<ContextConfiguration.ManagementStrategy>
Enclosing interface:
ContextConfiguration

public static enum ContextConfiguration.ManagementStrategy
extends 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

COLOCATED

public static final ContextConfiguration.ManagementStrategy COLOCATED
The 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.


DISTRIBUTED

public static final ContextConfiguration.ManagementStrategy 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".

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

values

public static ContextConfiguration.ManagementStrategy[] 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 (ContextConfiguration.ManagementStrategy c : ContextConfiguration.ManagementStrategy.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static ContextConfiguration.ManagementStrategy valueOf(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:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null


Copyright © 2016. All rights reserved.