|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
java.lang.Objectorg.eclipse.jetty.util.component.AbstractLifeCycle
org.eclipse.jetty.server.session.AbstractSessionIdManager
org.eclipse.jetty.server.session.JDBCSessionIdManager
public class JDBCSessionIdManager
JDBCSessionIdManager SessionIdManager implementation that uses a database to store in-use session ids, to support distributed sessions.
| 嵌套类摘要 | |
|---|---|
class |
JDBCSessionIdManager.DatabaseAdaptor
DatabaseAdaptor Handles differences between databases. |
| 从类 org.eclipse.jetty.util.component.AbstractLifeCycle 继承的嵌套类/接口 |
|---|
AbstractLifeCycle.AbstractLifeCycleListener |
| 从接口 org.eclipse.jetty.util.component.LifeCycle 继承的嵌套类/接口 |
|---|
LifeCycle.Listener |
| 字段摘要 | |
|---|---|
protected String |
_blobType
|
protected String |
_connectionUrl
|
protected String |
_createSessionIdTable
|
protected String |
_createSessionTable
|
protected DataSource |
_datasource
|
protected JDBCSessionIdManager.DatabaseAdaptor |
_dbAdaptor
|
protected String |
_deleteId
|
protected String |
_deleteOldExpiredSessions
|
protected String |
_deleteSession
|
protected Driver |
_driver
|
protected String |
_driverClassName
|
protected String |
_insertId
|
protected String |
_insertSession
|
protected String |
_jndiName
|
protected long |
_lastScavengeTime
|
protected String |
_longType
|
protected String |
_queryId
|
protected long |
_scavengeIntervalMs
|
protected String |
_selectBoundedExpiredSessions
|
protected Server |
_server
|
protected HashSet<String> |
_sessionIds
|
protected String |
_sessionIdTable
|
protected String |
_sessionTable
|
protected String |
_sessionTableRowId
|
protected TimerTask |
_task
|
protected Timer |
_timer
|
protected String |
_updateSession
|
protected String |
_updateSessionAccessTime
|
protected String |
_updateSessionNode
|
| 从类 org.eclipse.jetty.server.session.AbstractSessionIdManager 继承的字段 |
|---|
_random, _reseed, _weakRandom, _workerName |
| 从类 org.eclipse.jetty.util.component.AbstractLifeCycle 继承的字段 |
|---|
_listeners, FAILED, RUNNING, STARTED, STARTING, STOPPED, STOPPING |
| 构造方法摘要 | |
|---|---|
JDBCSessionIdManager(Server server)
|
|
JDBCSessionIdManager(Server server,
Random random)
|
|
| 方法摘要 | |
|---|---|
void |
addSession(HttpSession session)
Add a session to the list of known sessions for a given ID. |
void |
doStart()
Start up the id manager. |
void |
doStop()
Stop the scavenger. |
String |
getBlobType()
|
String |
getClusterId(String nodeId)
Get the session id without any node identifier suffix. |
protected Connection |
getConnection()
Get a connection from the driver or datasource. |
String |
getConnectionUrl()
|
DataSource |
getDataSource()
|
String |
getDatasourceName()
|
String |
getDriverClassName()
|
String |
getLongType()
|
String |
getNodeId(String clusterId,
HttpServletRequest request)
Get the session id, including this node's id as a suffix. |
long |
getScavengeInterval()
|
boolean |
idInUse(String id)
|
void |
invalidateAll(String id)
Invalidate the session matching the id on all contexts. |
void |
removeSession(HttpSession session)
Remove session from the list of known sessions for a given ID. |
void |
removeSession(String id)
|
void |
setBlobType(String name)
|
void |
setDatasource(DataSource ds)
|
void |
setDatasourceName(String jndi)
|
void |
setDriverInfo(Driver driverClass,
String connectionUrl)
Configure jdbc connection information via a jdbc Driver |
void |
setDriverInfo(String driverClassName,
String connectionUrl)
Configure jdbc connection information via a jdbc Driver |
void |
setLongType(String longType)
|
void |
setScavengeInterval(long sec)
|
| 从类 org.eclipse.jetty.server.session.AbstractSessionIdManager 继承的方法 |
|---|
getRandom, getReseed, getWorkerName, initRandom, newSessionId, setRandom, setReseed, setWorkerName |
| 从类 org.eclipse.jetty.util.component.AbstractLifeCycle 继承的方法 |
|---|
addLifeCycleListener, getState, getState, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, stop |
| 从类 java.lang.Object 继承的方法 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| 从接口 org.eclipse.jetty.util.component.LifeCycle 继承的方法 |
|---|
addLifeCycleListener, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, stop |
| 字段详细信息 |
|---|
protected final HashSet<String> _sessionIds
protected Server _server
protected Driver _driver
protected String _driverClassName
protected String _connectionUrl
protected DataSource _datasource
protected String _jndiName
protected String _sessionIdTable
protected String _sessionTable
protected String _sessionTableRowId
protected Timer _timer
protected TimerTask _task
protected long _lastScavengeTime
protected long _scavengeIntervalMs
protected String _blobType
protected String _longType
protected String _createSessionIdTable
protected String _createSessionTable
protected String _selectBoundedExpiredSessions
protected String _deleteOldExpiredSessions
protected String _insertId
protected String _deleteId
protected String _queryId
protected String _insertSession
protected String _deleteSession
protected String _updateSession
protected String _updateSessionNode
protected String _updateSessionAccessTime
protected JDBCSessionIdManager.DatabaseAdaptor _dbAdaptor
| 构造方法详细信息 |
|---|
public JDBCSessionIdManager(Server server)
public JDBCSessionIdManager(Server server,
Random random)
| 方法详细信息 |
|---|
public void setDriverInfo(String driverClassName,
String connectionUrl)
driverClassName - connectionUrl -
public void setDriverInfo(Driver driverClass,
String connectionUrl)
driverClass - connectionUrl - public void setDatasource(DataSource ds)
public DataSource getDataSource()
public String getDriverClassName()
public String getConnectionUrl()
public void setDatasourceName(String jndi)
public String getDatasourceName()
public void setBlobType(String name)
public String getBlobType()
public String getLongType()
public void setLongType(String longType)
public void setScavengeInterval(long sec)
public long getScavengeInterval()
public void addSession(HttpSession session)
SessionIdManager 复制的描述
session - The sessionpublic void removeSession(HttpSession session)
SessionIdManager 复制的描述
public void removeSession(String id)
public String getClusterId(String nodeId)
SessionIdManager.getClusterId(java.lang.String)
public String getNodeId(String clusterId,
HttpServletRequest request)
clusterId - The ID of the sessionrequest - The request that for the session (or null)
SessionIdManager.getNodeId(java.lang.String, javax.servlet.http.HttpServletRequest)public boolean idInUse(String id)
id - The session ID without any cluster node extension
public void invalidateAll(String id)
id - The session ID without any cluster node extensionSessionIdManager.invalidateAll(java.lang.String)
public void doStart()
throws Exception
AbstractSessionIdManager 中的 doStartException
public void doStop()
throws Exception
AbstractSessionIdManager 中的 doStopException
protected Connection getConnection()
throws SQLException
SQLException
|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||