KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sun > enterprise > admin > mbeanapi > IApplicationsConfigMBean


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.admin.mbeanapi;
25
26 import java.util.Properties JavaDoc;
27
28 import javax.management.MBeanException JavaDoc;
29 import javax.management.ObjectName JavaDoc;
30
31 import com.sun.enterprise.admin.common.exception.DeploymentException;
32 import com.sun.enterprise.admin.common.exception.ServerInstanceException;
33 import com.sun.enterprise.admin.common.exception.MBeanConfigException;
34 import com.sun.enterprise.deployment.backend.DeploymentStatus;
35
36 public interface IApplicationsConfigMBean {
37     
38     public DeploymentStatus deploy(Properties JavaDoc props)
39         throws MBeanException JavaDoc, DeploymentException;
40    
41     public DeploymentStatus undeploy(Properties JavaDoc props)
42         throws MBeanException JavaDoc, DeploymentException;
43
44     public boolean deployJ2EEApplication(Properties JavaDoc props)
45         throws MBeanException JavaDoc, DeploymentException;
46     
47     public boolean deployEJBJarModule(Properties JavaDoc props)
48         throws MBeanException JavaDoc, DeploymentException;
49       
50     public boolean deployWarModule(Properties JavaDoc props)
51         throws MBeanException JavaDoc, DeploymentException;
52                 
53     public boolean deployConnectorModule(Properties JavaDoc props)
54         throws MBeanException JavaDoc, DeploymentException;
55     
56     public String JavaDoc[] getTargets()
57         throws MBeanException JavaDoc, MBeanConfigException;
58
59     public String JavaDoc[] getAvailableModules(String JavaDoc moduleType)
60         throws MBeanException JavaDoc, MBeanConfigException;
61     
62     public String JavaDoc[] getAvailableModules(String JavaDoc moduleType, String JavaDoc[] targetList)
63         throws MBeanException JavaDoc, MBeanConfigException;
64     
65     public String JavaDoc[] getRunningModules(String JavaDoc moduleType, String JavaDoc[] targetList)
66         throws MBeanException JavaDoc, MBeanConfigException;
67     
68     public String JavaDoc[] getNonRunningModules(String JavaDoc moduleType, String JavaDoc[] targetList)
69         throws MBeanException JavaDoc, MBeanConfigException;
70     
71     public String JavaDoc[] getDeployedJ2EEApplications()
72         throws MBeanException JavaDoc, ServerInstanceException;
73       
74     public String JavaDoc[] getDeployedEJBModules()
75         throws MBeanException JavaDoc, ServerInstanceException;
76
77     public String JavaDoc[] getDeployedWebModules()
78         throws MBeanException JavaDoc, ServerInstanceException;
79     
80     public String JavaDoc[] getDeployedConnectors()
81         throws MBeanException JavaDoc, ServerInstanceException;
82     
83     public ObjectName JavaDoc[] getAllDeployedComponents()
84         throws MBeanException JavaDoc, ServerInstanceException;
85
86     public ObjectName JavaDoc[] getAllDeployedJ2EEApplications()
87         throws MBeanException JavaDoc, ServerInstanceException;
88     
89     public ObjectName JavaDoc[] getAllDeployedEJBModules()
90         throws MBeanException JavaDoc, ServerInstanceException;
91     
92     public ObjectName JavaDoc[] getAllDeployedWebModules()
93         throws MBeanException JavaDoc, ServerInstanceException;
94     
95     
96     public ObjectName JavaDoc[] getAllDeployedConnectors()
97         throws MBeanException JavaDoc, ServerInstanceException;
98     
99     public ObjectName JavaDoc[] getAllDeployedComponents(String JavaDoc target)
100         throws MBeanException JavaDoc, ServerInstanceException;
101     
102     public ObjectName JavaDoc[] getAllDeployedJ2EEApplications(String JavaDoc target)
103         throws MBeanException JavaDoc, ServerInstanceException;
104
105
106     public ObjectName JavaDoc[] getAllDeployedEJBModules(String JavaDoc target)
107         throws MBeanException JavaDoc, ServerInstanceException;
108  
109     public ObjectName JavaDoc[] getAllDeployedWebModules(String JavaDoc target)
110         throws MBeanException JavaDoc, ServerInstanceException;
111  
112     public ObjectName JavaDoc[] getAllDeployedConnectors(String JavaDoc target)
113         throws MBeanException JavaDoc, ServerInstanceException;
114     
115
116     public ObjectName JavaDoc[] getAllDeployedAppclientModules(String JavaDoc target)
117         throws MBeanException JavaDoc, ServerInstanceException;
118     
119     public void associate(String JavaDoc appName, String JavaDoc target)
120         throws MBeanException JavaDoc, MBeanConfigException;
121     
122     public void disassociate(String JavaDoc appName, String JavaDoc target)
123         throws MBeanException JavaDoc, MBeanConfigException;
124     
125     public void enable(String JavaDoc appName, String JavaDoc type, String JavaDoc target)
126         throws MBeanException JavaDoc, MBeanConfigException;
127
128     public void disable(String JavaDoc appName, String JavaDoc type, String JavaDoc target)
129         throws MBeanException JavaDoc, MBeanConfigException;
130     
131     public boolean getStatus(String JavaDoc name, String JavaDoc target)
132         throws MBeanException JavaDoc, MBeanConfigException;
133     
134     public boolean isRedeploySupported()
135         throws MBeanException JavaDoc, MBeanConfigException;
136     
137   
138     public String JavaDoc[] getAvailableVersions(String JavaDoc appName, String JavaDoc type)
139         throws MBeanException JavaDoc, MBeanConfigException;
140         
141     public String JavaDoc getDefaultVersion(String JavaDoc appName, String JavaDoc type)
142         throws MBeanException JavaDoc, MBeanConfigException;
143         
144     public String JavaDoc getLastModified(String JavaDoc appName, String JavaDoc type)
145         throws MBeanException JavaDoc, MBeanConfigException;
146     
147     public boolean isRepositoryCleanerEnabled()
148         throws MBeanException JavaDoc, MBeanConfigException;
149     
150
151     public int getRepositoryCleanerPollingInterval()
152         throws MBeanException JavaDoc, MBeanConfigException;
153     
154     public void setRepositoryCleanerPollingInterval(int interval)
155         throws MBeanException JavaDoc, MBeanConfigException;
156     
157     public int getMaxApplicationVersions()
158         throws MBeanException JavaDoc, MBeanConfigException;
159         
160     public void setMaxApplicationVersions(int maxVersions)
161         throws MBeanException JavaDoc, MBeanConfigException;
162         
163     public boolean isAutoDeployEnabled()
164         throws MBeanException JavaDoc, MBeanConfigException;
165     
166     public void setAutoDeployEnabled()
167         throws MBeanException JavaDoc, MBeanConfigException;
168
169     public boolean isAutoDeployJspPreCompilationEnabled()
170         throws MBeanException JavaDoc, MBeanConfigException;
171     
172     public void setAutoDeployJspPreCompilationEnabled()
173         throws MBeanException JavaDoc, MBeanConfigException;
174     
175     public String JavaDoc[] getModuleComponents(String JavaDoc standAloneModuleName)
176         throws MBeanException JavaDoc, ServerInstanceException;
177
178     public String JavaDoc[] getModuleComponents(String JavaDoc appName, String JavaDoc modName)
179         throws MBeanException JavaDoc, ServerInstanceException;
180
181     public String JavaDoc[] getAllSystemConnectors()
182         throws MBeanException JavaDoc, ServerInstanceException;
183 }
184
Popular Tags