SessionDataMap, SessionDataStore, Container, Destroyable, Dumpable, LifeCycle@ManagedObject public class JDBCSessionDataStore extends AbstractSessionDataStore
| Modifier and Type | Class | Description |
|---|---|---|
static class |
JDBCSessionDataStore.SessionTableSchema |
SessionTableSchema
|
AbstractLifeCycle.AbstractLifeCycleListenerContainer.InheritedListener, Container.ListenerLifeCycle.Listener| Modifier and Type | Field | Description |
|---|---|---|
protected boolean |
_initialized |
|
static java.lang.String |
NULL_CONTEXT_PATH |
Used for Oracle and other databases where "" is treated as NULL
|
FAILED, RUNNING, STARTED, STARTING, STOP_ON_FAILURE, STOPPED, STOPPING_context, _gracePeriodSec, _lastExpiryCheckTime, _savePeriodSec| Constructor | Description |
|---|---|
JDBCSessionDataStore() |
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
delete(java.lang.String id) |
Delete session data
|
java.util.Set<java.lang.String> |
doGetExpired(java.util.Set<java.lang.String> candidates) |
Implemented by subclasses to resolve which sessions this node
should attempt to expire.
|
protected void |
doStart() |
|
protected void |
doStop() |
|
void |
doStore(java.lang.String id,
SessionData data,
long lastSaveTime) |
Store the session data persistently.
|
boolean |
exists(java.lang.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(java.lang.String id) |
Read in session data.
|
void |
setDatabaseAdaptor(DatabaseAdaptor dbAdaptor) |
|
void |
setSessionTableSchema(JDBCSessionDataStore.SessionTableSchema schema) |
addLifeCycleListener, getState, getState, getStopTimeout, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, stopcheckStarted, getExpired, getGracePeriodSec, getSavePeriodSec, initialize, newSessionData, setGracePeriodSec, setSavePeriodSec, store, toStringaddBean, addBean, addBean, addEventListener, addManaged, contains, destroy, dump, dump, dump, dump, dump, dumpBeans, dumpObject, dumpStdErr, dumpThis, getBean, getBeans, getBeans, getContainedBeans, getContainedBeans, isManaged, manage, removeBean, removeBeans, removeEventListener, setBeans, setStopTimeout, start, stop, unmanage, updateBean, updateBean, updateBeansaddLifeCycleListener, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, start, stop, stoppublic static final java.lang.String NULL_CONTEXT_PATH
protected boolean _initialized
protected void doStart()
throws java.lang.Exception
doStart in class AbstractSessionDataStorejava.lang.Exceptionprotected void doStop()
throws java.lang.Exception
doStop in class ContainerLifeCyclejava.lang.Exceptionpublic void initialize()
throws java.lang.Exception
java.lang.Exceptionpublic SessionData load(java.lang.String id) throws java.lang.Exception
SessionDataMapid - identity of session to loadjava.lang.Exception - if unable to load session dataSessionDataMap.load(java.lang.String)public boolean delete(java.lang.String id)
throws java.lang.Exception
SessionDataMapid - identity of session to deletejava.lang.Exception - if unable to delete session dataSessionDataMap.delete(java.lang.String)public void doStore(java.lang.String id,
SessionData data,
long lastSaveTime)
throws java.lang.Exception
AbstractSessionDataStoredoStore in class AbstractSessionDataStoreid - identity of session to storedata - info of the sessionlastSaveTime - time of previous save or 0 if never savedjava.lang.Exception - if unable to store dataAbstractSessionDataStore.doStore(String, SessionData, long)public java.util.Set<java.lang.String> doGetExpired(java.util.Set<java.lang.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)
@ManagedAttribute(value="does this store serialize sessions", readonly=true) public boolean isPassivating()
SessionDataStoreSessionDataStore.isPassivating()public boolean exists(java.lang.String id)
throws java.lang.Exception
SessionDataStoreid - Identity of session whose existence should be checkedjava.lang.Exception - if problem checking existence with persistence layerSessionDataStore.exists(java.lang.String)Copyright © 1995–2018 Webtide. All rights reserved.