org.apache.geronimo.clustering.wadi
Class BasicWADISessionManager

java.lang.Object
  extended by org.apache.geronimo.clustering.wadi.BasicWADISessionManager
All Implemented Interfaces:
SessionManager, WADISessionManager, GBeanLifecycle

public class BasicWADISessionManager
extends Object
implements GBeanLifecycle, SessionManager, WADISessionManager


Field Summary
static String GBEAN_ATTR_WADI_CONFIG_INFO
           
static GBeanInfo GBEAN_INFO
           
static String GBEAN_REF_BACKING_STRATEGY_FACTORY
           
static String GBEAN_REF_CLUSTER
           
 
Constructor Summary
BasicWADISessionManager(ClassLoader cl, WADISessionManagerConfigInfo configInfo, WADICluster cluster, org.codehaus.wadi.replication.strategy.BackingStrategyFactory backingStrategyFactory)
           
 
Method Summary
 Session createSession(String sessionId)
           
 void doFail()
           
 void doStart()
           
 void doStop()
           
static GBeanInfo getGBeanInfo()
           
 org.codehaus.wadi.core.manager.Manager getManager()
           
 Node getNode()
           
 Set<Node> getRemoteNodes()
           
 void registerListener(SessionListener listener)
           
 void unregisterListener(SessionListener listener)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

GBEAN_INFO

public static final GBeanInfo GBEAN_INFO

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
Constructor Detail

BasicWADISessionManager

public BasicWADISessionManager(ClassLoader cl,
                               WADISessionManagerConfigInfo configInfo,
                               WADICluster cluster,
                               org.codehaus.wadi.replication.strategy.BackingStrategyFactory backingStrategyFactory)
Method Detail

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

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

getGBeanInfo

public static GBeanInfo getGBeanInfo()


Copyright © 2003-2010 The Apache Geronimo development community. All Rights Reserved.