Home » apache-tomcat-6.0.26-src » org.apache » catalina » ha » session » [javadoc | source]
org.apache.catalina.ha.session
public class: BackupManager [javadoc | source]
java.lang.Object
   org.apache.catalina.session.ManagerBase
      org.apache.catalina.session.StandardManager
         org.apache.catalina.ha.session.BackupManager

All Implemented Interfaces:
    MapOwner, ClusterManager, PropertyChangeListener, Lifecycle, Manager, MBeanRegistration

Field Summary
public static  Log log     
protected static  long DEFAULT_REPL_TIMEOUT     
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 
protected  CatalinaCluster cluster    A reference to the cluster 
Fields inherited from org.apache.catalina.session.StandardManager:
info,  lifecycle,  maxActiveSessions,  name,  pathname,  started,  rejectedSessions,  processingTime
Fields inherited from org.apache.catalina.session.ManagerBase:
log,  randomIS,  devRandomSource,  DEFAULT_ALGORITHM,  algorithm,  container,  digest,  distributable,  entropy,  maxInactiveInterval,  sessionIdLength,  name,  random,  randomClass,  sessionMaxAliveTime,  sessionAverageAliveTime,  expiredSessions,  sessions,  sessionCounter,  maxActive,  duplicates,  initialized,  processingTime,  processExpiresFrequency,  sm,  support,  domain,  oname,  mserver
Constructor:
 public BackupManager() 
Method from org.apache.catalina.ha.session.BackupManager Summary:
cloneFromTemplate,   createEmptySession,   doDomainReplication,   getActiveSessionsFull,   getClassLoaders,   getCluster,   getDistributable,   getExpireSessionsOnShutdown,   getInvalidatedSessions,   getMapName,   getMapSendOptions,   getName,   getReplicationStream,   getReplicationStream,   isDefaultMode,   isNotifyListenersOnReplication,   listSessionIdsFull,   messageDataReceived,   objectMadePrimay,   requestCompleted,   setCluster,   setDefaultMode,   setDistributable,   setDomainReplication,   setExpireSessionsOnShutdown,   setMapSendOptions,   setName,   setNotifyListenersOnReplication,   start,   stop,   unload
Methods from org.apache.catalina.session.StandardManager:
addLifecycleListener,   createSession,   doLoad,   doUnload,   file,   findLifecycleListeners,   getInfo,   getMaxActiveSessions,   getName,   getPathname,   getRejectedSessions,   load,   propertyChange,   removeLifecycleListener,   setContainer,   setMaxActiveSessions,   setPathname,   setRejectedSessions,   start,   stop,   unload
Methods from org.apache.catalina.session.ManagerBase:
add,   addPropertyChangeListener,   backgroundProcess,   changeSessionId,   createEmptySession,   createSession,   createSession,   destroy,   expireSession,   findSession,   findSessions,   generateSessionId,   getActiveSessions,   getAlgorithm,   getClassName,   getContainer,   getCreationTime,   getCreationTimestamp,   getDigest,   getDistributable,   getDomain,   getDuplicates,   getEngine,   getEntropy,   getExpiredSessions,   getInfo,   getJvmRoute,   getLastAccessedTime,   getLastAccessedTimestamp,   getMaxActive,   getMaxInactiveInterval,   getName,   getNewSession,   getObjectName,   getProcessExpiresFrequency,   getProcessingTime,   getRandom,   getRandomBytes,   getRandomClass,   getRandomFile,   getSession,   getSessionAttribute,   getSessionAverageAliveTime,   getSessionCounter,   getSessionIdLength,   getSessionMaxAliveTime,   init,   listSessionIds,   postDeregister,   postRegister,   preDeregister,   preRegister,   processExpires,   remove,   removePropertyChangeListener,   setAlgorithm,   setContainer,   setDistributable,   setDuplicates,   setEntropy,   setExpiredSessions,   setMaxActive,   setMaxInactiveInterval,   setProcessExpiresFrequency,   setProcessingTime,   setRandomClass,   setRandomFile,   setSessionAverageAliveTime,   setSessionCounter,   setSessionIdLength,   setSessionMaxAliveTime
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.catalina.ha.session.BackupManager Detail:
 public ClusterManager cloneFromTemplate() 
 public Session createEmptySession() 
 public boolean doDomainReplication() 
 public int getActiveSessionsFull() 
 public ClassLoader[] getClassLoaders() 
 public CatalinaCluster getCluster() 
 public boolean getDistributable() 
 public boolean getExpireSessionsOnShutdown() 
 public String[] getInvalidatedSessions() 
 public String getMapName() 
 public int getMapSendOptions() 
 public String getName() 
 public ReplicationStream getReplicationStream(byte[] data) throws IOException 
    Open Stream and use correct ClassLoader (Container) Switch ThreadClassLoader
 public ReplicationStream getReplicationStream(byte[] data,
    int offset,
    int length) throws IOException 
 public boolean isDefaultMode() 
 public boolean isNotifyListenersOnReplication() 
 public String listSessionIdsFull() 
 public  void messageDataReceived(ClusterMessage msg) 
 public  void objectMadePrimay(Object key,
    Object value) 
 public ClusterMessage requestCompleted(String sessionId) 
 public  void setCluster(CatalinaCluster cluster) 
 public  void setDefaultMode(boolean defaultMode) 
 public  void setDistributable(boolean dist) 
 public  void setDomainReplication(boolean sendClusterDomainOnly) 
 public  void setExpireSessionsOnShutdown(boolean expireSessionsOnShutdown) 
 public  void setMapSendOptions(int mapSendOptions) 
 public  void setName(String name) 
 public  void setNotifyListenersOnReplication(boolean notifyListenersOnReplication) 
 public  void start() throws LifecycleException 
    Prepare for the beginning of active use of the public methods of this component. This method should be called after configure(), and before any of the public methods of the component are utilized.
    Starts the cluster communication channel, this will connect with the other nodes in the cluster, and request the current session state to be transferred to this node.
 public  void stop() throws LifecycleException 
    Gracefully terminate the active use of the public methods of this component. This method should be the last one called on a given instance of this component.
    This will disconnect the cluster communication channel and stop the listener thread.
 public  void unload() throws IOException 
    Override persistence since they don't go hand in hand with replication for now.