Store interface to support most of the functionality required by a
Store.
| Modifier and Type | Field and Description |
|---|---|
| protected Manager | manager
The Manager with which this Store is associated. |
| protected static final StringManager | sm
The string manager for this package.
|
| protected static final String | storeName
Name to register for this Store, used for logging. |
| protected final PropertyChangeSupport | support
The property change support for this component. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | addPropertyChangeListener(PropertyChangeListener
a value of type listener)PropertyChangeListenerImplements org. Add a property change listener to this component. |
| protected void | destroyInternal()
Implements abstract org. Sub-classes implement this method to perform any instance destruction required. |
| public String[] | Returns: list of session keys, that are to be expiredGet only those keys of sessions, that are saved in the Store and are to be expired. |
| public Manager | Returns: the Manager with which the Store is associated.Implements org.
|
| protected ObjectInputStream | Returns: An appropriately configured ObjectInputStream from which the session can be read.The input stream provided by the sub-class that will provide the data for a session is)Create the object input stream to use to read a session from the store. |
| public String | |
| protected void | initInternal()
Implements abstract org. Sub-classes implement this method to perform any instance initialisation required. |
| public void | processExpires()
Called by our background reaper thread to check if Sessions saved in our store are subject of being expired. |
| public void | removePropertyChangeListener(PropertyChangeListener
The listener to remove listener)Implements org. Remove a property change listener from this component. |
| public void | setManager(Manager
The newly associated Manager manager)Implements org. Set the Manager with which this Store is associated. |
| protected void | startInternal()
Implements abstract org. Start this component and implement the requirements of |
| protected void | stopInternal()
Implements abstract org. Stop this component and implement the requirements of |
| public String | Returns: a String rendering of this object.Overrides java. Returns a string representation of the object. |
| manager | back to summary |
|---|---|
| protected Manager manager The Manager with which this Store is associated. | |
| sm | back to summary |
|---|---|
| protected static final StringManager sm Hides org. The string manager for this package. | |
| storeName | back to summary |
|---|---|
| protected static final String storeName Name to register for this Store, used for logging. | |
| support | back to summary |
|---|---|
| protected final PropertyChangeSupport support The property change support for this component. | |
| StoreBase | back to summary |
|---|---|
| public StoreBase() | |
| addPropertyChangeListener | back to summary |
|---|---|
| public void addPropertyChangeListener(PropertyChangeListener listener) Implements org. Add a property change listener to this component.
| |
| destroyInternal | back to summary |
|---|---|
| protected void destroyInternal() Implements abstract org. Doc from org. Sub-classes implement this method to perform any instance destruction required.
| |
| expiredKeys | back to summary |
|---|---|
| public String[] expiredKeys() throws IOException Get only those keys of sessions, that are saved in the Store and are to be expired.
| |
| getManager | back to summary |
|---|---|
| public Manager getManager() Implements org. | |
| getObjectInputStream | back to summary |
|---|---|
| protected ObjectInputStream getObjectInputStream(InputStream is) throws IOException Create the object input stream to use to read a session from the store. Sub-classes must have set the thread context class loader before calling this method.
| |
| getStoreName | back to summary |
|---|---|
public String getStoreName()
| |
| initInternal | back to summary |
|---|---|
| protected void initInternal() Implements abstract org. Doc from org. Sub-classes implement this method to perform any instance initialisation required.
| |
| processExpires | back to summary |
|---|---|
| public void processExpires() Called by our background reaper thread to check if Sessions saved in our store are subject of being expired. If so expire the Session and remove it from the Store. | |
| removePropertyChangeListener | back to summary |
|---|---|
| public void removePropertyChangeListener(PropertyChangeListener listener) Implements org. Remove a property change listener from this component.
| |
| setManager | back to summary |
|---|---|
| public void setManager(Manager manager) Implements org. Set the Manager with which this Store is associated. | |
| startInternal | back to summary |
|---|---|
| protected void startInternal() throws LifecycleException Implements abstract org. Start this component and implement the requirements of
| |
| stopInternal | back to summary |
|---|---|
| protected void stopInternal() throws LifecycleException Implements abstract org. Stop this component and implement the requirements of
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |