|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface NodeManager
This interface is responsible for handling configuration management. Configuraion changes include
It is not mandatory to have a NodeManager in a node. In which case the cluster may be used only for High Availability through context replication. However, it is difficult to imagine that a cluster will be deployed in production with only context replication but without cluster configuration management.
The implementation of this interface is set by the
ClusterBuilder
, by
reading the "configurationManager" element in the axis2.xml
Method Summary | |
---|---|
void |
commit()
Second phase of the 2-phase commit protocol. |
void |
exceptionOccurred(Throwable throwable)
To notify other nodes that an Exception occurred, during the processing of a NodeManagementCommand |
void |
prepare()
First phase of the 2-phase commit protocol. |
void |
rollback()
Rollback whatever was done |
void |
sendMessage(NodeManagementCommand command)
Execute a NodeManagementCommand |
void |
setConfigurationContext(ConfigurationContext configurationContext)
Set the system's configuration context. |
Methods inherited from interface org.apache.axis2.description.ParameterInclude |
---|
addParameter, deserializeParameters, getParameter, getParameters, isParameterLocked, removeParameter |
Method Detail |
---|
void prepare() throws ClusteringFault
ClusteringFault
- If an error occurs while preparing to commitvoid rollback() throws ClusteringFault
ClusteringFault
- If an error occurs while rolling back a cluster configuration
transactionvoid commit() throws ClusteringFault
ClusteringFault
- If an error occurs while committing a cluster configuration
transactionvoid exceptionOccurred(Throwable throwable) throws ClusteringFault
NodeManagementCommand
throwable
- The throwable which has to be propogated to other nodes
ClusteringFault
- If an error occurs while processing the
exception messagevoid setConfigurationContext(ConfigurationContext configurationContext)
configurationContext
- The configuration contextvoid sendMessage(NodeManagementCommand command) throws ClusteringFault
command
- The command to be executed
ClusteringFault
- If an error occurs while sending the message
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |