sunlabs.brazil.session
Class SerializableCacheManager

java.lang.Object
  |
  +--sunlabs.brazil.session.SessionManager
        |
        +--sunlabs.brazil.session.CacheManager
              |
              +--sunlabs.brazil.session.SerializableCacheManager
All Implemented Interfaces:
Handler, Serializable, sun.misc.SignalHandler

public class SerializableCacheManager
extends CacheManager
implements Handler, Serializable, sun.misc.SignalHandler

Serializable version of the CacheManager. Saves out the pool of hashtables upon exit, restoring them on startup. This provides the same capability as SerialPersist does for the default session manager.

See Also:
Serialized Form

Field Summary
 
Fields inherited from interface sun.misc.SignalHandler
SIG_DFL, SIG_IGN
 
Constructor Summary
SerializableCacheManager()
           
 
Method Summary
 void handle(sun.misc.Signal sig)
           
 boolean init(Server server, String prefix)
          Initializes the handler.
 
Methods inherited from class sunlabs.brazil.session.CacheManager
removeObj, respond
 
Methods inherited from class sunlabs.brazil.session.SessionManager
get, getSession, put, remove, setSessionManager
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface sunlabs.brazil.server.Handler
respond
 

Constructor Detail

SerializableCacheManager

public SerializableCacheManager()
Method Detail

init

public boolean init(Server server,
                    String prefix)
Description copied from interface: Handler
Initializes the handler.

Specified by:
init in interface Handler
Overrides:
init in class CacheManager
Parameters:
server - The HTTP server that created this Handler. Typical Handlers will use Server.props to obtain run-time configuration information.
prefix - The handlers name. The string this Handler may prepend to all of the keys that it uses to extract configuration information from Server.props. This is set (by the Server and ChainHandler) to help avoid configuration parameter namespace collisions.
Returns:
true if this Handler initialized successfully, false otherwise. If false is returned, this Handler should not be used.

handle

public void handle(sun.misc.Signal sig)
Specified by:
handle in interface sun.misc.SignalHandler

Version 2.1, Generated 12/30/04
Copyright (c) 2001-2004, Sun Microsystems.