Implementation Note
Correct behavior of session storing and reloading depends upon external calls to the
start() and stop() methods of this class at the correct times.
| Modifier and Type | Class and Description |
|---|---|
| private class | |
| private class |
| Modifier and Type | Field and Description |
|---|---|
| private final Log | |
| protected static final String | name
The descriptive name of this Manager implementation (for logging).
|
| protected String | pathname
Path name of the disk file in which active sessions are saved when we stop, and from which these sessions are loaded when we start. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected void | doLoad()
Load any currently active sessions that were previously unloaded to the appropriate persistence mechanism, if any. |
| protected void | |
| protected File | Returns: the fileReturn a File object representing the pathname to our persistence file, if any. |
| public String | |
| public String | |
| public void | load()
Implements org. Load any currently active sessions that were previously unloaded to the appropriate persistence mechanism, if any. |
| public void | setPathname(String
New session persistence pathname pathname)Set the session persistence pathname to the specified value. |
| protected void | startInternal()
Overrides org. Start this component and implement the requirements of
|
| protected void | stopInternal()
Overrides org. Stop this component and implement the requirements of
|
| public void | unload()
Implements org. Save any currently active sessions in the appropriate persistence mechanism, if any. |
| log | back to summary |
|---|---|
| private final Log log | |
| name | back to summary |
|---|---|
| protected static final String name Hides org. The descriptive name of this Manager implementation (for logging). | |
| pathname | back to summary |
|---|---|
| protected String pathname Path name of the disk file in which active sessions are saved when we stop, and from which these sessions are
loaded when we start. A | |
| StandardManager | back to summary |
|---|---|
| public StandardManager() | |
| doLoad | back to summary |
|---|---|
| protected void doLoad() throws ClassNotFoundException, IOException Load any currently active sessions that were previously unloaded to the appropriate persistence mechanism, if any. If persistence is not supported, this method returns without doing anything.
| |
| doUnload | back to summary |
|---|---|
| protected void doUnload() throws IOException Save any currently active sessions in the appropriate persistence mechanism, if any. If persistence is not supported, this method returns without doing anything.
| |
| file | back to summary |
|---|---|
| protected File file() Return a File object representing the pathname to our persistence file, if any.
| |
| getName | back to summary |
|---|---|
| public String getName() Overrides org.
| |
| getPathname | back to summary |
|---|---|
public String getPathname()
| |
| load | back to summary |
|---|---|
| public void load() throws ClassNotFoundException, IOException Implements org. Doc from org. Load any currently active sessions that were previously unloaded to the appropriate persistence mechanism, if any. If persistence is not supported, this method returns without doing anything.
| |
| setPathname | back to summary |
|---|---|
| public void setPathname(String pathname) Set the session persistence pathname to the specified value. If no persistence support is desired, set the
pathname to
| |
| startInternal | back to summary |
|---|---|
| protected void startInternal() throws LifecycleException Overrides org. Start this component and implement the requirements of
| |
| stopInternal | back to summary |
|---|---|
| protected void stopInternal() throws LifecycleException Overrides org. Stop this component and implement the requirements of
| |
| unload | back to summary |
|---|---|
| public void unload() throws IOException Implements org. Doc from org. Save any currently active sessions in the appropriate persistence mechanism, if any. If persistence is not supported, this method returns without doing anything.
| |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public Void |
| PrivilegedDoLoad | back to summary |
|---|---|
| pack-priv PrivilegedDoLoad() | |
| run | back to summary |
|---|---|
| public Void run() throws Exception Implements java. Doc from java. Performs the computation. This method will be called by
| |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public Void |
| PrivilegedDoUnload | back to summary |
|---|---|
| pack-priv PrivilegedDoUnload() | |
| run | back to summary |
|---|---|
| public Void run() throws Exception Implements java. Doc from java. Performs the computation. This method will be called by
| |