KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sun > ejb > spi > sfsb > SFSBStoreManager


1 /*
2  * The contents of this file are subject to the terms
3  * of the Common Development and Distribution License
4  * (the License). You may not use this file except in
5  * compliance with the License.
6  *
7  * You can obtain a copy of the license at
8  * https://glassfish.dev.java.net/public/CDDLv1.0.html or
9  * glassfish/bootstrap/legal/CDDLv1.0.txt.
10  * See the License for the specific language governing
11  * permissions and limitations under the License.
12  *
13  * When distributing Covered Code, include this CDDL
14  * Header Notice in each file and include the License file
15  * at glassfish/bootstrap/legal/CDDLv1.0.txt.
16  * If applicable, add the following below the CDDL Header,
17  * with the fields enclosed by brackets [] replaced by
18  * you own identifying information:
19  * "Portions Copyrighted [year] [name of copyright owner]"
20  *
21  * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
22  */

23
24 /*
25  * SFSBStoreManager.java
26  *
27  * Created on May 12, 2003, 5:00 PM
28  */

29
30 package com.sun.ejb.spi.sfsb;
31
32 import java.util.Map JavaDoc;
33
34 import com.sun.ejb.spi.monitorable.sfsb.MonitorableSFSBStore;
35
36 /**
37  *
38  * @author lwhite
39  */

40 public interface SFSBStoreManager {
41     
42     /**
43      * Called from the Container during container creation
44      */

45     public void initSessionStore(Map JavaDoc storeEnv);
46     
47     /**
48      * Return the SFSBBeanState containing
49      * the stored session data identified by this sessionKey
50      * @return the SFSBBeanState containing stored session data or null if the sessionKey is invalid / removed
51      */

52
53     public SFSBBeanState getState(Object JavaDoc id);
54      
55     /**
56      * Store session data in this beanState
57      * This method used only for passivation; use checkpointSave for checkpointing
58      */

59     public void passivateSave(SFSBBeanState beanState);
60       
61     /**
62      * Remove the session data identified by this id
63      */

64     public void remove(Object JavaDoc id);
65       
66     /**
67      * Remove all the idle/expired session data
68      * that are idle for idleTimeoutInSeconds (passed during initSessionStore())
69      */

70     public void removeExpired();
71       
72     /**
73      * Remove all session data for this container
74      * called during undeployment
75      */

76     public void removeAll();
77       
78     /**
79      * Called during shutdown of instance
80      */

81     public void shutdown();
82       
83     /**
84      * return the SFSBUUIDUtil
85      * @return the SFSBUUIDUtil instance
86      */

87     public SFSBUUIDUtil getUUIDUtil();
88
89
90     /**
91      *Get the SFSBStoreManagerMonitor
92      */

93     public MonitorableSFSBStore getMonitorableSFSBStore();
94
95     public int getCurrentSize();
96
97 }
98
Popular Tags