FileDocCategorySizeDatePackage
SFSBStoreManager.javaAPI DocGlassfish v2 API4777Fri May 04 22:33:14 BST 2007com.sun.ejb.spi.sfsb.store

SFSBStoreManager

public interface SFSBStoreManager
Interface that will be used by the SFSB container to interact with a session store. Note that there is a one-one association between Container and Store
author
Mahesh Kannan

Fields Summary
Constructors Summary
Methods Summary
public voidcheckpointSave(SFSBBeanState beanState)
Store session data in this beanState This method used only for checkpointing; use passivateSave for passivating

public SFSBBeanStatecreateSFSBBeanState(java.lang.Object sessionId, long lastAccess, boolean isNew, byte[] state)
A Factory method to create a SFSBBeanState. The StoreManager is responsible for filling the SFSBBeanState with the correct ClusterId, containerId and SFSBStoreManager

public com.sun.ejb.spi.stats.MonitorableSFSBStoreManagergetMonitorableSFSBStoreManager()
Get the SFSBStoreManagerMonitor

public SFSBBeanStategetState(java.lang.Object sessionKey)
Return the SFSBBeanState containing the stored session data identified by this sessionKey

return
the SFSBBeanState containing stored session data or null if the sessionKey is invalid / removed

public voidinitSessionStore(java.util.Map storeEnv)
Called from the Container during container creation

public voidpassivateSave(SFSBBeanState beanState)
Store session data in this beanState This method used only for passivation; use checkpointSave for checkpointing

public voidremove(java.lang.Object sessionKey)
Remove the session data identified by this sessionKey

public voidremoveAll()
Remove all session data for this container called during undeployment

public intremoveExpiredSessions()
Remove all the idle/expired session data that are idle for idleTimeoutInSeconds (passed during initSessionStore())

public voidshutdown()
Called during shutdown of instance

public voidupdateLastAccessTime(java.lang.Object sessionKey, long time)
update only the lastAccessTime to the value time Used when the session has been accessed as well as periodically to keep session alive