1 /*
2 * Licensed to the Apache Software Foundation (ASF) under one or more
3 * contributor license agreements. See the NOTICE file distributed with
4 * this work for additional information regarding copyright ownership.
5 * The ASF licenses this file to You under the Apache License, Version 2.0
6 * (the "License"); you may not use this file except in compliance with
7 * the License. You may obtain a copy of the License at
8 *
9 * 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
19 package org.apache.catalina.session;
20
21 /**
22 * Implementation of the <b>Manager</b> interface that makes use of
23 * a Store to swap active Sessions to disk. It can be configured to
24 * achieve several different goals:
25 *
26 * <li>Persist sessions across restarts of the Container</li>
27 * <li>Fault tolerance, keep sessions backed up on disk to allow
28 * recovery in the event of unplanned restarts.</li>
29 * <li>Limit the number of active sessions kept in memory by
30 * swapping less active sessions out to disk.</li>
31 *
32 * @version $Revision: 467222 $
33 * @author Kief Morris (kief@kief.com)
34 */
35
36 public final class PersistentManager extends PersistentManagerBase {
37
38
39 // ----------------------------------------------------- Instance Variables
40
41
42 /**
43 * The descriptive information about this implementation.
44 */
45 private static final String info = "PersistentManager/1.0";
46
47
48 /**
49 * The descriptive name of this Manager implementation (for logging).
50 */
51 protected static String name = "PersistentManager";
52
53
54 // ------------------------------------------------------------- Properties
55
56
57 /**
58 * Return descriptive information about this Manager implementation and
59 * the corresponding version number, in the format
60 * <code><description>/<version></code>.
61 */
62 public String getInfo() {
63
64 return (info);
65
66 }
67
68 /**
69 * Return the descriptive short name of this Manager implementation.
70 */
71 public String getName() {
72
73 return (name);
74
75 }
76 }
77