1 31 32 package org.objectweb.jonas.adm; 33 34 import java.rmi.Remote ; 35 import java.rmi.RemoteException ; 36 import java.util.Properties ; 37 import java.util.Vector ; 38 import java.util.List ; 39 40 import org.objectweb.jonas.ear.EarServiceException; 41 import org.objectweb.jonas.resource.ResourceServiceException; 42 import org.objectweb.jonas.web.JWebContainerServiceException; 43 44 52 public interface AdmInterface extends Remote { 53 54 public static final int TYPE_EJB = 1; 55 public static final int TYPE_WAR = 2; 56 public static final int TYPE_EAR = 3; 57 public static final int TYPE_RAR = 4; 58 public static final int TYPE_CAR = 5; 59 60 public static final int STATUS_RUNNING = 1; 61 public static final int STATUS_STOPPED = 2; 62 public static final int STATUS_ALL = 0; 63 64 70 public void addEar(String fileName) throws RemoteException , EarServiceException; 71 72 78 public void addRar(String fileName) throws RemoteException , ResourceServiceException; 79 80 86 public void addWar(String fileName) throws RemoteException , JWebContainerServiceException; 87 88 94 public void removeEar(String fileName) throws RemoteException , EarServiceException; 95 96 102 public void removeRar(String fileName) throws RemoteException , ResourceServiceException; 103 104 110 public void removeWar(String fileName) throws RemoteException , JWebContainerServiceException; 111 112 118 boolean isEarLoaded(String fileName) throws RemoteException , EarServiceException; 119 120 126 boolean isRarLoaded(String fileName) throws RemoteException , ResourceServiceException; 127 128 129 135 boolean isWarLoaded(String fileName) throws RemoteException , JWebContainerServiceException; 136 137 138 void addBeans(String fileName) throws RemoteException ; 139 void removeBeans(String fileName) throws RemoteException ; 140 boolean isLoaded(String fileName) throws RemoteException ; 141 String [] listBeans() throws RemoteException ; 142 String dumpCustom() throws RemoteException ; 143 Vector listContext() throws RemoteException ; 144 Properties listEnv() throws RemoteException ; 145 void stopServer() throws RemoteException ; 146 void killServer() throws RemoteException ; 147 boolean isEJBContainer() throws RemoteException ; 148 int getServerState() throws RemoteException ; 149 void setTransactionTimeout(int timeout) throws RemoteException ; 150 void runGC() throws RemoteException ; 151 void syncAllEntities(boolean passivate) throws RemoteException ; 152 String [] getTopics() throws RemoteException ; 153 String getTopicLevel(String topic) throws RemoteException ; 154 void setTopicLevel(String topic, String l) throws RemoteException ; 155 166 String deployFile(int type, byte[] file, String filename) 167 throws RemoteException , EarServiceException, ResourceServiceException, JWebContainerServiceException; 168 169 170 179 List listModules(int type, int state) throws RemoteException ; 180 181 188 public void undeployFile(String filename) throws RemoteException ; 189 } 190 | Popular Tags |