|
||||||||||
PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.mx.util.JBossNotificationBroadcasterSupport (src)
org.jboss.system.ServiceMBeanSupport (src)
org.jboss.ejb.plugins.StatefulHASessionPersistenceManager
This persistence manager work with an underlying HASessionState to get clustered state.
HASessionState
(src) ,
HASessionStateImpl
(src) Field Summary |
Fields inherited from class org.jboss.system.ServiceMBeanSupport (src) |
log, server, SERVICE_CONTROLLER_SIG, serviceName |
Fields inherited from interface org.jboss.system.ServiceMBean (src) |
CREATE_EVENT, CREATED, DESTROY_EVENT, DESTROYED, FAILED, REGISTERED, START_EVENT, STARTED, STARTING, states, STOP_EVENT, STOPPED, STOPPING, UNREGISTERED |
Constructor Summary | |
StatefulHASessionPersistenceManager()
Creates new StatefulHASessionPersistenceManager |
Method Summary | |
void |
activateSession(StatefulSessionEnterpriseContext (src) ctx)
Activate the SFSB for the given context. |
void |
createdSession(StatefulSessionEnterpriseContext (src) ctx)
Called after the SFSB's ejbCreate method has been successfully invoked to allow the PM to perform an post creation setup. |
java.lang.Object |
createId(StatefulSessionEnterpriseContext (src) ctx)
Create a unique identifier for the given SFSB context. |
protected void |
createService()
Sub-classes should override this method to provide custum 'create' logic. |
void |
newSessionStateTopology(HAPartition (src) haSubPartition)
|
void |
passivateSession(StatefulSessionEnterpriseContext (src) ctx)
Passivate the SFSB for the given context. |
void |
removePassivated(java.lang.Object key)
Remove any passivated state for the given SFSB identifier. |
void |
removeSession(StatefulSessionEnterpriseContext (src) ctx)
Remove the SFSB for the given context. |
void |
sessionExternallyModified(PackagedSession (src) session)
|
void |
setContainer(Container (src) c)
This callback is set by the container so that the plugin may access it |
protected void |
stopService()
Sub-classes should override this method to provide custum 'stop' logic. |
void |
synchroSession(StatefulSessionEnterpriseContext (src) ctx)
|
Methods inherited from class org.jboss.system.ServiceMBeanSupport (src) |
create, destroy, destroyService, getLog, getName, getNextNotificationSequenceNumber, getObjectName, getServer, getServiceName, getState, getStateString, jbossInternalCreate, jbossInternalDescription, jbossInternalDestroy, jbossInternalLifecycle, jbossInternalStart, jbossInternalStop, postDeregister, postRegister, preDeregister, preRegister, start, startService, stop |
Methods inherited from class org.jboss.mx.util.JBossNotificationBroadcasterSupport (src) |
addNotificationListener, getNotificationInfo, handleNotification, removeNotificationListener, removeNotificationListener, sendNotification |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.jboss.system.Service (src) |
create, destroy, start, stop |
Constructor Detail |
public StatefulHASessionPersistenceManager()
Method Detail |
public void setContainer(Container (src) c)
ContainerPlugin (src)
setContainer
in interface ContainerPlugin (src)
c
- The container using this plugin. This may be null if the
plugin is being disassociated from a container.protected void createService() throws java.lang.Exception
ServiceMBeanSupport (src)
This method is empty, and is provided for convenience when concrete service classes do not need to perform anything specific for this state change.
createService
in class ServiceMBeanSupport (src)
java.lang.Exception
protected void stopService()
ServiceMBeanSupport (src)
This method is empty, and is provided for convenience when concrete service classes do not need to perform anything specific for this state change.
stopService
in class ServiceMBeanSupport (src)
public java.lang.Object createId(StatefulSessionEnterpriseContext (src) ctx) throws java.lang.Exception
StatefulSessionPersistenceManager (src)
createId
in interface StatefulSessionPersistenceManager (src)
ctx
- The context of the SFSB to create an unique identifier for.
java.lang.Exception
- Failed to create unique identifier.public void createdSession(StatefulSessionEnterpriseContext (src) ctx) throws java.lang.Exception
StatefulSessionPersistenceManager (src)
createdSession
in interface StatefulSessionPersistenceManager (src)
ctx
- The context of the SFSB which was created.
java.lang.Exception
public void activateSession(StatefulSessionEnterpriseContext (src) ctx) throws java.rmi.RemoteException
StatefulSessionPersistenceManager (src)
Implementation is responsible for invoking the bean's
SessionBean.ejbActivate()
method.
activateSession
in interface StatefulSessionPersistenceManager (src)
ctx
- The context of the SFSB to activate.
java.rmi.RemoteException
public void passivateSession(StatefulSessionEnterpriseContext (src) ctx) throws java.rmi.RemoteException
StatefulSessionPersistenceManager (src)
Implementation is responsible for invoking the bean's
SessionBean.ejbPassivate()
method.
passivateSession
in interface StatefulSessionPersistenceManager (src)
ctx
- The context of the SFSB to passivate.
java.rmi.RemoteException
public void synchroSession(StatefulSessionEnterpriseContext (src) ctx) throws java.rmi.RemoteException
synchroSession
in interface HAPersistentManager (src)
java.rmi.RemoteException
public void removeSession(StatefulSessionEnterpriseContext (src) ctx) throws java.rmi.RemoteException, RemoveException (src)
StatefulSessionPersistenceManager (src)
Implementation is responsible for invoking the bean's
SessionBean.ejbRemove()
method.
removeSession
in interface StatefulSessionPersistenceManager (src)
ctx
- The context of the SFSB to remove.
java.rmi.RemoteException
RemoveException (src)
public void removePassivated(java.lang.Object key)
StatefulSessionPersistenceManager (src)
This is called by the instance cache impl to clean up the state for an old session.
removePassivated
in interface StatefulSessionPersistenceManager (src)
key
- The identifier of the SFSB to remove passivate state for.public void sessionExternallyModified(PackagedSession (src) session)
sessionExternallyModified
in interface HASessionState.HASessionStateListener (src)
public void newSessionStateTopology(HAPartition (src) haSubPartition)
|
||||||||||
PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |