KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > netbeans > modules > j2ee > sun > api > ServerInterface


1 /*
2  * The contents of this file are subject to the terms of the Common Development
3  * and Distribution License (the License). You may not use this file except in
4  * compliance with the License.
5  *
6  * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
7  * or http://www.netbeans.org/cddl.txt.
8  *
9  * When distributing Covered Code, include this CDDL Header Notice in each file
10  * and include the License file at http://www.netbeans.org/cddl.txt.
11  * If applicable, add the following below the CDDL Header, with the fields
12  * enclosed by brackets [] replaced by your own identifying information:
13  * "Portions Copyrighted [year] [name of copyright owner]"
14  *
15  * The Original Software is NetBeans. The Initial Developer of the Original
16  * Software is Sun Microsystems, Inc. Portions Copyright 1997-2006 Sun
17  * Microsystems, Inc. All Rights Reserved.
18  */

19 /*
20  * ServerInterface.java
21  *
22  * Created on October 26, 2004, 11:50 AM
23  */

24
25 package org.netbeans.modules.j2ee.sun.api;
26
27 import java.io.IOException JavaDoc;
28 import javax.management.MBeanInfo JavaDoc;
29 import javax.management.MBeanException JavaDoc;
30 import javax.management.ReflectionException JavaDoc;
31 import javax.management.IntrospectionException JavaDoc;
32 import javax.management.InstanceNotFoundException JavaDoc;
33 import javax.management.AttributeNotFoundException JavaDoc;
34 import javax.management.InvalidAttributeValueException JavaDoc;
35 import javax.management.MBeanServerConnection JavaDoc;
36 import javax.management.ObjectName JavaDoc;
37 import javax.management.AttributeList JavaDoc;
38
39 import java.rmi.RemoteException JavaDoc;
40 import java.rmi.ServerException JavaDoc;
41
42 import javax.enterprise.deploy.spi.DeploymentManager JavaDoc;
43 //import org.netbeans.modules.j2ee.sun.share.management.ServerMEJB;
44
/**
45  *
46  * @author Nitya Doraisamy
47  */

48 public interface ServerInterface {
49     
50     Object JavaDoc getAttribute(ObjectName JavaDoc name, String JavaDoc attribute) throws MBeanException JavaDoc,
51         AttributeNotFoundException JavaDoc, InstanceNotFoundException JavaDoc, ReflectionException JavaDoc, RemoteException JavaDoc;
52     
53     
54     AttributeList JavaDoc getAttributes(ObjectName JavaDoc name, String JavaDoc[] attributes) throws
55         ReflectionException JavaDoc, InstanceNotFoundException JavaDoc, RemoteException JavaDoc;
56     
57     MBeanInfo JavaDoc getMBeanInfo(ObjectName JavaDoc name) throws IntrospectionException JavaDoc, InstanceNotFoundException JavaDoc,
58         ReflectionException JavaDoc, RemoteException JavaDoc;
59     
60     Object JavaDoc invoke(ObjectName JavaDoc name, String JavaDoc operationName, Object JavaDoc[] params, String JavaDoc[] signature) throws InstanceNotFoundException JavaDoc,
61         MBeanException JavaDoc, ReflectionException JavaDoc, RemoteException JavaDoc;
62     
63     void setAttribute(ObjectName JavaDoc name, javax.management.Attribute JavaDoc attribute) throws InstanceNotFoundException JavaDoc,
64         AttributeNotFoundException JavaDoc, InvalidAttributeValueException JavaDoc, MBeanException JavaDoc, ReflectionException JavaDoc, RemoteException JavaDoc;
65     
66     DeploymentManager JavaDoc getDeploymentManager();
67
68     void setDeploymentManager(DeploymentManager JavaDoc dm);
69     
70     MBeanServerConnection JavaDoc getMBeanServerConnection() throws RemoteException JavaDoc, ServerException JavaDoc;
71      
72     /*ServerMEJB*/Object JavaDoc getManagement();
73     
74     /* check if the dm is ok in term of user name and password,
75      * throws an IOexception if this is incorrect
76      * oterwise, returns normally
77      **/

78     void checkCredentials() throws IOException JavaDoc;
79     
80     String JavaDoc getWebModuleName(String JavaDoc contextRoot);
81 }
82
Popular Tags