FileDocCategorySizeDatePackage
CatalinaCluster.javaAPI DocApache Tomcat 6.0.143782Fri Jul 20 04:20:34 BST 2007org.apache.catalina.ha

CatalinaCluster

public interface CatalinaCluster implements org.apache.catalina.Cluster
A CatalinaCluster interface allows to plug in and out the different cluster implementations
author
Filip Hanik
version
$Revision: 467222 $, $Date: 2006-10-24 05:17:11 +0200 (mar., 24 oct. 2006) $

Fields Summary
public String
info
Descriptive information about this component implementation.
Constructors Summary
Methods Summary
public voidaddClusterListener(ClusterListener listener)

public voidaddValve(org.apache.catalina.Valve valve)

public org.apache.catalina.tribes.ChannelgetChannel()

public ClusterDeployergetClusterDeployer()

public org.apache.catalina.tribes.MembergetLocalMember()
Return the member that represents this node.

return
Member

public org.apache.juli.logging.LoggetLogger()
Returns the associates logger with this cluster.

return
Log

public org.apache.catalina.ManagergetManager(java.lang.String name)

public java.lang.StringgetManagerName(java.lang.String name, org.apache.catalina.Manager manager)

public java.util.MapgetManagers()

return
The map of managers

public org.apache.catalina.tribes.Member[]getMembers()
Returns all the members currently participating in the cluster.

return
Member[]

public org.apache.catalina.Valve[]getValves()

public booleanhasMembers()
Returns that cluster has members.

public voidremoveClusterListener(ClusterListener listener)

public voidsend(ClusterMessage msg)
Sends a message to all the members in the cluster

param
msg ClusterMessage

public voidsend(ClusterMessage msg, org.apache.catalina.tribes.Member dest)
Sends a message to a specific member in the cluster.

param
msg ClusterMessage
param
dest Member

public voidsendClusterDomain(ClusterMessage msg)
Sends a message to a all members at local cluster domain

param
msg ClusterMessage

public voidsetChannel(org.apache.catalina.tribes.Channel channel)

public voidsetClusterDeployer(ClusterDeployer deployer)

public voidstart()
Start the cluster, the owning container will invoke this

throws
Exception - if failure to start cluster

public voidstop()
Stops the cluster, the owning container will invoke this

throws
LifecycleException