public class JDBCSessionDataStore extends AbstractSessionDataStore
| Modifier and Type | Class and Description |
|---|---|
static class |
JDBCSessionDataStore.SessionTableSchema
SessionTableSchema
|
AbstractLifeCycle.AbstractLifeCycleListenerLifeCycle.ListenerContainer.InheritedListener, Container.Listener| Modifier and Type | Field and Description |
|---|---|
protected boolean |
_initialized |
_context, _gracePeriodSec, _lastExpiryCheckTimeFAILED, RUNNING, STARTED, STARTING, STOP_ON_FAILURE, STOPPED, STOPPING| Constructor and Description |
|---|
JDBCSessionDataStore() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
delete(String id)
Delete session data
|
Set<String> |
doGetExpired(Set<String> candidates)
Implemented by subclasses to resolve which sessions this node
should attempt to expire.
|
protected void |
doStart() |
protected void |
doStop() |
void |
doStore(String id,
SessionData data,
long lastSaveTime)
Store the session data persistently.
|
boolean |
exists(String id)
Test if data exists for a given session id.
|
void |
initialize() |
boolean |
isPassivating()
True if this type of datastore will passivate session objects
|
SessionData |
load(String id)
Read in session data.
|
void |
setDatabaseAdaptor(DatabaseAdaptor dbAdaptor) |
void |
setSessionTableSchema(JDBCSessionDataStore.SessionTableSchema schema) |
checkStarted, getExpired, getGracePeriodSec, initialize, newSessionData, setGracePeriodSec, store, toStringaddBean, addBean, addBean, addEventListener, addManaged, contains, destroy, dump, dump, dump, dump, dump, dumpBeans, dumpObject, dumpStdErr, dumpThis, getBean, getBeans, getBeans, isManaged, manage, removeBean, removeBeans, removeEventListener, setBeans, setStopTimeout, start, stop, unmanage, updateBean, updateBean, updateBeansaddLifeCycleListener, getState, getState, getStopTimeout, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, stopclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddLifeCycleListener, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, stopprotected void doStart()
throws Exception
doStart in class AbstractSessionDataStoreExceptionprotected void doStop()
throws Exception
doStop in class ContainerLifeCycleExceptionpublic SessionData load(String id) throws Exception
SessionDataMapid - identity of session to loadException - if unable to load session dataSessionDataMap.load(java.lang.String)public boolean delete(String id) throws Exception
SessionDataMapid - identity of session to deleteException - if unable to delete session dataSessionDataMap.delete(java.lang.String)public void doStore(String id, SessionData data, long lastSaveTime) throws Exception
AbstractSessionDataStoredoStore in class AbstractSessionDataStoreid - identity of session to storedata - info of the sessionlastSaveTime - time of previous save or 0 if never savedException - if unable to store dataAbstractSessionDataStore.doStore(String, SessionData, long)public Set<String> doGetExpired(Set<String> candidates)
AbstractSessionDataStoredoGetExpired in class AbstractSessionDataStorecandidates - the ids of sessions the SessionDataStore thinks has expiredSessionDataStore.getExpired(Set)public void setDatabaseAdaptor(DatabaseAdaptor dbAdaptor)
public void setSessionTableSchema(JDBCSessionDataStore.SessionTableSchema schema)
public boolean isPassivating()
SessionDataStoreSessionDataStore.isPassivating()public boolean exists(String id) throws Exception
SessionDataStoreid - Identity of session whose existance should be checkedException - if problem checking existance with persistence layerSessionDataStore.exists(java.lang.String)Copyright © 1995–2017 Webtide. All rights reserved.