|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.axis2.clustering.ClusteringCommand org.apache.axis2.clustering.configuration.ConfigurationClusteringCommand
public abstract class ConfigurationClusteringCommand
This class represents the 2-phase commit protocol, where an event is processed, the system is prepared to switch to a new configuration based on the processed event, and finally commits the new configuration (i.e. the system switches to the new configuration). As can be seen, this is a 3-step process.
Field Summary | |
---|---|
static int |
APPLY_SERVICE_POLICY
|
static int |
COMMIT
|
static int |
EXCEPTION
|
static int |
LOAD_SERVICE_GROUPS
|
static int |
PREPARE
|
static int |
RELOAD_CONFIGURATION
|
static int |
ROLLBACK
|
static int |
UNLOAD_SERVICE_GROUPS
|
Constructor Summary | |
---|---|
ConfigurationClusteringCommand()
|
Method Summary | |
---|---|
abstract void |
commit(ConfigurationContext configContext)
Commit the new configuration. |
abstract int |
getCommandType()
Get the command type |
abstract void |
prepare(ConfigurationContext configContext)
Prepare to switch to the new configuration |
abstract void |
process(ConfigurationContext configContext)
Process the event. |
abstract void |
rollback(ConfigurationContext configContext)
Rollback any changes carried out |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int RELOAD_CONFIGURATION
public static final int LOAD_SERVICE_GROUPS
public static final int UNLOAD_SERVICE_GROUPS
public static final int APPLY_SERVICE_POLICY
public static final int PREPARE
public static final int COMMIT
public static final int EXCEPTION
public static final int ROLLBACK
Constructor Detail |
---|
public ConfigurationClusteringCommand()
Method Detail |
---|
public abstract int getCommandType()
public abstract void process(ConfigurationContext configContext) throws java.lang.Exception
event. The implementer of this interface will
need to cache the outcome of this processing.
- Parameters:
configContext
-
- Throws:
java.lang.Exception
public abstract void prepare(ConfigurationContext configContext)
configContext
- public abstract void commit(ConfigurationContext configContext) throws java.lang.Exception
configContext
-
java.lang.Exception
public abstract void rollback(ConfigurationContext configContext) throws java.lang.Exception
configContext
-
java.lang.Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |