01: /*
02: * Copyright 1999,2004 The Apache Software Foundation.
03: *
04: * Licensed under the Apache License, Version 2.0 (the "License");
05: * you may not use this file except in compliance with the License.
06: * You may obtain a copy of the License at
07: *
08: * http://www.apache.org/licenses/LICENSE-2.0
09: *
10: * Unless required by applicable law or agreed to in writing, software
11: * distributed under the License is distributed on an "AS IS" BASIS,
12: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13: * See the License for the specific language governing permissions and
14: * limitations under the License.
15: */
16:
17: package org.apache.catalina.session;
18:
19: /**
20: * Implementation of the <b>Manager</b> interface that makes use of
21: * a Store to swap active Sessions to disk. It can be configured to
22: * achieve several different goals:
23: *
24: * <li>Persist sessions across restarts of the Container</li>
25: * <li>Fault tolerance, keep sessions backed up on disk to allow
26: * recovery in the event of unplanned restarts.</li>
27: * <li>Limit the number of active sessions kept in memory by
28: * swapping less active sessions out to disk.</li>
29: *
30: * @version $Revision: 1.3 $
31: * @author Kief Morris (kief@kief.com)
32: */
33:
34: public final class PersistentManager extends PersistentManagerBase {
35:
36: // ----------------------------------------------------- Instance Variables
37:
38: /**
39: * The descriptive information about this implementation.
40: */
41: private static final String info = "PersistentManager/1.0";
42:
43: /**
44: * The descriptive name of this Manager implementation (for logging).
45: */
46: protected static String name = "PersistentManager";
47:
48: // ------------------------------------------------------------- Properties
49:
50: /**
51: * Return descriptive information about this Manager implementation and
52: * the corresponding version number, in the format
53: * <code><description>/<version></code>.
54: */
55: public String getInfo() {
56:
57: return (info);
58:
59: }
60:
61: /**
62: * Return the descriptive short name of this Manager implementation.
63: */
64: public String getName() {
65:
66: return (name);
67:
68: }
69: }
|