Package org.apache.catalina.ha
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) voidgetManager(String name) Get ManagergetManagerName(String name, Manager manager) Get a new cluster name for a manager.Member[]Valve[]booleanvoidremoveClusterListener(ClusterListener 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) voidsetClusterDeployer(ClusterDeployer deployer) 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.
 
- 
addValve
- 
addClusterListener
- 
removeClusterListener
- 
setClusterDeployer
- 
getClusterDeployerClusterDeployer getClusterDeployer()
- 
getManagersMap<String,ClusterManager> getManagers()- Returns:
- The map of managers
 
- 
getManagerGet Manager- Parameters:
- name- The manager name
- Returns:
- The manager
 
- 
getManagerNameGet a new cluster name for a manager.- Parameters:
- name- Override name (optional)
- manager- The manager
- Returns:
- the manager name in the cluster
 
- 
getValvesValve[] getValves()
- 
setChannel
- 
getChannelChannel getChannel()
 
-