KickJava   Java API By Example, From Geeks To Geeks.

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


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 package org.netbeans.modules.j2ee.sun.api;
21
22 import java.beans.PropertyChangeListener JavaDoc;
23 import java.io.File JavaDoc;
24 import java.util.HashMap JavaDoc;
25 import org.openide.nodes.Node;
26
27 /**
28  * Extensions specific to our sun deployment manager
29  * @author vkraemer
30  */

31 public interface SunDeploymentManagerInterface extends Node.Cookie{
32
33     /* return the user name used for this deploymment manager*/
34     String JavaDoc getUserName();
35
36     /* return the user password used for this deploymment manager*/
37     String JavaDoc getPassword();
38     
39     /* set the user name used for this deploymment manager*/
40     void setUserName(String JavaDoc name);
41     
42     /* set the user password used for this deploymment manager*/
43     void setPassword(String JavaDoc pw);
44     
45     /* return the hostname name used for this deploymment manager*/
46     String JavaDoc getHost();
47     
48     /* return the port used for this deploymment manager*/
49     int getPort();
50     
51     /*
52      * return the real http port for the server. Usually, it is "8080", or null if the server is not running
53      *
54      **/

55      String JavaDoc getNonAdminPortNumber() ;
56      
57     /* tells if deploymment manager is this local machine or not*/
58     boolean isLocal();
59     
60     /* return true is this deploymment manager is running*/
61     boolean isRunning();
62     /* return true is this deploymment manager is running,
63      * if forced is true, no caching of the value is done, so the latest status is available in real time
64      */

65     boolean isRunning(boolean forced);
66     
67         /* return true is this deploymment manager needs a restart, because of changes in admin configuration*/
68     public boolean isRestartNeeded();
69     
70     /* return true is this deploymment manager is secure, i.e is using https instead of http protocol*/
71     boolean isSecure();
72     
73    ServerInterface/* ServerMEJB*/ getManagement();
74     
75 /// MBeanServerConnection getMBeanServerConnection() throws RemoteException, ServerException;
76
/*
77     * necessary to fix some jpda bug due to dt_socket in Windows only platform
78     */

79    void fixJVMDebugOptions() throws java.rmi.RemoteException JavaDoc;
80    String JavaDoc getDebugAddressValue() throws java.rmi.RemoteException JavaDoc;
81    boolean isDebugSharedMemory() throws java.rmi.RemoteException JavaDoc;
82    
83    ResourceConfiguratorInterface getResourceConfigurator();
84    
85    boolean isSuspended();
86    /*
87     * force a refresh of the internal Deployment manager.
88     * Sometimes useful to reset a few calculated values.
89     *
90     **/

91    void refreshDeploymentManager();
92    
93    /*
94     * return the App Server installation root used for getting the extra jar for this Deployment
95     * manager
96     * might return null if not a valid directory
97     * usually, this is not stored within the DM URI and correctly calculated when ytou create the DM.
98     
99     */

100    File JavaDoc getPlatformRoot();
101    
102    HashMap JavaDoc getSunDatasourcesFromXml();
103    
104    HashMap JavaDoc getConnPoolsFromXml();
105
106    
107        /** Registers new listener. */
108     void addPropertyChangeListener(PropertyChangeListener JavaDoc l);
109     
110     /** Unregister the listener. */
111     void removePropertyChangeListener(PropertyChangeListener JavaDoc l);
112     
113     boolean grabInnerDM(boolean returnInsteadOfWaiting);
114     
115     void releaseInnerDM();
116 }
117
Popular Tags