|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.geronimo.clustering.wadi.BasicWADISessionManager
public class BasicWADISessionManager
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)
Creates a Session having the specified sessionId. |
void |
doFail()
Fails the GBean. |
void |
doStart()
Starts the GBean. |
void |
doStop()
Stops the target. |
static GBeanInfo |
getGBeanInfo()
|
org.codehaus.wadi.core.manager.Manager |
getManager()
|
Node |
getNode()
Gets the Node hosting this local SessionManager. |
Set<Node> |
getRemoteNodes()
Gets the remote Nodes hosting the corresponding remote SessionManagers. |
void |
registerListener(SessionListener listener)
Registers a migration listener. |
void |
unregisterListener(SessionListener listener)
Unregisters a migration listener. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final GBeanInfo GBEAN_INFO
public static final String GBEAN_ATTR_WADI_CONFIG_INFO
public static final String GBEAN_REF_CLUSTER
public static final String GBEAN_REF_BACKING_STRATEGY_FACTORY
Constructor Detail |
---|
public BasicWADISessionManager(ClassLoader cl, WADISessionManagerConfigInfo configInfo, WADICluster cluster, org.codehaus.wadi.replication.strategy.BackingStrategyFactory backingStrategyFactory)
Method Detail |
---|
public void doStart() throws Exception
GBeanLifecycle
doStart
in interface GBeanLifecycle
Exception
- if the target failed to start; this will cause a transition to the failed statepublic void doStop() throws Exception
GBeanLifecycle
doStop
in interface GBeanLifecycle
Exception
- if the target failed to stop; this will cause a transition to the failed statepublic void doFail()
GBeanLifecycle
doFail
in interface GBeanLifecycle
public Session createSession(String sessionId) throws SessionAlreadyExistException
SessionManager
createSession
in interface SessionManager
sessionId
- Unique identifier of the Session instance.
SessionAlreadyExistException
- Thrown when the provided sessiondId already exists in the Session space
of this local SessionManager and its associated remote SessionManagers.public org.codehaus.wadi.core.manager.Manager getManager()
getManager
in interface WADISessionManager
public Node getNode()
SessionManager
getNode
in interface SessionManager
public Set<Node> getRemoteNodes()
SessionManager
getRemoteNodes
in interface SessionManager
public void registerListener(SessionListener listener)
SessionManager
registerListener
in interface SessionManager
public void unregisterListener(SessionListener listener)
SessionManager
unregisterListener
in interface SessionManager
public static GBeanInfo getGBeanInfo()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |