| org.jboss.ha.hasessionstate.interfaces.HASessionState
All known Subclasses: org.jboss.ejb.plugins.StatefulHASessionPersistenceManager, org.jboss.ha.hasessionstate.server.HASessionStateImpl,
Inner Class :public interface HASessionStateListener | |
createSession | public void createSession(String appName, Object keyId)(Code) | | Share a new session state in the sub-partition of this cluster
Parameters: appName - Application name for which is state is shared Parameters: keyId - Key identifier of the state |
getNodeName | public String getNodeName()(Code) | | Return the name of this node as used in the computations
|
getState | public PackagedSession getState(String appName, Object keyId)(Code) | | Get a particular state
Parameters: appName - Application hosting the state Parameters: keyId - Key identifier of the state The state value |
getStateWithOwnership | public PackagedSession getStateWithOwnership(String appName, Object keyId) throws java.rmi.RemoteException(Code) | | Get a state and, if it is not already the case, takes its ownership (a state is
always owned by a node)
Parameters: appName - Application hosting the state Parameters: keyId - Key identifier of the state throws: java.rmi.RemoteException - Thrown if an exception occurs while getting the ownership of the state The state value |
removeSession | public void removeSession(String appName, Object keyId)(Code) | | Remove a session from the sub-partition
Parameters: appName - Application hosting the state Parameters: keyId - Key identifier of the state |
setState | public void setState(String appName, Object keyId, byte[] state) throws java.rmi.RemoteException(Code) | | Modifies a state already shared
Parameters: appName - Application name hosting this state Parameters: keyId - Key identifier of the state to modify Parameters: state - New state |
subscribe | public void subscribe(String appName, HASessionStateListener listener)(Code) | | Subscribe to receive notifications when objects gets modified on another node.
|
takeOwnership | public void takeOwnership(String appName, Object keyId) throws java.rmi.RemoteException(Code) | | Take ownership of a state. Each state is owned by a node.
Parameters: appName - Application hosting the state Parameters: keyId - Key identifier of the state throws: java.rmi.RemoteException - Trown if a communication exception occurs while asking other node to get the ownership |
unsubscribe | public void unsubscribe(String appName, HASessionStateListener listener)(Code) | | |
|
|