| Modifier and Type | Class and Description |
|---|---|
| public static class | JDBCSessionDataStore.SessionTableSchema
SessionTableSchema |
| Modifier and Type | Field and Description |
|---|---|
| protected DatabaseAdaptor | |
| protected boolean | |
| protected boolean | |
| protected JDBCSessionDataStore. | |
| private static final ByteArrayInputStream | |
| private static final Logger | |
| public static final String | NULL_CONTEXT_PATH
Used for Oracle and other databases where "" is treated as NULL |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | delete(String
identity of session to delete id)Implements org. |
| public Set | doCheckExpired(Set<String>
the ids of sessions the SessionCache thinks has expired candidates, long the time at which to check for expiry time)Implements abstract org. |
| public void | doCleanOrphans(long
the upper limit of the expiry time to check in msec time)Implements abstract org. |
| public boolean | doExists(String
the session id to check id)Implements abstract org. |
| public Set | doGetExpired(long
the upper limit of expiry times to check. Sessions expired
at or before this timestamp will match. timeLimit)Implements abstract org. |
| protected void | |
| public SessionData | doLoad(String
the id of the session to load id)Implements abstract org. |
| protected void | doStart()
Overrides org. |
| protected void | doStop()
Overrides org. |
| public void | doStore(String
identity of session to store id, SessionData info of the session data, long time of previous save or 0 if never saved lastSaveTime)Implements abstract org. |
| protected void | |
| public void | |
| public boolean | isPassivating()
Implements org. |
| public void | |
| public void |
| _dbAdaptor | back to summary |
|---|---|
| protected DatabaseAdaptor _dbAdaptor | |
| _initialized | back to summary |
|---|---|
| protected boolean _initialized | |
| _schemaProvided | back to summary |
|---|---|
| protected boolean _schemaProvided | |
| _sessionTableSchema | back to summary |
|---|---|
| protected JDBCSessionDataStore. | |
| EMPTY | back to summary |
|---|---|
| private static final ByteArrayInputStream EMPTY | |
| LOG | back to summary |
|---|---|
| private static final Logger LOG Hides org. | |
| NULL_CONTEXT_PATH | back to summary |
|---|---|
| public static final String NULL_CONTEXT_PATH Used for Oracle and other databases where "" is treated as NULL | |
| JDBCSessionDataStore | back to summary |
|---|---|
| public JDBCSessionDataStore() | |
| delete | back to summary |
|---|---|
| public boolean delete(String id) throws Exception Implements org. Doc from org. Delete session data | |
| doCheckExpired | back to summary |
|---|---|
| public Set Implements abstract org. Doc from org. Implemented by subclasses to resolve which sessions in this context that are being managed by this node that should be expired. | |
| doCleanOrphans | back to summary |
|---|---|
| public void doCleanOrphans(long time) Implements abstract org. Doc from org. Implemented by subclasses to delete sessions for other contexts that expired at or before the timeLimit. These are 'orphaned' sessions that are no longer being actively managed by any node. These are explicitly sessions that do NOT belong to this context (other mechanisms such as doGetExpired take care of those). As they don't belong to this context, they cannot be loaded by us. This is called only periodically to avoid placing excessive load on the store.
| |
| doExists | back to summary |
|---|---|
| public boolean doExists(String id) throws Exception Implements abstract org. Doc from org. Check if a session for the given id exists. | |
| doGetExpired | back to summary |
|---|---|
| public Set Implements abstract org. Doc from org. Implemented by subclasses to find sessions for this context in the store that expired at or before the time limit and thus not being actively managed by any node. This method is only called periodically (the period is configurable) to avoid putting too much load on the store. | |
| doInsert | back to summary |
|---|---|
| protected void doInsert(String id, SessionData data) throws Exception | |
| doLoad | back to summary |
|---|---|
| public SessionData doLoad(String id) throws Exception Implements abstract org. Doc from org. Load the session from persistent store.
| |
| doStart | back to summary |
|---|---|
| protected void doStart() throws Exception Overrides org. Doc from org. Starts the managed lifecycle beans in the order they were added.
| |
| doStop | back to summary |
|---|---|
| protected void doStop() throws Exception Overrides org. Doc from org. Stops the managed lifecycle beans in the reverse order they were added.
| |
| doStore | back to summary |
|---|---|
| public void doStore(String id, SessionData data, long lastSaveTime) throws Exception Implements abstract org. Doc from org. Store the session data persistently.
| |
| doUpdate | back to summary |
|---|---|
| protected void doUpdate(String id, SessionData data) throws Exception | |
| initialize | back to summary |
|---|---|
| public void initialize() throws Exception | |
| isPassivating | back to summary |
|---|---|
| public boolean isPassivating() Implements org. Doc from org. True if this type of datastore will passivate session objects
| |
| setDatabaseAdaptor | back to summary |
|---|---|
| public void setDatabaseAdaptor(DatabaseAdaptor dbAdaptor) | |
| setSessionTableSchema | back to summary |
|---|---|
| public void setSessionTableSchema(JDBCSessionDataStore. | |
| Modifier and Type | Field and Description |
|---|---|
| protected String | |
| protected String | |
| protected String | |
| protected String | |
| protected String | |
| protected DatabaseAdaptor | |
| protected String | |
| protected String | |
| protected String | |
| protected String | |
| protected String | |
| protected String | |
| protected String | |
| protected String | |
| protected String | |
| protected String | |
| public static final String | |
| public static final int |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| public String | |
| public String | |
| public String | |
| public PreparedStatement | |
| public PreparedStatement | |
| public String | |
| public String | |
| public String | |
| public String | |
| public String | |
| public String | |
| public PreparedStatement | |
| public PreparedStatement | getExpiredSessionsStatement(Connection connection, String canonicalContextPath, String vhost, long expiry)
|
| public String | |
| public String | |
| public String | |
| public String | |
| public String | |
| public String | |
| public PreparedStatement | |
| public String | |
| public String | |
| public PreparedStatement | |
| public String | |
| private String | |
| public String | |
| public PreparedStatement | |
| public PreparedStatement | |
| public String | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| protected void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public String |
| _accessTimeColumn | back to summary |
|---|---|
| protected String _accessTimeColumn | |
| _catalogName | back to summary |
|---|---|
| protected String _catalogName | |
| _contextPathColumn | back to summary |
|---|---|
| protected String _contextPathColumn | |
| _cookieTimeColumn | back to summary |
|---|---|
| protected String _cookieTimeColumn | |
| _createTimeColumn | back to summary |
|---|---|
| protected String _createTimeColumn | |
| _dbAdaptor | back to summary |
|---|---|
| protected DatabaseAdaptor _dbAdaptor | |
| _expiryTimeColumn | back to summary |
|---|---|
| protected String _expiryTimeColumn | |
| _idColumn | back to summary |
|---|---|
| protected String _idColumn | |
| _lastAccessTimeColumn | back to summary |
|---|---|
| protected String _lastAccessTimeColumn | |
| _lastNodeColumn | back to summary |
|---|---|
| protected String _lastNodeColumn | |
| _lastSavedTimeColumn | back to summary |
|---|---|
| protected String _lastSavedTimeColumn | |
| _mapColumn | back to summary |
|---|---|
| protected String _mapColumn | |
| _maxIntervalColumn | back to summary |
|---|---|
| protected String _maxIntervalColumn | |
| _schemaName | back to summary |
|---|---|
| protected String _schemaName | |
| _tableName | back to summary |
|---|---|
| protected String _tableName | |
| _virtualHostColumn | back to summary |
|---|---|
| protected String _virtualHostColumn | |
| INFERRED | back to summary |
|---|---|
| public static final String INFERRED | |
| MAX_INTERVAL_NOT_SET | back to summary |
|---|---|
| public static final int MAX_INTERVAL_NOT_SET | |
| SessionTableSchema | back to summary |
|---|---|
| public SessionTableSchema() | |
| checkNotNull | back to summary |
|---|---|
| private void checkNotNull(String s) | |
| getAccessTimeColumn | back to summary |
|---|---|
| public String getAccessTimeColumn() | |
| getAlterTableForMaxIntervalAsString | back to summary |
|---|---|
| public String getAlterTableForMaxIntervalAsString() | |
| getCatalogName | back to summary |
|---|---|
| public String getCatalogName() | |
| getCheckSessionExistsStatement | back to summary |
|---|---|
| public PreparedStatement getCheckSessionExistsStatement(Connection connection, SessionContext context) throws SQLException | |
| getCleanOrphansStatement | back to summary |
|---|---|
| public PreparedStatement getCleanOrphansStatement(Connection connection, long timeLimit) throws Exception | |
| getContextPathColumn | back to summary |
|---|---|
| public String getContextPathColumn() | |
| getCookieTimeColumn | back to summary |
|---|---|
| public String getCookieTimeColumn() | |
| getCreateIndexOverExpiryStatementAsString | back to summary |
|---|---|
| public String getCreateIndexOverExpiryStatementAsString(String indexName) | |
| getCreateIndexOverSessionStatementAsString | back to summary |
|---|---|
| public String getCreateIndexOverSessionStatementAsString(String indexName) | |
| getCreateStatementAsString | back to summary |
|---|---|
| public String getCreateStatementAsString() | |
| getCreateTimeColumn | back to summary |
|---|---|
| public String getCreateTimeColumn() | |
| getDeleteStatement | back to summary |
|---|---|
| public PreparedStatement getDeleteStatement(Connection connection, String id, SessionContext contextId) throws Exception | |
| getExpiredSessionsStatement | back to summary |
|---|---|
| public PreparedStatement getExpiredSessionsStatement(Connection connection, String canonicalContextPath, String vhost, long expiry) throws SQLException | |
| getExpiryTimeColumn | back to summary |
|---|---|
| public String getExpiryTimeColumn() | |
| getIdColumn | back to summary |
|---|---|
| public String getIdColumn() | |
| getInsertSessionStatementAsString | back to summary |
|---|---|
| public String getInsertSessionStatementAsString() | |
| getLastAccessTimeColumn | back to summary |
|---|---|
| public String getLastAccessTimeColumn() | |
| getLastNodeColumn | back to summary |
|---|---|
| public String getLastNodeColumn() | |
| getLastSavedTimeColumn | back to summary |
|---|---|
| public String getLastSavedTimeColumn() | |
| getLoadStatement | back to summary |
|---|---|
| public PreparedStatement getLoadStatement(Connection connection, String id, SessionContext contextId) throws SQLException | |
| getMapColumn | back to summary |
|---|---|
| public String getMapColumn() | |
| getMaxIntervalColumn | back to summary |
|---|---|
| public String getMaxIntervalColumn() | |
| getMyExpiredSessionsStatement | back to summary |
|---|---|
| public PreparedStatement getMyExpiredSessionsStatement(Connection connection, SessionContext sessionContext, long expiry) throws SQLException | |
| getSchemaName | back to summary |
|---|---|
| public String getSchemaName() | |
| getSchemaTableName | back to summary |
|---|---|
| private String getSchemaTableName() | |
| getTableName | back to summary |
|---|---|
| public String getTableName() | |
| getUpdateSessionStatement | back to summary |
|---|---|
| public PreparedStatement getUpdateSessionStatement(Connection connection, String id, SessionContext context) throws SQLException | |
| getUpdateStatement | back to summary |
|---|---|
| public PreparedStatement getUpdateStatement(Connection connection, String id, SessionContext contextId) throws SQLException | |
| getVirtualHostColumn | back to summary |
|---|---|
| public String getVirtualHostColumn() | |
| prepareTables | back to summary |
|---|---|
| public void prepareTables() throws SQLException Set up the tables in the database
| |
| setAccessTimeColumn | back to summary |
|---|---|
| public void setAccessTimeColumn(String accessTimeColumn) | |
| setCatalogName | back to summary |
|---|---|
| public void setCatalogName(String catalogName) | |
| setContextPathColumn | back to summary |
|---|---|
| public void setContextPathColumn(String contextPathColumn) | |
| setCookieTimeColumn | back to summary |
|---|---|
| public void setCookieTimeColumn(String cookieTimeColumn) | |
| setCreateTimeColumn | back to summary |
|---|---|
| public void setCreateTimeColumn(String createTimeColumn) | |
| setDatabaseAdaptor | back to summary |
|---|---|
| protected void setDatabaseAdaptor(DatabaseAdaptor dbadaptor) | |
| setExpiryTimeColumn | back to summary |
|---|---|
| public void setExpiryTimeColumn(String expiryTimeColumn) | |
| setIdColumn | back to summary |
|---|---|
| public void setIdColumn(String idColumn) | |
| setLastAccessTimeColumn | back to summary |
|---|---|
| public void setLastAccessTimeColumn(String lastAccessTimeColumn) | |
| setLastNodeColumn | back to summary |
|---|---|
| public void setLastNodeColumn(String lastNodeColumn) | |
| setLastSavedTimeColumn | back to summary |
|---|---|
| public void setLastSavedTimeColumn(String lastSavedTimeColumn) | |
| setMapColumn | back to summary |
|---|---|
| public void setMapColumn(String mapColumn) | |
| setMaxIntervalColumn | back to summary |
|---|---|
| public void setMaxIntervalColumn(String maxIntervalColumn) | |
| setSchemaName | back to summary |
|---|---|
| public void setSchemaName(String schemaName) | |
| setTableName | back to summary |
|---|---|
| public void setTableName(String tableName) | |
| setVirtualHostColumn | back to summary |
|---|---|
| public void setVirtualHostColumn(String virtualHostColumn) | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |