|
||||||||||
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 ClusterManager
members
- 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 ClusterManager
eventHandler
- The load balance event handlerapplicationDomain
- The application domain which is handled by the eventHandlerpublic LoadBalanceEventHandler getLoadBalanceEventHandler(java.lang.String applicationDomain)
ClusterManager
applicationDomain
This will be valid only when this node is running in loadBalance mode
getLoadBalanceEventHandler
in interface ClusterManager
applicationDomain
- The application domain to which the application nodes being
load balanced belong to
applicationDomain
public java.util.Set<java.lang.String> getDomains()
ClusterManager
getDomains
in interface ClusterManager
public ContextManager getContextManager()
getContextManager
in interface ClusterManager
public ConfigurationManager getConfigurationManager()
getConfigurationManager
in interface ClusterManager
public void init() throws ClusteringFault
init
in interface ClusterManager
ClusteringFault
- If initialization failspublic void setConfigurationManager(ConfigurationManager configurationManager)
ClusterManager
ClusterBuilder
, by
reading the "configurationManager" element in the axis2.xml
e.g.
setConfigurationManager
in interface ClusterManager
configurationManager
- The ConfigurationManager instancepublic void setContextManager(ContextManager contextManager)
ClusterManager
ClusterBuilder
, by
reading the "contextManager" element in the axis2.xml
e.g.
setContextManager
in interface ClusterManager
contextManager
- The ContextManager 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(java.lang.String name)
ParameterInclude
getParameter
in interface ParameterInclude
public java.util.ArrayList getParameters()
ParameterInclude
getParameters
in interface ParameterInclude
public boolean isParameterLocked(java.lang.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 ClusterManager
ClusteringFault
- If an error occurs while shutting downpublic void setConfigurationContext(ConfigurationContext configurationContext)
ClusterManager
setConfigurationContext
in interface ClusterManager
configurationContext
- The configuration contextpublic boolean synchronizeAllMembers()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |