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