KickJava   Java API By Example, From Geeks To Geeks.

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


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.spi.sfsb;
25
26
27 /**
28  * SFSBManagerConstants defines a set of "keys"
29  * that can be used to populate / query values that
30  * will be needed during SFSBManager creation.
31  *
32  * @author Mahesh Kannan
33  */

34 public interface SFSBStoreManagerConstants {
35
36     /**
37      * Name of the store manager. Used mainly for logging / debugging
38      */

39     public static String JavaDoc STORE_MANAGER_NAME =
40         "com.sun.ejb.spi.sfsb.store.manager.name";
41
42     /**
43      * The unique prefix essentially contains some bits that
44      * is unique across VMs. For example, this can contain,
45      * in a clustered environment, a clusterID, nodeID etc.
46      * The prefix can be used to generate clusterwide unique
47      * session IDs.
48      */

49     public static String JavaDoc UNIQUE_PREFIX =
50         "com.sun.ejb.spi.sfsb.unique.prefix";
51
52     /**
53      * The session group essentially contains some bits that
54      * can be used to group sessions. For example, this can
55      * contain the beanID (appID-moduleID-ejbID).
56      * The session group can be used to perform operations
57      * that affect all sessions for this bean
58      */

59     public static String JavaDoc SESSION_GROUP =
60         "com.sun.ejb.spi.sfsb.session.group";
61
62     /**
63      * Defines the session timeout in seconds. Sessions not accessed
64      * for this duration can be removed and will no longer
65      * be available to clients
66      */

67     public static String JavaDoc SESSION_TIMEOUT_IN_SECONDS =
68         "com.sun.ejb.spi.sfsb.session.timeout.in.seconds";
69
70     /**
71      * This will be used by File system sfsbManager
72      * This param could be null
73      */

74     public static String JavaDoc PASSIVATION_DIRECTORY_NAME =
75         "com.sun.ejb.spi.sfsb.passivation.directory.name";
76
77
78     /**
79      * Defines the DataSource object that can be used to
80      * obtained (possibly pooled) JDBC connections
81      * This will be used by StoreManagers that persists
82      * sessions using relational databases
83      */

84     public static String JavaDoc JDBC_DATASOURCE_INSTANCE =
85         "com.sun.ejb.spi.sfsb.jdbc.datasource.instance";
86
87
88     /**
89      * Class Loader for this app
90      */

91     public static String JavaDoc CLASS_LOADER =
92     "com.sun.ejb.spi.sfsb.classloader";
93
94 }
95
Popular Tags