org.apache.geronimo.clustering.wadi
Class BasicWADISessionManager
java.lang.Object
org.apache.geronimo.clustering.wadi.BasicWADISessionManager
- All Implemented Interfaces:
- SessionManager, WADISessionManager, GBeanLifecycle
public class BasicWADISessionManager
- extends Object
- implements GBeanLifecycle, SessionManager, WADISessionManager
- Version:
- $Rev$ $Date$
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
cl
protected final ClassLoader cl
configInfo
protected final WADISessionManagerConfigInfo configInfo
backingStrategyFactory
protected final org.codehaus.wadi.replication.strategy.BackingStrategyFactory backingStrategyFactory
GBEAN_ATTR_WADI_CONFIG_INFO
public static final String GBEAN_ATTR_WADI_CONFIG_INFO
- See Also:
- Constant Field Values
GBEAN_REF_CLUSTER
public static final String GBEAN_REF_CLUSTER
- See Also:
- Constant Field Values
GBEAN_REF_BACKING_STRATEGY_FACTORY
public static final String GBEAN_REF_BACKING_STRATEGY_FACTORY
- See Also:
- Constant Field Values
GBEAN_REF_SERVICE_HOLDERS
public static final String GBEAN_REF_SERVICE_HOLDERS
- See Also:
- Constant Field Values
BasicWADISessionManager
public BasicWADISessionManager(@ParamSpecial(type=classLoader)
ClassLoader cl,
@ParamAttribute(name="wadiConfigInfo")
WADISessionManagerConfigInfo configInfo,
@ParamReference(name="Cluster")
WADICluster cluster,
@ParamReference(name="BackingStrategyFactory")
org.codehaus.wadi.replication.strategy.BackingStrategyFactory backingStrategyFactory,
@ParamReference(name="ServiceHolders")
Collection<ClusteredServiceHolder> serviceHolders)
doStart
public void doStart()
throws Exception
- Specified by:
doStart in interface GBeanLifecycle
- Throws:
Exception
doStop
public void doStop()
throws Exception
- Specified by:
doStop in interface GBeanLifecycle
- Throws:
Exception
doFail
public void doFail()
- Specified by:
doFail in interface GBeanLifecycle
createSession
public Session createSession(String sessionId)
throws SessionAlreadyExistException
- Specified by:
createSession in interface SessionManager
- Throws:
SessionAlreadyExistException
getManager
public org.codehaus.wadi.core.manager.Manager getManager()
- Specified by:
getManager in interface WADISessionManager
getCluster
public Cluster getCluster()
- Specified by:
getCluster in interface SessionManager
getNode
public Node getNode()
- Specified by:
getNode in interface SessionManager
getRemoteNodes
public Set<Node> getRemoteNodes()
- Specified by:
getRemoteNodes in interface SessionManager
registerListener
public void registerListener(SessionListener listener)
- Specified by:
registerListener in interface SessionManager
unregisterListener
public void unregisterListener(SessionListener listener)
- Specified by:
unregisterListener in interface SessionManager
registerSessionManagerListener
public void registerSessionManagerListener(SessionManagerListener listener)
- Specified by:
registerSessionManagerListener in interface SessionManager
unregisterSessionManagerListener
public void unregisterSessionManagerListener(SessionManagerListener listener)
- Specified by:
unregisterSessionManagerListener in interface SessionManager
getServiceSpace
public org.codehaus.wadi.servicespace.ServiceSpace getServiceSpace()
- Specified by:
getServiceSpace in interface WADISessionManager
newStackContext
protected org.codehaus.wadi.core.assembler.StackContext newStackContext(org.codehaus.wadi.group.Dispatcher underlyingDisp,
org.codehaus.wadi.servicespace.ServiceSpaceName serviceSpaceName)
newAOPStackContext
protected org.codehaus.wadi.aop.replication.AOPStackContext newAOPStackContext(org.codehaus.wadi.group.Dispatcher underlyingDisp,
org.codehaus.wadi.servicespace.ServiceSpaceName serviceSpaceName)
registerClusteredServices
protected void registerClusteredServices()
throws org.codehaus.wadi.servicespace.ServiceAlreadyRegisteredException
- Throws:
org.codehaus.wadi.servicespace.ServiceAlreadyRegisteredException
mapToNodes
protected Set<Node> mapToNodes(Set<org.codehaus.wadi.group.Peer> peers)
throws AssertionError
- Throws:
AssertionError
mapToNode
protected Node mapToNode(org.codehaus.wadi.group.Peer peer)
throws AssertionError
- Throws:
AssertionError
notifyInboundSessionMigration
protected void notifyInboundSessionMigration(org.codehaus.wadi.core.session.Session session)
notifyOutboundSessionMigration
protected void notifyOutboundSessionMigration(org.codehaus.wadi.core.session.Session session)
notifySessionDestruction
protected void notifySessionDestruction(org.codehaus.wadi.core.session.Session session)
Copyright © 2003-2009 The Apache Geronimo development community. All Rights Reserved.