Save This Page
Home » jboss-5.0.0.CR1-src » org.jboss.ha.hasessionstate » server » [javadoc | source]
org.jboss.ha.hasessionstate.server
public class: HASessionStateImpl [javadoc | source]
java.lang.Object
   org.jboss.ha.hasessionstate.server.HASessionStateImpl

All Implemented Interfaces:
    HASessionState, HAPartitionStateTransfer

Default implementation of HASessionState
Field Summary
 long beanCleaningDelay     
protected  Hashtable appSessions     
protected  Object lockAppSession     
protected  Hashtable listeners     
Constructor:
 public HASessionStateImpl(String sessionStateName,
    HAPartition partition,
    long beanCleaningDelay) 
Method from org.jboss.ha.hasessionstate.server.HASessionStateImpl Summary:
_createSession,   _removeSession,   _setOwnership,   _setState,   bind,   createSession,   deflate,   destroy,   getCurrentHAPartition,   getCurrentState,   getHashtableForApp,   getLock,   getNodeName,   getState,   getStateWithOwnership,   inflate,   init,   localTakeOwnership,   lockExists,   ownedObjectExternallyModified,   purgeState,   removeLock,   removeSession,   setCurrentState,   setState,   start,   stop,   subscribe,   takeOwnership,   unsubscribe
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.jboss.ha.hasessionstate.server.HASessionStateImpl Detail:
 public PackagedSessionImpl _createSession(String appName,
    Object keyId) 
 public  void _removeSession(String appName,
    Object keyId) 
 public Boolean _setOwnership(String appName,
    Object keyId,
    String newOwner,
    Long remoteVersion) 
 public  void _setState(String appName,
    PackagedSession session) 
 protected  void bind(String jndiName,
    Object who,
    Class classType,
    Context ctx) throws Exception 
 public  void createSession(String appName,
    Object keyId) 
 protected byte[] deflate(Object object) throws IOException 
 public  void destroy() throws Exception 
 public HAPartition getCurrentHAPartition() 
 public Serializable getCurrentState() 
 protected Hashtable getHashtableForApp(String appName) 
 protected Mutex getLock(String appName,
    Object key) 
 public String getNodeName() 
 public PackagedSession getState(String appName,
    Object keyId) 
 public PackagedSession getStateWithOwnership(String appName,
    Object keyId) throws RemoteException 
 protected Object inflate(byte[] compressedContent) throws IOException 
 public  void init() throws Exception 
 public PackagedSession localTakeOwnership(String appName,
    Object keyId) throws RemoteException 
 protected boolean lockExists(String appName,
    Object key) 
 public  void ownedObjectExternallyModified(String appName,
    Object key,
    PackagedSession oldSession,
    PackagedSession newSession) 
 public  void purgeState() 
 protected  void removeLock(String appName,
    Object key) 
 public  void removeSession(String appName,
    Object keyId) 
 public  void setCurrentState(Serializable newState) 
 public  void setState(String appName,
    Object keyId,
    byte[] state) throws RemoteException 
 public  void start() throws Exception 
 public  void stop() 
 public synchronized  void subscribe(String appName,
    HASessionStateListener listener) 
 public  void takeOwnership(String appName,
    Object keyId) throws RemoteException 
 public synchronized  void unsubscribe(String appName,
    HASessionStateListener listener)