|
Apache Tomcat 7.0.28 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Store
A Store is the abstraction of a Catalina component that provides persistent storage and loading of Sessions and their associated user data. Implementations are free to save and load the Sessions to any media they wish, but it is assumed that saved Sessions are persistent across server or context restarts.
Method Summary | |
---|---|
void |
addPropertyChangeListener(PropertyChangeListener listener)
Add a property change listener to this component. |
void |
clear()
Remove all Sessions from this Store. |
String |
getInfo()
Return descriptive information about this Store implementation and the corresponding version number, in the format <description>/<version> . |
Manager |
getManager()
Return the Manager instance associated with this Store. |
int |
getSize()
Return the number of Sessions present in this Store. |
String[] |
keys()
Return an array containing the session identifiers of all Sessions currently saved in this Store. |
Session |
load(String id)
Load and return the Session associated with the specified session identifier from this Store, without removing it. |
void |
remove(String id)
Remove the Session with the specified session identifier from this Store, if present. |
void |
removePropertyChangeListener(PropertyChangeListener listener)
Remove a property change listener from this component. |
void |
save(Session session)
Save the specified Session into this Store. |
void |
setManager(Manager manager)
Set the Manager associated with this Store. |
Method Detail |
---|
String getInfo()
<description>/<version>
.
Manager getManager()
void setManager(Manager manager)
manager
- The Manager which will use this Store.int getSize() throws IOException
IOException
- if an input/output error occursvoid addPropertyChangeListener(PropertyChangeListener listener)
listener
- The listener to addString[] keys() throws IOException
IOException
- if an input/output error occurredSession load(String id) throws ClassNotFoundException, IOException
null
.
id
- Session identifier of the session to load
ClassNotFoundException
- if a deserialization error occurs
IOException
- if an input/output error occursvoid remove(String id) throws IOException
id
- Session identifier of the Session to be removed
IOException
- if an input/output error occursvoid clear() throws IOException
IOException
void removePropertyChangeListener(PropertyChangeListener listener)
listener
- The listener to removevoid save(Session session) throws IOException
session
- Session to be saved
IOException
- if an input/output error occurs
|
Apache Tomcat 7.0.28 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |