KickJava   Java API By Example, From Geeks To Geeks.

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


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 /*
25  * $Id: IResourcesMBean.java,v 1.4 2005/12/25 03:42:11 tcfujii Exp $
26  * author hamid@sun.com
27  */

28
29 package com.sun.enterprise.admin.mbeanapi;
30
31 import java.util.ArrayList JavaDoc;
32 import java.util.Properties JavaDoc;
33 import javax.management.AttributeList JavaDoc;
34 import javax.management.ObjectName JavaDoc;
35 import javax.management.MBeanException JavaDoc;
36
37 import com.sun.enterprise.admin.common.exception.JMSAdminException;
38 import com.sun.enterprise.admin.common.JMSStatus;
39 import com.sun.enterprise.admin.common.JMSDestinationInfo;
40
41 public interface IResourcesMBean {
42     
43     public ObjectName JavaDoc createCustomResource( AttributeList JavaDoc attrList,
44     Properties JavaDoc props,
45     String JavaDoc tgtName )
46     throws Exception JavaDoc;
47     
48     public ObjectName JavaDoc createExternalJndiResource( AttributeList JavaDoc attrList,
49     Properties JavaDoc props,
50     String JavaDoc tgtName)
51     throws Exception JavaDoc;
52     
53     public ObjectName JavaDoc createPersistenceManagerFactoryResource( AttributeList JavaDoc attrList,
54     Properties JavaDoc props,
55     String JavaDoc tgtName)
56     throws Exception JavaDoc;
57     
58     public ObjectName JavaDoc createPMFResourceWithJDBCResource( AttributeList JavaDoc attrList,
59     Properties JavaDoc props,
60     String JavaDoc tgtName)
61     throws Exception JavaDoc;
62     
63     public ObjectName JavaDoc createJmsConnectionFactory( AttributeList JavaDoc attrList,
64     Properties JavaDoc props,
65     String JavaDoc tgtName)
66     throws Exception JavaDoc;
67     
68     public ObjectName JavaDoc createJmsDestinationResource( AttributeList JavaDoc attrList,
69     Properties JavaDoc props,
70     String JavaDoc tgtName)
71     throws Exception JavaDoc;
72     
73     public ObjectName JavaDoc createJmsResource( AttributeList JavaDoc attrList,
74     Properties JavaDoc props,
75     String JavaDoc tgtName)
76     throws Exception JavaDoc;
77     
78     public ObjectName JavaDoc createJdbcConnectionPool( AttributeList JavaDoc attrList,
79     Properties JavaDoc props,
80     String JavaDoc tgtName)
81     throws Exception JavaDoc;
82     
83     public ObjectName JavaDoc createConnectorConnectionPool( AttributeList JavaDoc attrList,
84     Properties JavaDoc props,
85     String JavaDoc tgtName)
86     throws Exception JavaDoc;
87     
88     public ObjectName JavaDoc createConnectorResource( AttributeList JavaDoc attrList,
89     Properties JavaDoc props,
90     String JavaDoc tgtName)
91     throws Exception JavaDoc;
92     
93     public ObjectName JavaDoc createAdminObjectResource( AttributeList JavaDoc attrList,
94     Properties JavaDoc props,
95     String JavaDoc tgtName)
96     throws Exception JavaDoc;
97     
98     public ObjectName JavaDoc createJdbcResource( AttributeList JavaDoc attrList,
99     Properties JavaDoc props,
100     String JavaDoc tgtName)
101     throws Exception JavaDoc;
102     
103     public ObjectName JavaDoc createMailResource( AttributeList JavaDoc attrList,
104     Properties JavaDoc props,
105     String JavaDoc tgtName)
106     throws Exception JavaDoc;
107     
108     public ObjectName JavaDoc createResourceAdapterConfig( AttributeList JavaDoc attrList,
109     Properties JavaDoc props,
110     String JavaDoc tgtName)
111     throws Exception JavaDoc;
112     
113     /**
114      * GETTER Methods for resources
115      */

116     public ObjectName JavaDoc getCustomResourceByJndiName( String JavaDoc key, String JavaDoc tgtName )
117     throws Exception JavaDoc;
118     
119     public ObjectName JavaDoc getJdbcResourceByJndiName( String JavaDoc key, String JavaDoc tgtName )
120     throws Exception JavaDoc;
121     
122     public ObjectName JavaDoc getJdbcConnectionPoolByName( String JavaDoc key, String JavaDoc tgtName )
123     throws Exception JavaDoc;
124     
125     public ObjectName JavaDoc getExternalJndiResourceByJndiName( String JavaDoc key, String JavaDoc tgtName )
126     throws Exception JavaDoc;
127     
128     public ObjectName JavaDoc getMailResourceByJndiName( String JavaDoc key, String JavaDoc tgtName )
129     throws Exception JavaDoc;
130     
131     public ObjectName JavaDoc getConnectorResourceByJndiName( String JavaDoc key, String JavaDoc tgtName )
132     throws Exception JavaDoc;
133     
134     public ObjectName JavaDoc getResourceAdapterConfigByResourceAdapterName( String JavaDoc key, String JavaDoc tgtName )
135     throws Exception JavaDoc;
136     
137     public ObjectName JavaDoc getAdminObjectResourceByJndiName( String JavaDoc key, String JavaDoc tgtName )
138     throws Exception JavaDoc;
139     
140     public ObjectName JavaDoc getPersistenceManagerFactoryResourceByJndiName( String JavaDoc key, String JavaDoc tgtName )
141     throws Exception JavaDoc;
142     
143     public ObjectName JavaDoc getConnectorConnectionPoolByName( String JavaDoc key, String JavaDoc tgtName )
144     throws Exception JavaDoc;
145     
146     public ObjectName JavaDoc[] getCustomResource( String JavaDoc tgtName )
147     throws Exception JavaDoc;
148     
149     public ObjectName JavaDoc[] getPersistenceManagerFactoryResource( String JavaDoc tgtName )
150     throws Exception JavaDoc;
151     
152     public ObjectName JavaDoc[] getJmsResource( String JavaDoc tgtName )
153     throws Exception JavaDoc;
154     
155     public ObjectName JavaDoc[] getJmsConnectionFactory( String JavaDoc tgtName )
156     throws Exception JavaDoc;
157     
158     public ObjectName JavaDoc[] getJmsDestinationResource( String JavaDoc tgtName )
159     throws Exception JavaDoc;
160     
161     public ObjectName JavaDoc[] getJmsResource( String JavaDoc resType, String JavaDoc tgtName )
162     throws Exception JavaDoc;
163     
164     public ObjectName JavaDoc[] getJdbcConnectionPool( String JavaDoc tgtName )
165     throws Exception JavaDoc;
166     
167     public ObjectName JavaDoc[] getConnectorResource( String JavaDoc tgtName )
168     throws Exception JavaDoc;
169     
170     public ObjectName JavaDoc[] getAdminObjectResource( String JavaDoc tgtName )
171     throws Exception JavaDoc;
172     
173     public ObjectName JavaDoc[] getConnectorConnectionPool( String JavaDoc tgtName )
174     throws Exception JavaDoc;
175     
176     public ObjectName JavaDoc[] getJdbcResource( String JavaDoc tgtName )
177     throws Exception JavaDoc;
178     
179     public ObjectName JavaDoc[] getResourceAdapterConfig( String JavaDoc tgtName )
180     throws Exception JavaDoc;
181     
182     public String JavaDoc getResourceAdapterConfig( String JavaDoc resAdapterConfig, Boolean JavaDoc verbose, String JavaDoc tgtName )
183     throws Exception JavaDoc;
184     
185     
186     public ObjectName JavaDoc[] getMailResource( String JavaDoc tgtName )
187     throws Exception JavaDoc;
188     
189     public ObjectName JavaDoc[] getExternalJndiResource( String JavaDoc tgtName )
190     throws Exception JavaDoc;
191     
192     public void deleteCustomResource( String JavaDoc name, String JavaDoc tgtName )
193     throws Exception JavaDoc;
194     
195     public void deleteJdbcConnectionPool( String JavaDoc name, String JavaDoc tgtName )
196     throws Exception JavaDoc;
197     
198     public void deleteJdbcConnectionPool( String JavaDoc name, Boolean JavaDoc cascade, String JavaDoc tgtName )
199     throws Exception JavaDoc;
200     
201     public void deletePersistenceManagerFactoryResource( String JavaDoc name, String JavaDoc tgtName )
202     throws Exception JavaDoc;
203     
204     public void deleteJmsConenctionFactory( String JavaDoc name, String JavaDoc tgtName )
205     throws Exception JavaDoc;
206     
207     public void deleteJmsDestinationResource( String JavaDoc name, String JavaDoc tgtName )
208     throws Exception JavaDoc;
209     
210     public void deleteJmsResource( String JavaDoc name, String JavaDoc tgtName )
211     throws Exception JavaDoc;
212     
213     public void deleteConnectorResource( String JavaDoc name, String JavaDoc tgtName )
214     throws Exception JavaDoc;
215     
216     public void deleteAdminObjectResource( String JavaDoc name, String JavaDoc tgtName )
217     throws Exception JavaDoc;
218     
219     public void deleteConnectorConnectionPool( String JavaDoc name, String JavaDoc tgtName )
220     throws Exception JavaDoc;
221     
222     public void deleteConnectorConnectionPool( String JavaDoc name, Boolean JavaDoc cascade, String JavaDoc tgtName )
223     throws Exception JavaDoc;
224     
225     public void deleteJdbcResource( String JavaDoc name, String JavaDoc tgtName )
226     throws Exception JavaDoc;
227     
228     public void deleteResourceAdapterConfig( String JavaDoc name, String JavaDoc tgtName )
229     throws Exception JavaDoc;
230     
231     public void deleteMailResource( String JavaDoc name, String JavaDoc tgtName )
232     throws Exception JavaDoc;
233     
234     public void deleteExternalJndiResource( String JavaDoc name, String JavaDoc tgtName )
235     throws Exception JavaDoc;
236     
237     public ArrayList JavaDoc createResource(String JavaDoc resourceXMLFile, String JavaDoc tgtName)
238     throws Exception JavaDoc;
239     
240     public String JavaDoc[] getConnectionDefinitionNames(String JavaDoc rarName)
241     throws Exception JavaDoc;
242     
243     public Properties JavaDoc getResourceAdapterConfigProps(AttributeList JavaDoc attrList)
244     throws Exception JavaDoc;
245     
246     public Properties JavaDoc getMCFConfigProps(AttributeList JavaDoc attrList)
247     throws Exception JavaDoc;
248     
249     public Properties JavaDoc getAdminObjectConfigProps(AttributeList JavaDoc attrList)
250     throws Exception JavaDoc;
251     
252     public String JavaDoc[] getAdminObjectInterfaceNames(String JavaDoc rarName)
253     throws Exception JavaDoc;
254     
255     public Boolean JavaDoc pingConnectionPool(String JavaDoc poolName, String JavaDoc tgtName) throws Exception JavaDoc;
256     
257     public JMSStatus JMSPing() throws JMSAdminException;
258     
259     public JMSStatus JMSPing(String JavaDoc username, String JavaDoc password, int port)
260     throws JMSAdminException;
261     
262     public void createJMSDestination(String JavaDoc destName, String JavaDoc destType, Properties JavaDoc destProps, String JavaDoc tgtName)
263     throws JMSAdminException;
264     
265     
266     public void deleteJMSDestination(String JavaDoc destName, String JavaDoc destType, String JavaDoc tgtName)
267     throws JMSAdminException;
268
269     public void flushJMSDestination(String JavaDoc destName, String JavaDoc destType, String JavaDoc tgtName)
270     throws JMSAdminException;
271
272     public JMSDestinationInfo[] listJMSDestinations(String JavaDoc destType, String JavaDoc tgtName)
273     throws JMSAdminException;
274     
275     public void createPhysicalDestination(AttributeList JavaDoc attrList ,Properties JavaDoc props,
276     String JavaDoc target)throws JMSAdminException,MBeanException JavaDoc;
277     
278     public void deletePhysicalDestination(String JavaDoc destName, String JavaDoc destType,
279     String JavaDoc target)throws JMSAdminException,MBeanException JavaDoc;
280     
281     public ObjectName JavaDoc[] listPhysicalDestinations(String JavaDoc target)
282     throws JMSAdminException,MBeanException JavaDoc;
283     
284     public String JavaDoc[] getMessageListenerTypes(String JavaDoc raName)
285     throws Exception JavaDoc;
286     
287     public Properties JavaDoc getActivationConfProps(String JavaDoc raName,
288     String JavaDoc msgLsnrType)
289     throws Exception JavaDoc;
290     
291     
292     public Properties JavaDoc getActivationConfPropTypes(String JavaDoc raName,
293     String JavaDoc msgLsnrType)
294     throws Exception JavaDoc;
295 }
296
297
Popular Tags