|
||||||||||
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 ClusteringAgent
members
- Members to be addedpublic List<Member> getMembers()
ClusteringAgent
getMembers
in interface ClusteringAgent
public void addGroupManagementAgent(GroupManagementAgent agent, String applicationDomain)
ClusteringAgent
addGroupManagementAgent
in interface ClusteringAgent
agent
- The load balance event handlerapplicationDomain
- The application domain which is handled by the eventHandlerpublic GroupManagementAgent getGroupManagementAgent(String applicationDomain)
ClusteringAgent
applicationDomain
This will be valid only when this node is running in loadBalance mode
getGroupManagementAgent
in interface ClusteringAgent
applicationDomain
- The application domain to which the application nodes being
load balanced belong to
applicationDomain
public Set<String> getDomains()
ClusteringAgent
getDomains
in interface ClusteringAgent
public StateManager getStateManager()
getStateManager
in interface ClusteringAgent
public NodeManager getNodeManager()
getNodeManager
in interface ClusteringAgent
public void init() throws ClusteringFault
init
in interface ClusteringAgent
ClusteringFault
- If initialization failspublic void finalize()
ClusteringAgent
finalize
in interface ClusteringAgent
finalize
in class Object
public List<ClusteringCommand> sendMessage(ClusteringMessage message, boolean isRpcMessage) throws ClusteringFault
ClusteringAgent
sendMessage
in interface ClusteringAgent
message
- 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)
ClusteringAgent
ClusterBuilder
, by
reading the "configurationManager" element in the axis2.xml
e.g.
setNodeManager
in interface ClusteringAgent
nodeManager
- The NodeManager instancepublic void setStateManager(StateManager stateManager)
ClusteringAgent
ClusterBuilder
, by
reading the "contextManager" element in the axis2.xml
e.g.
setStateManager
in interface ClusteringAgent
stateManager
- The StateManager instancepublic void addParameter(Parameter param) throws AxisFault
ParameterInclude
addParameter
in interface ParameterInclude
AxisFault
public void deserializeParameters(org.apache.axiom.om.OMElement parameterElement) throws AxisFault
deserializeParameters
in interface ParameterInclude
AxisFault
public Parameter getParameter(String name)
ParameterInclude
getParameter
in interface ParameterInclude
public ArrayList getParameters()
ParameterInclude
getParameters
in interface ParameterInclude
public boolean isParameterLocked(String parameterName)
ParameterInclude
isParameterLocked
in interface ParameterInclude
public void removeParameter(Parameter param) throws AxisFault
removeParameter
in interface ParameterInclude
AxisFault
public void shutdown() throws ClusteringFault
shutdown
in interface ClusteringAgent
ClusteringFault
- If an error occurs while shutting downpublic void setConfigurationContext(ConfigurationContext configurationContext)
ClusteringAgent
setConfigurationContext
in interface ClusteringAgent
configurationContext
- The configuration contextpublic boolean synchronizeAllMembers()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |