|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.axis2.clustering.tribes.TribesClusteringAgent
public class TribesClusteringAgent
The main ClusteringAgent class for the Tribes based clustering implementation
| Constructor Summary | |
|---|---|
TribesClusteringAgent()
|
|
| Method Summary | |
|---|---|
void |
addGroupManagementAgent(GroupManagementAgent agent,
String applicationDomain)
Set the load balance event handler which will be notified when load balance events occur. |
void |
addParameter(Parameter param)
Method addParameter. |
void |
deserializeParameters(org.apache.axiom.om.OMElement parameterElement)
|
void |
finalize()
Do cleanup & leave the cluster |
Set<String> |
getDomains()
Get all the domains that this ClusteringAgent belongs to |
GroupManagementAgent |
getGroupManagementAgent(String applicationDomain)
Get the LoadBalanceEventHandler which corresponds to the applicationDomain
This will be valid only when this node is running in loadBalance mode |
List<Member> |
getMembers()
Get the list of members in a static group |
NodeManager |
getNodeManager()
|
Parameter |
getParameter(String name)
Method getParameter. |
ArrayList |
getParameters()
Gets all the parameters in a given description. |
StateManager |
getStateManager()
|
void |
init()
Initialize the cluster. |
boolean |
isParameterLocked(String parameterName)
Checks whether the parameter is locked at any level. |
void |
removeParameter(Parameter param)
|
List<ClusteringCommand> |
sendMessage(ClusteringMessage message,
boolean isRpcMessage)
Send a message to all members in this member's primary cluster |
void |
setConfigurationContext(ConfigurationContext configurationContext)
Set the system's configuration context. |
void |
setMembers(List<Member> members)
Set the static members of the cluster. |
void |
setNodeManager(NodeManager nodeManager)
Set the NodeManager corresponding to this ClusteringAgent. |
void |
setStateManager(StateManager stateManager)
Set the StateManager corresponding to this ClusteringAgent. |
void |
shutdown()
Shutdown the cluster. |
boolean |
synchronizeAllMembers()
Method to check whether all members in the cluster have to be kept in sync at all times. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TribesClusteringAgent()
| Method Detail |
|---|
public void setMembers(List<Member> members)
ClusteringAgent
setMembers in interface ClusteringAgentmembers - Members to be addedpublic List<Member> getMembers()
ClusteringAgent
getMembers in interface ClusteringAgent
public void addGroupManagementAgent(GroupManagementAgent agent,
String applicationDomain)
ClusteringAgent
addGroupManagementAgent in interface ClusteringAgentagent - The load balance event handlerapplicationDomain - The application domain which is handled by the eventHandlerpublic GroupManagementAgent getGroupManagementAgent(String applicationDomain)
ClusteringAgentapplicationDomain
This will be valid only when this node is running in loadBalance mode
getGroupManagementAgent in interface ClusteringAgentapplicationDomain - The application domain to which the application nodes being
load balanced belong to
applicationDomainpublic Set<String> getDomains()
ClusteringAgent
getDomains in interface ClusteringAgentpublic StateManager getStateManager()
getStateManager in interface ClusteringAgentpublic NodeManager getNodeManager()
getNodeManager in interface ClusteringAgent
public void init()
throws ClusteringFault
init in interface ClusteringAgentClusteringFault - If initialization failspublic void finalize()
ClusteringAgent
finalize in interface ClusteringAgentfinalize in class Object
public List<ClusteringCommand> sendMessage(ClusteringMessage message,
boolean isRpcMessage)
throws ClusteringFault
ClusteringAgent
sendMessage in interface ClusteringAgentmessage - The message to be sentisRpcMessage - Indicates whether the message has to be sent in RPC mode
ClusteringFault - If an error occurs while sending the messagepublic void setNodeManager(NodeManager nodeManager)
ClusteringAgentClusterBuilder, by
reading the "configurationManager" element in the axis2.xml
e.g.
setNodeManager in interface ClusteringAgentnodeManager - The NodeManager instancepublic void setStateManager(StateManager stateManager)
ClusteringAgentClusterBuilder, by
reading the "contextManager" element in the axis2.xml
e.g.
setStateManager in interface ClusteringAgentstateManager - The StateManager instance
public void addParameter(Parameter param)
throws AxisFault
ParameterInclude
addParameter in interface ParameterIncludeAxisFault
public void deserializeParameters(org.apache.axiom.om.OMElement parameterElement)
throws AxisFault
deserializeParameters in interface ParameterIncludeAxisFaultpublic Parameter getParameter(String name)
ParameterInclude
getParameter in interface ParameterIncludepublic ArrayList getParameters()
ParameterInclude
getParameters in interface ParameterIncludepublic boolean isParameterLocked(String parameterName)
ParameterInclude
isParameterLocked in interface ParameterInclude
public void removeParameter(Parameter param)
throws AxisFault
removeParameter in interface ParameterIncludeAxisFault
public void shutdown()
throws ClusteringFault
shutdown in interface ClusteringAgentClusteringFault - If an error occurs while shutting downpublic void setConfigurationContext(ConfigurationContext configurationContext)
ClusteringAgent
setConfigurationContext in interface ClusteringAgentconfigurationContext - The configuration contextpublic boolean synchronizeAllMembers()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||