00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
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
00046
00047
00048
00049
00050
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 }