KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectweb > jonas > container > EJBServiceImplMBean


1 /*
2  * JOnAS: Java(TM) Open Application Server
3  * Copyright (C) 1999 Bull S.A.
4  * Contact: jonas-team@objectweb.org
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  * Initial developer(s): ____________________________________.
22  * Contributor(s): Michel Bruno and Guillaume Riviere
23  *
24  * --------------------------------------------------------------------------
25  * $Id: EJBServiceImplMBean.java,v 1.10 2004/04/20 09:32:56 danesa Exp $
26  * --------------------------------------------------------------------------
27  */

28
29 package org.objectweb.jonas.container;
30
31 import java.util.List JavaDoc;
32 import java.util.Set JavaDoc;
33
34 /**
35  * MBean Interface for EJB Service Management
36  * MBean type: Standard
37  * MBean model: Inheritance (EJBServiceImpl)
38  */

39 public interface EJBServiceImplMBean {
40
41     /**
42      * @return Integer Total Number of Container actually in JOnAS
43      */

44     public Integer JavaDoc getCurrentNumberOfContainer();
45
46     /**
47      * @return Integer Total Number of Bean Type actually in JOnAS
48      */

49     public Integer JavaDoc getTotalCurrentNumberOfBeanType();
50
51     /**
52      * @return Integer Total Number of Bmp Type actually in JOnAS
53      */

54     public Integer JavaDoc getTotalCurrentNumberOfBMPType();
55
56     /**
57      * @return Integer Total Number of Cmp Type actually in JOnAS
58      */

59     public Integer JavaDoc getTotalCurrentNumberOfCMPType();
60
61     /**
62      * @return Integer Total Number of Sbf Type actually in JOnAS
63      */

64     public Integer JavaDoc getTotalCurrentNumberOfSBFType();
65
66     /**
67      * @return Integer Total Number of Sbl Type actually in JOnAS
68      */

69     public Integer JavaDoc getTotalCurrentNumberOfSBLType();
70
71     /**
72      * @return Integer Total Number of Mdb Type actually in JOnAS
73      */

74     public Integer JavaDoc getTotalCurrentNumberOfMDBType();
75
76     /**
77      * MBean method
78      * @return the ObjectName of all the ejbs using this datasource
79      */

80     public Set JavaDoc getDataSourceDependence(String JavaDoc dsName);
81
82     /**
83      * MBean method
84      * @return the ObjectName of all the ejb using this destination.
85      */

86     public Set JavaDoc getJmsDestinationDependence(String JavaDoc dsName);
87
88     /**
89      * MBean method
90      * @return the ObjectName of all the ejb using this Connection Factory.
91      */

92     public Set JavaDoc getJmsConnectionFactoryDependence(String JavaDoc cfName);
93
94     /**
95      * MBean method
96      * @return the ObjectName of all the ejb using a given Mail Factory.
97      */

98     public Set JavaDoc getMailFactoryDependence(String JavaDoc mfName);
99
100     /**
101      * remove a container application
102      * @param String ContainerName, the Name of this container
103      */

104     public void removeContainerMBean(String JavaDoc fileName) throws Exception JavaDoc;
105
106     /**
107      * Create an ejb container for the EJBs contained in a .jar (or .xml) file
108      * @param file Name of the file to be deployed
109      * @return The ObjectName of the MBean associated to the container (to the deployed module)
110      */

111     public String JavaDoc createContainerMBean(String JavaDoc file) throws Exception JavaDoc;
112
113     /**
114      * Return the list of installed EJB containers.
115      * The JAR files or the directories with expanded EJB container are searched
116      * in JONAS_BASE/ejbjars and all ejbjar directories 'autoload'.
117      * @return The list of JAR files or the directories with expanded EJB container found
118      * @throws Exception if the list can't be retrieved
119      */

120     public List JavaDoc getInstalledJars() throws Exception JavaDoc;
121
122     /**
123      * Synchronized all entity bean containers
124      * @param passivate passivate instances after synchronization.
125      */

126     public void syncAllEntities(boolean passivate);
127
128     /**
129      * Test if the specified filename is already deployed or not
130      * @param fileName the name of the jar file.
131      * @return true if the jar is deployed, else false.
132      */

133     public boolean isJarLoaded(String JavaDoc fileName);
134
135     /**
136      * Return the list of all loaded EJB container.
137      *
138      * @return The list of deployed EJB container
139      */

140     public List JavaDoc getDeployedJars();
141
142     /**
143      * Return the list of installed EJB container ready to deploy.
144      *
145      * @return The list of deployable EJB container
146      * @throws Exception
147      */

148     public List JavaDoc getDeployableJars() throws Exception JavaDoc;
149
150     /**
151      * Return the list of "autoload" directories for web applications.
152      * @return The list of all "autoload" directories
153      */

154     public List JavaDoc getAutoloadDirectories();
155
156     /**
157      * Return the Ejbjars directory.
158      * @return The Ejbjars directory
159      */

160     public String JavaDoc getEjbjarsDirectory();
161
162
163 }
164
Popular Tags