KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jboss > web > tomcat > tc5 > session > SnapshotManager


1 /*
2  * JBoss, the OpenSource WebOS
3  *
4  * Distributable under LGPL license.
5  * See terms of license at gnu.org.
6  */

7 package org.jboss.web.tomcat.tc5.session;
8
9 import org.apache.catalina.Context;
10
11 /**
12  * Abstract base class for a session snapshot manager.
13  *
14  * @author Thomas Peuss <jboss@peuss.de>
15  * @version $Revision: 1.3.2.2 $
16  */

17 public abstract class SnapshotManager
18 {
19    // The manager the snapshot manager should use
20
protected AbstractJBossManager manager;
21
22    // The context-path
23
protected String JavaDoc contextPath;
24
25    public SnapshotManager(AbstractJBossManager manager, String JavaDoc path)
26    {
27       this.manager = manager;
28       contextPath = path;
29    }
30
31    /**
32     * Tell the snapshot manager which session was modified and
33     * must be replicated
34     */

35    public abstract void snapshot(String JavaDoc id);
36
37    /**
38     * Start the snapshot manager
39     */

40    public abstract void start();
41
42    /**
43     * Stop the snapshot manager
44     */

45    public abstract void stop();
46 }
47
Popular Tags