- All Superinterfaces:
- All Known Subinterfaces:
- All Known Implementing Classes:
public interface Cluster extends Contained
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
used when sending information in the Cluster and
ClusterInfo used for receiving information in the Cluster.
- Bip Thelin, Remy Maucherat
Method SummaryModifier and TypeMethodDescription
voidExecute a periodic task, such as reloading, etc.Create a new manager which will use this cluster to replicate its sessions.Return the name of the cluster that this Server is currently configured to operate within.
voidRegister a manager with the cluster.
voidRemoves a manager from the cluster
voidSet the name of the cluster to join, if no cluster with this name is present create one.
getClusterNameString getClusterName()Return the name of the cluster that this Server is currently configured to operate within.
- The name of the cluster associated with this server
(String clusterName)Set the name of the cluster to join, if no cluster with this name is present create one.
clusterName- The clustername to join
createManagerCreate a new manager which will use this cluster to replicate its sessions.
name- Name (key) of the application with which the manager is associated
- The newly created Manager instance
(Manager manager)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 manager is participating in the cluster.
(Manager manager)Removes a manager from the cluster
backgroundProcessvoid backgroundProcess()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.