001: /*
002: * JOnAS: Java(TM) Open Application Server
003: * Copyright (C) 1999 Bull S.A.
004: * Contact: jonas-team@objectweb.org
005: *
006: * This library is free software; you can redistribute it and/or
007: * modify it under the terms of the GNU Lesser General Public
008: * License as published by the Free Software Foundation; either
009: * version 2.1 of the License, or any later version.
010: *
011: * This library is distributed in the hope that it will be useful,
012: * but WITHOUT ANY WARRANTY; without even the implied warranty of
013: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
014: * Lesser General Public License for more details.
015: *
016: * You should have received a copy of the GNU Lesser General Public
017: * License along with this library; if not, write to the Free Software
018: * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
019: * USA
020: *
021: * Initial developer(s): ____________________________________.
022: * Contributor(s): Michel Bruno and Guillaume Riviere
023: *
024: * --------------------------------------------------------------------------
025: * $Id: EJBServiceImplMBean.java 4630 2004-04-20 09:32:56Z danesa $
026: * --------------------------------------------------------------------------
027: */
028:
029: package org.objectweb.jonas.container;
030:
031: import java.util.List;
032: import java.util.Set;
033:
034: /**
035: * MBean Interface for EJB Service Management
036: * MBean type: Standard
037: * MBean model: Inheritance (EJBServiceImpl)
038: */
039: public interface EJBServiceImplMBean {
040:
041: /**
042: * @return Integer Total Number of Container actually in JOnAS
043: */
044: public Integer getCurrentNumberOfContainer();
045:
046: /**
047: * @return Integer Total Number of Bean Type actually in JOnAS
048: */
049: public Integer getTotalCurrentNumberOfBeanType();
050:
051: /**
052: * @return Integer Total Number of Bmp Type actually in JOnAS
053: */
054: public Integer getTotalCurrentNumberOfBMPType();
055:
056: /**
057: * @return Integer Total Number of Cmp Type actually in JOnAS
058: */
059: public Integer getTotalCurrentNumberOfCMPType();
060:
061: /**
062: * @return Integer Total Number of Sbf Type actually in JOnAS
063: */
064: public Integer getTotalCurrentNumberOfSBFType();
065:
066: /**
067: * @return Integer Total Number of Sbl Type actually in JOnAS
068: */
069: public Integer getTotalCurrentNumberOfSBLType();
070:
071: /**
072: * @return Integer Total Number of Mdb Type actually in JOnAS
073: */
074: public Integer getTotalCurrentNumberOfMDBType();
075:
076: /**
077: * MBean method
078: * @return the ObjectName of all the ejbs using this datasource
079: */
080: public Set getDataSourceDependence(String dsName);
081:
082: /**
083: * MBean method
084: * @return the ObjectName of all the ejb using this destination.
085: */
086: public Set getJmsDestinationDependence(String dsName);
087:
088: /**
089: * MBean method
090: * @return the ObjectName of all the ejb using this Connection Factory.
091: */
092: public Set getJmsConnectionFactoryDependence(String cfName);
093:
094: /**
095: * MBean method
096: * @return the ObjectName of all the ejb using a given Mail Factory.
097: */
098: public Set getMailFactoryDependence(String mfName);
099:
100: /**
101: * remove a container application
102: * @param String ContainerName, the Name of this container
103: */
104: public void removeContainerMBean(String fileName) throws Exception;
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 createContainerMBean(String file) throws Exception;
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 getInstalledJars() throws Exception;
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 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 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 getDeployableJars() throws Exception;
149:
150: /**
151: * Return the list of "autoload" directories for web applications.
152: * @return The list of all "autoload" directories
153: */
154: public List getAutoloadDirectories();
155:
156: /**
157: * Return the Ejbjars directory.
158: * @return The Ejbjars directory
159: */
160: public String getEjbjarsDirectory();
161:
162: }
|