KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sun > enterprise > connectors > ConnectorAdminService


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

24
25 package com.sun.enterprise.connectors;
26
27 /**
28  * This class defines interfaces for connector admin functionality
29  * The define constants corresponding/identifying different admin
30  * services.
31  * @author Srikanth P
32  */

33
34 public interface ConnectorAdminService {
35
36     String JavaDoc CCP = "ConnectorConnectionPool";
37     String JavaDoc CR = "ConnectorResource";
38     String JavaDoc AOR = "AdminObjectResource";
39     String JavaDoc SEC = "Security";
40     String JavaDoc RA = "ResourceAdapter";
41
42     /**
43      * Performs the creation functionality for a specific admin service.
44      * Ex. For connectorConnectionPool admin service, it creates the pool.
45      * @throws ConnectorRuntimeException If creation fails.
46      */

47
48     void create() throws ConnectorRuntimeException;
49
50     /**
51      * Performs the deletion functionality for a specific admin service.
52      * Ex. For connectorConnectionPool admin service, it deletes the pool.
53      * @throws ConnectorRuntimeException If deletion fails.
54      */

55
56     void destroy() throws ConnectorRuntimeException;
57 }
58
59
Popular Tags