org.codehaus.wadi.impl
Class DistributableManager
java.lang.Object
org.codehaus.wadi.impl.StandardManager
org.codehaus.wadi.impl.DistributableManager
- All Implemented Interfaces:
- Config, ContextualiserConfig, DistributableContextualiserConfig, DistributableSessionConfig, Lifecycle, ReplicableSessionConfig, RouterConfig, SessionConfig, StreamerConfig
- Direct Known Subclasses:
- ClusteredManager
- public class DistributableManager
- extends StandardManager
- implements ReplicableSessionConfig, DistributableContextualiserConfig, StreamerConfig
- Author:
- jules
A StandardManager that knows how to Serialise HttpSessions.
| Fields inherited from class org.codehaus.wadi.impl.StandardManager |
_acceptingSessions, _attributeListeners, _attributesFactory, _config, _contextualiser, _errorCounter, _errorIfSessionNotAcquired, _filter, _log, _map, _maxInactiveInterval, _router, _sessionIdFactory, _sessionListeners, _sessionPool, _sessionWrapperFactory, _started, _timer, _valuePool |
|
Constructor Summary |
DistributableManager(SessionPool sessionPool,
AttributesFactory attributesFactory,
ValuePool valuePool,
SessionWrapperFactory sessionWrapperFactory,
SessionIdFactory sessionIdFactory,
Contextualiser contextualiser,
Map map,
Router router,
boolean errorIfSessionNotAcquired,
Streamer streamer,
boolean accessOnLoad,
ReplicaterFactory replicaterFactory)
|
| Methods inherited from class org.codehaus.wadi.impl.StandardManager |
aboutToStop, create, destroy, destroy, expire, getAcceptingSessions, getAttributeListeners, getAttributesFactory, getContextualiser, getErrorCount, getErrorIfSessionNotAcquired, getEvictionImmoter, getHttpPort, getManager, getMaxInactiveInterval, getRouter, getServletContext, getSessionCookieDomain, getSessionCookieName, getSessionCookiePath, getSessionIdFactory, getSessionListeners, getSessionPool, getSessionUrlParamName, getSessionWrapperFactory, getTimer, getValuePool, incrementErrorCounter, isStarted, notifySessionCreation, notifySessionDeletion, notifySessionDestruction, notifySessionInsertion, notifySessionRelocation, setAttributelisteners, setFilter, setLastAccessedTime, setMaxInactiveInterval, setMaxInactiveInterval, setSessionListeners, start, stop, validateSessionName |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.codehaus.wadi.SessionConfig |
destroy, getAttributeListeners, getAttributesFactory, getMaxInactiveInterval, getRouter, getServletContext, getSessionIdFactory, getSessionListeners, getSessionWrapperFactory, getValuePool, setLastAccessedTime, setMaxInactiveInterval |
_helpers
protected final List _helpers
_shuttingDown
protected final SynchronizedBoolean _shuttingDown
_streamer
protected final Streamer _streamer
_accessOnLoad
protected final boolean _accessOnLoad
_replicaterFactory
protected final ReplicaterFactory _replicaterFactory
_classLoader
protected ClassLoader _classLoader
DistributableManager
public DistributableManager(SessionPool sessionPool,
AttributesFactory attributesFactory,
ValuePool valuePool,
SessionWrapperFactory sessionWrapperFactory,
SessionIdFactory sessionIdFactory,
Contextualiser contextualiser,
Map map,
Router router,
boolean errorIfSessionNotAcquired,
Streamer streamer,
boolean accessOnLoad,
ReplicaterFactory replicaterFactory)
init
public void init(ManagerConfig config)
- Overrides:
init in class StandardManager
getClassLoader
public ClassLoader getClassLoader()
- Specified by:
getClassLoader in interface StreamerConfig
registerHelper
public void registerHelper(Class type,
ValueHelper helper)
- Register a ValueHelper for a particular type. During [de]serialisation
Objects flowing in/out of the persistance medium will be passed through this
Helper, which will have the opportunity to convert them between Serializable
and non-Serializable representations. Helpers will be returned in their registration
order, so this is significant (as an Object may implement more than one interface
or registered type).
- Parameters:
type - helper -
deregisterHelper
public boolean deregisterHelper(Class type)
findHelper
public ValueHelper findHelper(Class type)
- Specified by:
findHelper in interface DistributableSessionConfig
getHttpSessionAttributeListenersRegistered
public boolean getHttpSessionAttributeListenersRegistered()
- Specified by:
getHttpSessionAttributeListenersRegistered in interface DistributableSessionConfig
getDistributable
public boolean getDistributable()
- Overrides:
getDistributable in class StandardManager
getAccessOnLoad
public boolean getAccessOnLoad()
- Specified by:
getAccessOnLoad in interface DistributableContextualiserConfig
getShuttingDown
public SynchronizedBoolean getShuttingDown()
- Specified by:
getShuttingDown in interface DistributableContextualiserConfig
getStreamer
public Streamer getStreamer()
- Specified by:
getStreamer in interface DistributableSessionConfig
getReplicater
public Replicater getReplicater()
- Specified by:
getReplicater in interface ReplicableSessionConfig
Copyright © 2004-2008 Core Developers Network Ltd.. All Rights Reserved.