| org.apache.catalina.Cluster
Cluster | public interface Cluster (Code) | | A Cluster works as a Cluster client/server for the local host
Different Cluster implementations can be used to support different
ways to communicate within the Cluster. A Cluster implementation is
responsible for setting up a way to communicate within the Cluster
and also supply "ClientApplications" with ClusterSender
used when sending information in the Cluster and
ClusterInfo used for receiving information in the Cluster.
author: Bip Thelin author: Remy Maucherat author: Filip Hanik version: $Revision: 500684 $, $Date: 2007-01-28 00:27:18 +0100 (dim., 28 janv. 2007) $ |
backgroundProcess | public void backgroundProcess()(Code) | | Execute a periodic task, such as reloading, etc. This method will be
invoked inside the classloading context of this container. Unexpected
throwables will be caught and logged.
|
createManager | public Manager createManager(String name)(Code) | | Create a new manager which will use this cluster to replicate its
sessions.
Parameters: name - Name (key) of the application with which the manager isassociated |
getClusterName | public String getClusterName()(Code) | | Return the name of the cluster that this Server is currently
configured to operate within.
The name of the cluster associated with this server |
getContainer | public Container getContainer()(Code) | | Get the Container associated with our Cluster
The Container associated with our Cluster |
getInfo | public String getInfo()(Code) | | Return descriptive information about this Cluster implementation and
the corresponding version number, in the format
<description>/<version> .
|
getProtocol | public String getProtocol()(Code) | | Get the protocol used by the cluster.
The protocol |
registerManager | public void registerManager(Manager manager)(Code) | | Register a manager with the cluster. If the cluster is not responsible
for creating a manager, then the container will at least notify the
cluster that this mananger is participating in the cluster.
Parameters: manager - Manager |
removeManager | public void removeManager(Manager manager)(Code) | | Removes a manager from the cluster
Parameters: manager - Manager |
setClusterName | public void setClusterName(String clusterName)(Code) | | Set the name of the cluster to join, if no cluster with
this name is present create one.
Parameters: clusterName - The clustername to join |
setContainer | public void setContainer(Container container)(Code) | | Set the Container associated with our Cluster
Parameters: container - The Container to use |
setProtocol | public void setProtocol(String protocol)(Code) | | Set the protocol parameters.
Parameters: protocol - The protocol used by the cluster |
|
|