KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectweb > carol > util > configuration > ProtocolConfigurationImplMBean


1 /**
2  * Copyright (C) 2005 - Bull S.A.
3  *
4  * CAROL: Common Architecture for RMI ObjectWeb Layer
5  *
6  * This library is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Lesser General Public
8  * License as published by the Free Software Foundation; either
9  * version 2.1 of the License, or any later version.
10  *
11  * This library is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14  * Lesser General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public
17  * License along with this library; if not, write to the Free Software
18  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
19  * USA
20  *
21  * --------------------------------------------------------------------------
22  * $Id: ProtocolConfigurationImplMBean.java,v 1.3 2005/04/28 11:37:26 benoitf Exp $
23  * --------------------------------------------------------------------------
24  */

25 package org.objectweb.carol.util.configuration;
26
27 import java.util.List JavaDoc;
28
29 import javax.naming.NamingException JavaDoc;
30
31 /**
32  * Defines the MBean interface. Don't use Models MBeans as it will imply some
33  * external libraries like commons-modeler (easier).
34  * @author Florent Benoit
35  */

36 public interface ProtocolConfigurationImplMBean {
37
38     /**
39      * Gets the provider URL of this configuration (Context.PROVIDER_URL)
40      * @return the provider URL of this configuration
41      */

42     String JavaDoc getProviderURL();
43
44     /**
45      * Gets the InitialContextFactory classname
46      * (Context.INITIAL_CONTEXT_FACTORY)
47      * @return the InitialContextFactory classname
48      */

49     String JavaDoc getInitialContextFactoryClassName();
50
51     /**
52      * Gets JNDI names of the context with this configuration
53      * @return JNDI names
54      * @throws NamingException if the names cannot be listed
55      */

56     List JavaDoc getNames() throws NamingException JavaDoc;
57
58     /**
59      * @return the name of the configuration
60      */

61     String JavaDoc getName();
62
63
64     /**
65      * @return Object Name
66      */

67     String JavaDoc getobjectName();
68
69
70     /**
71      * Sets the object name of this mbean
72      * @param name the Object Name
73      */

74     void setobjectName(String JavaDoc name);
75
76     /**
77      * @return true if it is an event provider
78      */

79     boolean iseventProvider();
80
81     /**
82      * @return true if this managed object implements J2EE State Management
83      * Model
84      */

85     boolean isstateManageable();
86
87     /**
88      * @return true if this managed object implements the J2EE StatisticProvider
89      * Model
90      */

91     boolean isstatisticsProvider();
92
93
94 }
95
Popular Tags