Methods Summary |
---|
public void | createSession(java.lang.String appName, java.lang.Object keyId)Share a new session state in the sub-partition of this cluster
|
public org.jboss.ha.framework.interfaces.HAPartition | getCurrentHAPartition()
|
public java.lang.String | getNodeName()Return the name of this node as used in the computations
|
public org.jboss.ha.hasessionstate.interfaces.PackagedSession | getState(java.lang.String appName, java.lang.Object keyId)Get a particular state
|
public org.jboss.ha.hasessionstate.interfaces.PackagedSession | getStateWithOwnership(java.lang.String appName, java.lang.Object keyId)Get a state and, if it is not already the case, takes its ownership (a state is
always owned by a node)
|
public void | init()
|
public void | removeSession(java.lang.String appName, java.lang.Object keyId)Remove a session from the sub-partition
|
public void | setState(java.lang.String appName, java.lang.Object keyId, byte[] state)Modifies a state already shared
|
public void | start()
|
public void | subscribe(java.lang.String appName, org.jboss.ha.hasessionstate.interfaces.HASessionState$HASessionStateListener listener)Subscribe to receive notifications when objects gets modified on another node.
|
public void | takeOwnership(java.lang.String appName, java.lang.Object keyId)Take ownership of a state. Each state is owned by a node.
|
public void | unsubscribe(java.lang.String appName, org.jboss.ha.hasessionstate.interfaces.HASessionState$HASessionStateListener listener)
|