AdmInterface.java

00001 /*
00002  * JOnAS: Java(TM) Open Application Server
00003  * Copyright (C) 1999 Bull S.A.
00004  * Contact: jonas-team@objectweb.org
00005  * 
00006  * This library is free software; you can redistribute it and/or
00007  * modify it under the terms of the GNU Lesser General Public
00008  * License as published by the Free Software Foundation; either
00009  * version 2.1 of the License, or any later version.
00010  * 
00011  * This library is distributed in the hope that it will be useful,
00012  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00013  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00014  * Lesser General Public License for more details.
00015  * 
00016  * You should have received a copy of the GNU Lesser General Public
00017  * License along with this library; if not, write to the Free Software
00018  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307
00019  * USA
00020  *
00021  * Initial developer(s): ____________________________________.
00022  * Contributor(s): ______________________________________.
00023  * JOnAS 2.4 Murad Meghani (Murad.Meghani@compuware.com) killServer and stopServer
00024  * JOnAS 2.5 2002.06 Florent Benoit & Ludovic Bert : 
00025  *                   Methods for wars and ear files
00026  * Dean Jennings = add deployFile
00027  * --------------------------------------------------------------------------
00028  * $Id: AdmInterface.java,v 1.22 2004/03/02 08:43:31 benoitf Exp $
00029  * --------------------------------------------------------------------------
00030  */
00031 
00032 package org.objectweb.jonas.adm;
00033 
00034 import java.rmi.Remote;
00035 import java.rmi.RemoteException;
00036 import java.util.Properties;
00037 import java.util.Vector;
00038 import java.util.List;
00039 
00040 import org.objectweb.jonas.ear.EarServiceException;
00041 import org.objectweb.jonas.resource.ResourceServiceException;
00042 import org.objectweb.jonas.web.JWebContainerServiceException;
00043 
00044 /*
00045  * JOnAS Administration Remote Interface.
00046  * This is used basically by jonas admin.
00047  * @author Philippe Coq
00048  * Contributor(s):
00049  * Murad Meghani (Murad.Meghani@compuware.com) killServer and stopServer
00050  * Florent Benoit & Ludovic Bert : Methods for wars and ear files
00051  */
00052 public interface AdmInterface extends Remote {
00053 
00054     public static final int TYPE_EJB = 1;
00055     public static final int TYPE_WAR = 2;
00056     public static final int TYPE_EAR = 3;
00057     public static final int TYPE_RAR = 4;
00058     public static final int TYPE_CAR = 5;
00059 
00060     public static final int STATUS_RUNNING = 1;
00061     public static final int STATUS_STOPPED = 2;
00062     public static final int STATUS_ALL = 0;
00063 
00070     public void addEar(String fileName) throws RemoteException, EarServiceException;
00071 
00078     public void addRar(String fileName) throws RemoteException, ResourceServiceException;
00079 
00086     public void addWar(String fileName) throws RemoteException, JWebContainerServiceException;
00087 
00094     public void removeEar(String fileName) throws RemoteException, EarServiceException;
00095 
00102     public void removeRar(String fileName) throws RemoteException, ResourceServiceException;
00103 
00110     public void removeWar(String fileName) throws RemoteException, JWebContainerServiceException;
00111 
00118     boolean isEarLoaded(String fileName) throws RemoteException, EarServiceException;
00119 
00126     boolean isRarLoaded(String fileName) throws RemoteException, ResourceServiceException;
00127 
00128 
00135     boolean isWarLoaded(String fileName) throws RemoteException, JWebContainerServiceException;
00136 
00137 
00138     void addBeans(String fileName) throws RemoteException;
00139     void removeBeans(String fileName) throws RemoteException;
00140     boolean isLoaded(String fileName) throws RemoteException;
00141     String [] listBeans() throws RemoteException;
00142     Vector listContext() throws RemoteException;
00143     Properties listEnv() throws RemoteException;
00144     void stopServer() throws RemoteException;
00145     void killServer() throws RemoteException;
00146     boolean isEJBContainer() throws RemoteException;
00147     int getServerState() throws RemoteException;
00148     void setTransactionTimeout(int timeout) throws RemoteException;
00149     void runGC() throws RemoteException;
00150     void syncAllEntities(boolean passivate) throws RemoteException;
00151     String [] getTopics() throws RemoteException;
00152     String getTopicLevel(String topic) throws RemoteException;
00153     void setTopicLevel(String topic, String l) throws RemoteException;
00165     String deployFile(int type, byte[] file, String filename) 
00166                throws RemoteException , EarServiceException, ResourceServiceException, JWebContainerServiceException;
00167 
00168 
00178     List listModules(int type, int state) throws RemoteException;
00179 
00187     public void undeployFile(String filename) throws RemoteException;
00188 }

Generated on Tue Feb 15 15:05:13 2005 for JOnAS by  doxygen 1.3.9.1