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
Fields inherited from interface sun.misc.SignalHandler |
SIG_DFL, SIG_IGN |
Method Summary |
void |
handle(sun.misc.Signal sig)
|
boolean |
init(Server server,
String prefix)
Initializes the handler. |
Methods inherited from interface sunlabs.brazil.server.Handler |
respond |
SerializableCacheManager
public SerializableCacheManager()
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 Handler
s 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