public final class FileStore extends StoreBase
AFTER_DESTROY_EVENT, AFTER_INIT_EVENT, AFTER_START_EVENT, AFTER_STOP_EVENT, BEFORE_DESTROY_EVENT, BEFORE_INIT_EVENT, BEFORE_START_EVENT, BEFORE_STOP_EVENT, CONFIGURE_START_EVENT, CONFIGURE_STOP_EVENT, PERIODIC_EVENT, START_EVENT, STOP_EVENT| Constructor and Description | 
|---|
| FileStore() | 
| Modifier and Type | Method and Description | 
|---|---|
| void | clear()Remove all of the Sessions in this Store. | 
| java.lang.String | getDirectory()Return the directory path for this Store. | 
| java.lang.String | getInfo()Return descriptive information about this Store implementation and
the corresponding version number, in the format
 <description>/<version>. | 
| int | getSize()Return the number of Sessions present in this Store. | 
| java.lang.String | getStoreName()Return the name for this Store, used for logging. | 
| java.lang.String | getThreadName()Return the thread name for this Store. | 
| java.lang.String[] | keys()Return an array containing the session identifiers of all Sessions
currently saved in this Store. | 
| Session | load(java.lang.String id)Load and return the Session associated with the specified session
identifier from this Store, without removing it. | 
| void | remove(java.lang.String id)Remove the Session with the specified session identifier from
this Store, if present. | 
| void | save(Session session)Save the specified Session into this Store. | 
| void | setDirectory(java.lang.String path)Set the directory path for this Store. | 
addPropertyChangeListener, destroyInternal, expiredKeys, getManager, initInternal, processExpires, removePropertyChangeListener, setManager, startInternal, stopInternal, toStringaddLifecycleListener, destroy, findLifecycleListeners, fireLifecycleEvent, getState, getStateName, init, removeLifecycleListener, setState, setState, start, stoppublic java.lang.String getDirectory()
public void setDirectory(java.lang.String path)
path - The new directory pathpublic java.lang.String getInfo()
<description>/<version>.public java.lang.String getThreadName()
public java.lang.String getStoreName()
getStoreName in class StoreBasepublic int getSize()
            throws java.io.IOException
java.io.IOException - if an input/output error occurspublic void clear()
           throws java.io.IOException
java.io.IOException - if an input/output error occurspublic java.lang.String[] keys()
                        throws java.io.IOException
java.io.IOException - if an input/output error occurredpublic Session load(java.lang.String id) throws java.lang.ClassNotFoundException, java.io.IOException
null.id - Session identifier of the session to loadjava.lang.ClassNotFoundException - if a deserialization error occursjava.io.IOException - if an input/output error occurspublic void remove(java.lang.String id)
            throws java.io.IOException
id - Session identifier of the Session to be removedjava.io.IOException - if an input/output error occurspublic void save(Session session) throws java.io.IOException
session - Session to be savedjava.io.IOException - if an input/output error occursCopyright © 2000-2015 Apache Software Foundation. All Rights Reserved.