KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sun > ejb > base > sfsb > store > FileStoreManagerConstants


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 package com.sun.ejb.base.sfsb.store;
25
26 /**
27  * FileStoreManagerConstants defines a set of "keys"
28  * that can be used to populate / query values that
29  * will be needed during SFSBStoreManager initialization.
30  *
31  * FilePersistenceStragtegyBuilder populates the map with the
32  * following keys which is consumed by the FileStoreManager
33  *
34  * @author Mahesh Kannan
35  */

36
37 public interface FileStoreManagerConstants {
38
39     /**
40      * Name of the store manager. Used mainly for logging / debugging
41      */

42     public static String JavaDoc STORE_MANAGER_NAME =
43         "com.sun.ejb.spi.sfsb.store.name";
44
45     /**
46      * The containerId used to differentiate each container in
47      * the server.
48      */

49     public static String JavaDoc CONTAINER_ID =
50         "com.sun.ejb.spi.sfsb.store.containerid";
51
52     /**
53      * Defines the session timeout in seconds. Sessions not accessed
54      * for this duration can be removed and will no longer
55      * be available to clients
56      */

57     public static String JavaDoc SESSION_TIMEOUT_IN_SECONDS =
58         "com.sun.ejb.spi.sfsb.store.timeout";
59
60     /**
61      * Defines the grace period for session timeout in seconds.
62      * Sessions not accessed for (SESSION_TIMEOUT_IN_SECONDS + thisValue)
63      * can be removed and will no longer be available to clients
64      */

65     public static String JavaDoc GRACE_SESSION_TIMEOUT_IN_SECONDS =
66         "com.sun.ejb.spi.sfsb.store.grace.timeout";
67
68     /**
69     /**
70      * This will be used by File system sfsbManager
71      * This param could be null
72      */

73     public static String JavaDoc PASSIVATION_DIRECTORY_NAME =
74         "com.sun.ejb.spi.sfsb.store.directory";
75
76 }
77
78
Popular Tags