KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sun > enterprise > resource > ResourceConstants


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.enterprise.resource;
25
26 /**
27  * A constants class housing all the resource related constants
28  * @author Sivakumar Thyagarajan
29  */

30 public final class ResourceConstants {
31
32     //Attribute names constants
33
// JDBC Resource
34
public static final String JavaDoc JNDI_NAME = "jndi-name";
35
36     public static final String JavaDoc POOL_NAME = "pool-name";
37
38     // JMS Resource
39
public static final String JavaDoc RES_TYPE = "res-type";
40
41     public static final String JavaDoc FACTORY_CLASS = "factory-class";
42
43     public static final String JavaDoc ENABLED = "enabled";
44
45     // External JNDI Resource
46
public static final String JavaDoc JNDI_LOOKUP = "jndi-lookup-name";
47
48     // JDBC Connection pool
49
public static final String JavaDoc CONNECTION_POOL_NAME = "name";
50
51     public static final String JavaDoc STEADY_POOL_SIZE = "steady-pool-size";
52
53     public static final String JavaDoc MAX_POOL_SIZE = "max-pool-size";
54
55     public static final String JavaDoc MAX_WAIT_TIME_IN_MILLIS = "max-wait-time-in-millis";
56
57     public static final String JavaDoc POOL_SIZE_QUANTITY = "pool-resize-quantity";
58
59     public static final String JavaDoc IDLE_TIME_OUT_IN_SECONDS = "idle-timeout-in-seconds";
60
61     public static final String JavaDoc IS_CONNECTION_VALIDATION_REQUIRED = "is-connection-validation-required";
62
63     public static final String JavaDoc CONNECTION_VALIDATION_METHOD = "connection-validation-method";
64
65     public static final String JavaDoc FAIL_ALL_CONNECTIONS = "fail-all-connections";
66
67     public static final String JavaDoc VALIDATION_TABLE_NAME = "validation-table-name";
68
69     public static final String JavaDoc DATASOURCE_CLASS = "datasource-classname";
70
71     public static final String JavaDoc TRANS_ISOLATION_LEVEL = "transaction-isolation-level";
72
73     public static final String JavaDoc IS_ISOLATION_LEVEL_GUARANTEED = "is-isolation-level-guaranteed";
74
75     //Mail resource
76
public static final String JavaDoc MAIL_HOST = "host";
77
78     public static final String JavaDoc MAIL_USER = "user";
79
80     public static final String JavaDoc MAIL_FROM_ADDRESS = "from";
81
82     public static final String JavaDoc MAIL_STORE_PROTO = "store-protocol";
83
84     public static final String JavaDoc MAIL_STORE_PROTO_CLASS = "store-protocol-class";
85
86     public static final String JavaDoc MAIL_TRANS_PROTO = "transport-protocol";
87
88     public static final String JavaDoc MAIL_TRANS_PROTO_CLASS = "transport-protocol-class";
89
90     public static final String JavaDoc MAIL_DEBUG = "debug";
91
92     //Persistence Manager Factory resource
93
public static final String JavaDoc JDBC_RESOURCE_JNDI_NAME = "jdbc-resource-jndi-name";
94
95     //Admin Object resource
96
public static final String JavaDoc RES_ADAPTER = "res-adapter";
97
98     //Connector resource
99
public static final String JavaDoc RESOURCE_TYPE = "resource-type";
100
101     // ConnectorConnection Pool resource ...
102
// child elements
103
public static final String JavaDoc CONNECTOR_CONN_DESCRIPTION = "description";
104
105     public static final String JavaDoc CONNECTOR_SECURITY_MAP = "security-map";
106
107     public static final String JavaDoc CONNECTOR_PROPERTY = "property";
108
109     //attributes....
110
public static final String JavaDoc CONNECTOR_CONNECTION_POOL_NAME = "name";
111
112     public static final String JavaDoc RESOURCE_ADAPTER_CONFIG_NAME = "resource-adapter-name";
113
114     public static final String JavaDoc CONN_DEF_NAME = "connection-definition-name";
115
116     public static final String JavaDoc CONN_STEADY_POOL_SIZE = "steady-pool-size";
117
118     public static final String JavaDoc CONN_MAX_POOL_SIZE = "max-pool-size";
119
120     public static final String JavaDoc CONN_POOL_RESIZE_QUANTITY = "pool-resize-quantity";
121
122     public static final String JavaDoc CONN_IDLE_TIME_OUT = "idle-timeout-in-seconds";
123
124     public static final String JavaDoc CONN_FAIL_ALL_CONNECTIONS = "fail-all-connections";
125
126     //Security Map elements...
127
public static final String JavaDoc SECURITY_MAP = "security-map";
128
129     public static final String JavaDoc SECURITY_MAP_NAME = "name";
130
131     public static final String JavaDoc PRINCIPAL = "principal";
132
133     public static final String JavaDoc USERGROUP = "user-group";
134
135     public static final String JavaDoc BACKEND_PRINCIPAL = "backend-principal";
136
137     //Resource -Adapter config attributes.
138
public static final String JavaDoc RES_ADAPTER_CONFIG = "resource-adapter-config";
139
140     public static final String JavaDoc THREAD_POOL_IDS = "thread-pool-ids";
141
142     public static final String JavaDoc RES_ADAPTER_NAME = "resource-adapter-name";
143
144     //Backend Principal elements....
145
public static final String JavaDoc USER_NAME = "user-name";
146
147     public static final String JavaDoc PASSWORD = "password";
148
149 }
150
Popular Tags