|
Apache Tomcat 6.0.53 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ClusterManager
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.
Method Summary | |
---|---|
ClusterManager |
cloneFromTemplate()
|
boolean |
doDomainReplication()
|
CatalinaCluster |
getCluster()
|
java.lang.String[] |
getInvalidatedSessions()
When the manager expires session not tied to a request. |
java.lang.String |
getName()
Return the name of the manager, at host /context name and at engine hostname+/context. |
ReplicationStream |
getReplicationStream(byte[] data)
|
ReplicationStream |
getReplicationStream(byte[] data,
int offset,
int length)
|
boolean |
isDefaultMode()
|
boolean |
isNotifyListenersOnReplication()
|
void |
messageDataReceived(ClusterMessage msg)
A message was received from another node, this is the callback method to implement if you are interested in receiving replication messages. |
ClusterMessage |
requestCompleted(java.lang.String sessionId)
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. |
void |
setCluster(CatalinaCluster cluster)
|
void |
setDefaultMode(boolean mode)
|
void |
setDomainReplication(boolean domainReplication)
|
void |
setName(java.lang.String name)
Set the name of the manager, at host /context name and at engine hostname+/context |
Method Detail |
---|
void messageDataReceived(ClusterMessage msg)
msg
- - the message received.ClusterMessage requestCompleted(java.lang.String sessionId)
sessionId
- - the sessionId that just completed.
java.lang.String[] getInvalidatedSessions()
java.lang.String getName()
void setName(java.lang.String name)
name
- CatalinaCluster getCluster()
void setCluster(CatalinaCluster cluster)
boolean doDomainReplication()
void setDomainReplication(boolean domainReplication)
domainReplication
- Flag value.void setDefaultMode(boolean mode)
mode
- The modeboolean isDefaultMode()
ReplicationStream getReplicationStream(byte[] data) throws java.io.IOException
java.io.IOException
ReplicationStream getReplicationStream(byte[] data, int offset, int length) throws java.io.IOException
java.io.IOException
boolean isNotifyListenersOnReplication()
ClusterManager cloneFromTemplate()
|
Apache Tomcat 6.0.53 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |