public interface ClusterManager extends Manager
Modifier and Type | Method and Description |
---|---|
ClusterManager |
cloneFromTemplate() |
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)
Open stream and use correct ClassLoader (Container), switching thread
context class loader.
|
ReplicationStream |
getReplicationStream(byte[] data,
int offset,
int length) |
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 |
setName(java.lang.String name)
Set the name of the manager, at host /context name and at engine hostname+/context
|
add, addPropertyChangeListener, backgroundProcess, changeSessionId, changeSessionId, createEmptySession, createSession, findSession, findSessions, getActiveSessions, getContainer, getContext, getDistributable, getExpiredSessions, getMaxActive, getMaxInactiveInterval, getRejectedSessions, getSessionAverageAliveTime, getSessionCounter, getSessionCreateRate, getSessionExpireRate, getSessionIdGenerator, getSessionIdLength, getSessionMaxAliveTime, load, remove, remove, removePropertyChangeListener, setContainer, setContext, setDistributable, setExpiredSessions, setMaxActive, setMaxInactiveInterval, setSessionCounter, setSessionIdGenerator, setSessionIdLength, setSessionMaxAliveTime, unload, willAttributeDistribute
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)
ReplicationStream getReplicationStream(byte[] data) throws java.io.IOException
data
- The datajava.io.IOException
- An error occurredReplicationStream getReplicationStream(byte[] data, int offset, int length) throws java.io.IOException
java.io.IOException
boolean isNotifyListenersOnReplication()
ClusterManager cloneFromTemplate()
Copyright © 2000-2018 Apache Software Foundation. All Rights Reserved.