Interface CatalinaCluster
- All Known Implementing Classes:
- SimpleTcpCluster
A CatalinaCluster interface allows to plug in and out the different cluster implementations
- 
Method SummaryModifier and TypeMethodDescriptionvoidaddClusterListener(ClusterListener listener) Add cluster message listener and register cluster to this listener.voidAdd cluster valve.getManager(String name) Get ManagergetManagerName(String name, Manager manager) Get a new cluster name for a manager.Member[]Valve[]booleanvoidremoveClusterListener(ClusterListener listener) Remove message listener and deregister Cluster from listener.voidsend(ClusterMessage msg) Sends a message to all the members in the clustervoidsend(ClusterMessage msg, Member dest) Sends a message to a specific member in the cluster.voidsend(ClusterMessage msg, Member dest, int sendOptions) Sends a message with the specified sendOptions to a specific member in the cluster.voidsetChannel(Channel channel) Set the channel associated with the cluster.voidsetClusterDeployer(ClusterDeployer deployer) Set a new Deployer, must be set before the cluster started.Methods inherited from interface org.apache.catalina.ClusterbackgroundProcess, createManager, getClusterName, registerManager, removeManager, setClusterNameMethods inherited from interface org.apache.catalina.ContainedgetContainer, setContainer
- 
Method Details- 
sendSends a message to all the members in the cluster- Parameters:
- msg- ClusterMessage
 
- 
sendSends a message to a specific member in the cluster.- Parameters:
- msg- ClusterMessage
- dest- Member
 
- 
sendSends a message with the specified sendOptions to a specific member in the cluster.- Parameters:
- msg- ClusterMessage
- dest- Member
- sendOptions- sendOptions
 
- 
hasMembersboolean hasMembers()- Returns:
- trueif the cluster has members.
 
- 
getMembersMember[] getMembers()- Returns:
- an array containing all the members currently participating in the cluster.
 
- 
getLocalMemberMember getLocalMember()- Returns:
- the member that represents this node.
 
- 
addValveAdd cluster valve. Cluster Valves are only add to container when cluster is started.- Parameters:
- valve- The new cluster Valve.
 
- 
addClusterListenerAdd cluster message listener and register cluster to this listener.- Parameters:
- listener- The new listener
 
- 
removeClusterListenerRemove message listener and deregister Cluster from listener.- Parameters:
- listener- The listener to remove
 
- 
setClusterDeployerSet a new Deployer, must be set before the cluster started.- Parameters:
- deployer- The associated deployer
 
- 
getClusterDeployerClusterDeployer getClusterDeployer()- Returns:
- the current Deployer
 
- 
getManagersMap<String,ClusterManager> getManagers()- Returns:
- The map of managers
 
- 
getManager
- 
getManagerName
- 
getValvesValve[] getValves()- Returns:
- the current cluster valves
 
- 
setChannelSet the channel associated with the cluster.- Parameters:
- channel- the channel
 
- 
getChannelChannel getChannel()- Returns:
- the channel associated with the cluster
 
 
-