| org.apache.catalina.ha.ClusterManager
All known Subclasses: org.apache.catalina.ha.session.BackupManager, org.apache.catalina.ha.session.ClusterManagerBase, org.apache.catalina.ha.session.SimpleTcpReplicationManager,
ClusterManager | public interface ClusterManager extends Manager(Code) | | The common interface used by all cluster manager.
This is so that we can have a more pluggable way
of swapping session managers for different algorithms.
author: Filip Hanik author: Peter Rossbach |
doDomainReplication | public boolean doDomainReplication()(Code) | | Manager send only to same cluster domain. since: 5.5.10 |
getInvalidatedSessions | public String[] getInvalidatedSessions()(Code) | | When the manager expires session not tied to a request.
The cluster will periodically ask for a list of sessions
that should expire and that should be sent across the wire.
String[] The invalidated sessions |
getName | public String getName()(Code) | | Return the name of the manager, at host /context name and at engine hostname+/context.
String since: 5.5.10 |
isDefaultMode | public boolean isDefaultMode()(Code) | | since: 5.5.10 |
isNotifyListenersOnReplication | public boolean isNotifyListenersOnReplication()(Code) | | |
messageDataReceived | public void messageDataReceived(ClusterMessage msg)(Code) | | A message was received from another node, this
is the callback method to implement if you are interested in
receiving replication messages.
Parameters: msg - - the message received. |
requestCompleted | public ClusterMessage requestCompleted(String sessionId)(Code) | | When the request has been completed, the replication valve
will notify the manager, and the manager will decide whether
any replication is needed or not.
If there is a need for replication, the manager will
create a session message and that will be replicated.
The cluster determines where it gets sent.
Parameters: sessionId - - the sessionId that just completed. a SessionMessage to be sent. |
setDefaultMode | public void setDefaultMode(boolean mode)(Code) | | Parameters: mode - The mode since: 5.5.10 |
setDomainReplication | public void setDomainReplication(boolean domainReplication)(Code) | | Parameters: sendClusterDomainOnly - Flag value. since: 5.5.10 |
setName | public void setName(String name)(Code) | | Set the name of the manager, at host /context name and at engine hostname+/context
Parameters: name - since: 5.5.10 |
|
|