KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectweb > petals > jbi > management > service > AdminServiceMBean


1 /**
2  * PETALS - PETALS Services Platform.
3  * Copyright (c) 2005 EBM Websourcing, http://www.ebmwebsourcing.com/
4  *
5  * This library is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU Lesser General Public
7  * License as published by the Free Software Foundation; either
8  * version 2.1 of the License, or (at your option) any later version.
9  * This library is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12  * Lesser General Public License for more details.
13  *
14  * You should have received a copy of the GNU Lesser General Public
15  * License along with this library; if not, write to the Free Software
16  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17  *
18  * -------------------------------------------------------------------------
19  * $Id: InstallationServiceMBean.java 154 2006-03-27 15:30:10Z ofabre $
20  * -------------------------------------------------------------------------
21  */

22 package org.objectweb.petals.jbi.management.service;
23
24 import javax.jbi.JBIException;
25 import javax.jbi.messaging.MessageExchange;
26 import javax.jbi.servicedesc.ServiceEndpoint;
27
28 import org.objectweb.petals.PetalsException;
29 import org.w3c.dom.Document JavaDoc;
30
31 /**
32  * The <code>AdminService</code> mbean implementation has to have its mbean
33  * interface in the same package as it.
34  *
35  * @author ofabre
36  *
37  */

38 public interface AdminServiceMBean extends
39     javax.jbi.management.AdminServiceMBean {
40
41     /**
42      * Get the service description for a endpoint of a component
43      *
44      * @param componentName
45      * name of the component
46      * @param endpoint
47      * endpoint
48      * @return Document containing the service description
49      */

50     Document JavaDoc getServiceDescription(String JavaDoc componentName,
51         ServiceEndpoint endpoint) throws PetalsException;
52
53     /**
54      * Check if a message exchange is okay with a provider
55      *
56      * @param componentName
57      * @param providerEP
58      * @param exchange
59      * @return
60      * @throws JBIException
61      * If no component is found with this component name
62      */

63     boolean isExchangeWithProviderOkayForComponent(String JavaDoc componentName,
64         ServiceEndpoint internalEndpoint, MessageExchange exchange)
65         throws JBIException;
66
67     /**
68      * Check if a message exchange is okay with a consumer
69      *
70      * @param componentName
71      * @param internalEndpoint
72      * @param exchange
73      * @return
74      * @throws JBIException
75      * If no component is found with this component name
76      */

77     boolean isExchangeWithConsumerOkayForComponent(String JavaDoc componentName,
78         ServiceEndpoint internalEndpoint, MessageExchange exchange)
79         throws JBIException;
80
81 }
82
Popular Tags