|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.axis2.clustering.tribes.TribesClusterManager
public class TribesClusterManager
The main ClusterManager class for the Tribes based clustering implementation
| Constructor Summary | |
|---|---|
TribesClusterManager()
|
|
| Method Summary | |
|---|---|
void |
addLoadBalanceEventHandler(LoadBalanceEventHandler eventHandler,
java.lang.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)
|
ConfigurationManager |
getConfigurationManager()
|
ContextManager |
getContextManager()
|
java.util.Set<java.lang.String> |
getDomains()
Get all the domains that this ClusterManager belongs to |
LoadBalanceEventHandler |
getLoadBalanceEventHandler(java.lang.String applicationDomain)
Get the LoadBalanceEventHandler which corresponds to the applicationDomain
This will be valid only when this node is running in loadBalance mode |
java.util.List<Member> |
getMembers()
Get the list of members in a static group |
Parameter |
getParameter(java.lang.String name)
Method getParameter. |
java.util.ArrayList |
getParameters()
Gets all the parameters in a given description. |
void |
init()
Initialize the cluster. |
boolean |
isParameterLocked(java.lang.String parameterName)
Checks whether the parameter is locked at any level. |
void |
removeParameter(Parameter param)
|
void |
setConfigurationContext(ConfigurationContext configurationContext)
Set the system's configuration context. |
void |
setConfigurationManager(ConfigurationManager configurationManager)
Set the ConfigurationManager corresponding to this ClusterManager. |
void |
setContextManager(ContextManager contextManager)
Set the ContextManager corresponding to this ClusterManager. |
void |
setMembers(java.util.List<Member> members)
Set the static members of the cluster. |
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, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TribesClusterManager()
| Method Detail |
|---|
public void setMembers(java.util.List<Member> members)
ClusterManager
setMembers in interface ClusterManagermembers - Members to be addedpublic java.util.List<Member> getMembers()
ClusterManager
getMembers in interface ClusterManager
public void addLoadBalanceEventHandler(LoadBalanceEventHandler eventHandler,
java.lang.String applicationDomain)
ClusterManager
addLoadBalanceEventHandler in interface ClusterManagereventHandler - The load balance event handlerapplicationDomain - The application domain which is handled by the eventHandlerpublic LoadBalanceEventHandler getLoadBalanceEventHandler(java.lang.String applicationDomain)
ClusterManagerapplicationDomain
This will be valid only when this node is running in loadBalance mode
getLoadBalanceEventHandler in interface ClusterManagerapplicationDomain - The application domain to which the application nodes being
load balanced belong to
applicationDomainpublic java.util.Set<java.lang.String> getDomains()
ClusterManager
getDomains in interface ClusterManagerpublic ContextManager getContextManager()
getContextManager in interface ClusterManagerpublic ConfigurationManager getConfigurationManager()
getConfigurationManager in interface ClusterManager
public void init()
throws ClusteringFault
init in interface ClusterManagerClusteringFault - If initialization failspublic void setConfigurationManager(ConfigurationManager configurationManager)
ClusterManagerClusterBuilder, by
reading the "configurationManager" element in the axis2.xml
e.g.
setConfigurationManager in interface ClusterManagerconfigurationManager - The ConfigurationManager instancepublic void setContextManager(ContextManager contextManager)
ClusterManagerClusterBuilder, by
reading the "contextManager" element in the axis2.xml
e.g.
setContextManager in interface ClusterManagercontextManager - The ContextManager 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(java.lang.String name)
ParameterInclude
getParameter in interface ParameterIncludepublic java.util.ArrayList getParameters()
ParameterInclude
getParameters in interface ParameterIncludepublic boolean isParameterLocked(java.lang.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 ClusterManagerClusteringFault - If an error occurs while shutting downpublic void setConfigurationContext(ConfigurationContext configurationContext)
ClusterManager
setConfigurationContext in interface ClusterManagerconfigurationContext - The configuration contextpublic boolean synchronizeAllMembers()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||