|
|||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||
概要: 内部クラス | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Object | +--org.apache.catalina.session.StoreBase
Abstract implementation of the Store interface to support most of the functionality required by a Store.
フィールドの概要 | |
protected int |
checkInterval
The interval (in seconds) between checks for expired sessions. |
protected int |
debug
The debugging detail level for this component. |
protected static java.lang.String |
info
The descriptive information about this implementation. |
protected LifecycleSupport |
lifecycle
The lifecycle event support for this component. |
protected Manager |
manager
The Manager with which this JDBCStore is associated. |
protected StringManager |
sm
The string manager for this package. |
protected boolean |
started
Has this component been started yet? |
protected static java.lang.String |
storeName
Name to register for this Store, used for logging. |
protected java.beans.PropertyChangeSupport |
support
The property change support for this component. |
protected java.lang.Thread |
thread
The background thread. |
protected boolean |
threadDone
The background thread completion semaphore. |
protected java.lang.String |
threadName
Name to register for the background thread. |
インタフェース org.apache.catalina.Lifecycle から継承したフィールド |
START_EVENT, STOP_EVENT |
コンストラクタの概要 | |
StoreBase()
|
メソッドの概要 | |
void |
addLifecycleListener(LifecycleListener listener)
Add a lifecycle event listener to this component. |
void |
addPropertyChangeListener(java.beans.PropertyChangeListener listener)
Add a property change listener to this component. |
int |
getCheckInterval()
Return the check interval (in seconds) for this Store. |
int |
getDebug()
Return the debugging detail level for this Store. |
java.lang.String |
getInfo()
Return the info for this Store. |
Manager |
getManager()
Return the Manager with which the Store is associated. |
java.lang.String |
getStoreName()
Return the name for this Store, used for logging. |
java.lang.String |
getThreadName()
Return the thread name for this Store. |
protected void |
log(java.lang.String message)
Log a message on the Logger associated with our Container (if any). |
protected void |
processExpires()
Called by our background reaper thread to check if Sessions saved in our store are subject of being expired. |
void |
removeLifecycleListener(LifecycleListener listener)
Remove a lifecycle event listener from this component. |
void |
removePropertyChangeListener(java.beans.PropertyChangeListener listener)
Remove a property change listener from this component. |
void |
run()
The background thread that checks for session timeouts and shutdown. |
void |
setCheckInterval(int checkInterval)
Set the check interval (in seconds) for this Store. |
void |
setDebug(int debug)
Set the debugging detail level for this Store. |
void |
setManager(Manager manager)
Set the Manager with which this Store is associated. |
void |
start()
Prepare for the beginning of active use of the public methods of this component. |
void |
stop()
Gracefully terminate the active use of the public methods of this component. |
protected void |
threadSleep()
Sleep for the duration specified by the checkInterval
property. |
protected void |
threadStart()
Start the background thread that will periodically check for session timeouts. |
protected void |
threadStop()
Stop the background thread that is periodically checking for session timeouts. |
クラス java.lang.Object から継承したメソッド |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
インタフェース org.apache.catalina.Store から継承したメソッド |
clear, getSize, keys, load, remove, save |
フィールドの詳細 |
protected static java.lang.String info
protected int checkInterval
protected java.lang.String threadName
protected static java.lang.String storeName
protected java.lang.Thread thread
protected boolean threadDone
protected int debug
protected boolean started
protected LifecycleSupport lifecycle
protected java.beans.PropertyChangeSupport support
protected StringManager sm
protected Manager manager
コンストラクタの詳細 |
public StoreBase()
メソッドの詳細 |
public java.lang.String getInfo()
Store
内の getInfo
public java.lang.String getThreadName()
public java.lang.String getStoreName()
public void setDebug(int debug)
debug
- The new debugging detail levelpublic int getDebug()
public void setCheckInterval(int checkInterval)
checkInterval
- The new check intervalpublic int getCheckInterval()
public void setManager(Manager manager)
Store
内の setManager
manager
- The newly associated Managerpublic Manager getManager()
Store
内の getManager
public void addLifecycleListener(LifecycleListener listener)
Lifecycle
内の addLifecycleListener
listener
- The listener to addpublic void removeLifecycleListener(LifecycleListener listener)
Lifecycle
内の removeLifecycleListener
listener
- The listener to addpublic void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
Store
内の addPropertyChangeListener
listener
- a value of type 'PropertyChangeListener'public void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
Store
内の removePropertyChangeListener
listener
- The listener to removeprotected void processExpires()
protected void log(java.lang.String message)
message
- Message to be loggedpublic void run()
java.lang.Runnable
内の run
public void start() throws LifecycleException
configure()
,
and before any of the public methods of the component are utilized.Lifecycle
内の start
java.lang.IllegalStateException
- if this component has already been
startedLifecycleException
- if this component detects a fatal error
that prevents this component from being usedpublic void stop() throws LifecycleException
Lifecycle
内の stop
java.lang.IllegalStateException
- if this component has not been startedLifecycleException
- if this component detects a fatal error
that needs to be reportedprotected void threadStart()
protected void threadSleep()
checkInterval
property.protected void threadStop()
|
|||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||
概要: 内部クラス | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |