org.apache.catalina.ha.session
public class BackupManager extends StandardManager implements ClusterManager, AbstractReplicatedMap.MapOwner
Version: 1.0
| Field Summary | |
|---|---|
| protected CatalinaCluster | cluster
A reference to the cluster |
| protected static long | DEFAULT_REPL_TIMEOUT |
| static Log | log |
| protected boolean | mExpireSessionsOnShutdown Set to true if we don't want the sessions to expire on shutdown |
| protected String | name
The name of this manager |
| Constructor Summary | |
|---|---|
| BackupManager()
Constructor, just calls super()
| |
| Method Summary | |
|---|---|
| ClusterManager | cloneFromTemplate() |
| Session | createEmptySession() |
| boolean | doDomainReplication() |
| int | getActiveSessionsFull() |
| ClassLoader[] | getClassLoaders() |
| CatalinaCluster | getCluster() |
| boolean | getDistributable() |
| boolean | getExpireSessionsOnShutdown() |
| String[] | getInvalidatedSessions() |
| String | getMapName() |
| int | getMapSendOptions() |
| String | getName() |
| ReplicationStream | getReplicationStream(byte[] data)
Open Stream and use correct ClassLoader (Container) Switch
ThreadClassLoader
|
| ReplicationStream | getReplicationStream(byte[] data, int offset, int length) |
| boolean | isDefaultMode() |
| boolean | isNotifyListenersOnReplication() |
| String | listSessionIdsFull() |
| void | messageDataReceived(ClusterMessage msg) |
| void | objectMadePrimay(Object key, Object value) |
| ClusterMessage | requestCompleted(String sessionId) |
| void | setCluster(CatalinaCluster cluster) |
| void | setDefaultMode(boolean defaultMode) |
| void | setDistributable(boolean dist) |
| void | setDomainReplication(boolean sendClusterDomainOnly) |
| void | setExpireSessionsOnShutdown(boolean expireSessionsOnShutdown) |
| void | setMapSendOptions(int mapSendOptions) |
| void | setName(String name) |
| void | setNotifyListenersOnReplication(boolean notifyListenersOnReplication) |
| void | start()
Prepare for the beginning of active use of the public methods of this
component. |
| void | stop()
Gracefully terminate the active use of the public methods of this
component. |
| void | unload()
Override persistence since they don't go hand in hand with replication for now. |
Parameters: data
Returns: The object input stream
Throws: IOException
Returns: Returns the defaultMode.
Parameters: defaultMode The defaultMode to set.
Parameters: sendClusterDomainOnly The sendClusterDomainOnly to set.
configure(),
and before any of the public methods of the component are utilized.Throws: IllegalStateException if this component has already been started LifecycleException if this component detects a fatal error that prevents this component from being used
Throws: IllegalStateException if this component has not been started LifecycleException if this component detects a fatal error that needs to be reported