| java.lang.Object javax.rmi.PortableRemoteObject org.objectweb.jonas.adm.Adm
Adm | public class Adm extends PortableRemoteObject implements AdmInterface(Code) | | This class implements a remote interface used for administering the server.
author: Philippe Coq author: Philippe Durieux author: Marc Dutoo, JOnAS 2.4 author: Murad Meghani (Murad.Meghani@compuware.com) killServer and stopServer author: Florent Benoit & Ludovic Bert : Methods for wars and ear files JOnAS author: 2.5 2002.06 author: Dean Jennings : add deployFile |
Constructor Summary | |
public | Adm(JProp jp) |
ADMNAME_SUFFIX | final public static String ADMNAME_SUFFIX(Code) | | |
NOT_READY | final public static int NOT_READY(Code) | | |
READY | final public static int READY(Code) | | |
SLEEP_DELAY | final public static int SLEEP_DELAY(Code) | | Sleep before exit of JVM
|
STOPPED | final public static int STOPPED(Code) | | |
mydomain | J2EEDomain mydomain(Code) | | Reference on the J2EEDomain
Used to access other servers and clusters in the domain.
|
addBeans | public void addBeans(String fileName) throws RemoteException(Code) | | Create a container and load beans in it
Parameters: fileName - name of the ejb-jar or xml file |
deployFileOn | public void deployFileOn(String filename, String[] target) throws RemoteException(Code) | | Deploy file on another server or a cluster.
Parameters: filename - Name of the file Parameters: target - List of clusters or servers where to deploy the file. throws: RemoteException - |
getServerState | public int getServerState() throws RemoteException(Code) | | To test if the server is ready
int 0=not ready, 1=ready, 2=stopped |
isEJBContainer | public boolean isEJBContainer() throws RemoteException(Code) | | To test if the server is an EJB container
|
isLoaded | public boolean isLoaded(String fileName) throws RemoteException(Code) | | returns true if beans are already loaded in server.
Parameters: fileName - name of the ejb-jar or xml file |
listEnv | public Properties listEnv()(Code) | | List Environment (configuration properties provided by the configuration
file).
|
listModules | public List listModules(int type, int state) throws RemoteException(Code) | | List modules, needed for Ishmael to work. Currently only lists top level
modules. It does need to do sub elements of ears in the future.
Parameters: type - type of the file (EJB, WAR, EAR, RAR, CAR) Parameters: state - status of the modules to be returned (RUNNING, STOPPED, ALL) throws: RemoteException - author: Dean Jennings. |
removeBeans | public void removeBeans(String fileName) throws RemoteException(Code) | | Remove the container identified by fileName and remove all beans in it
Parameters: fileName - name of the ejb-jar or xml file |
serverReady | public void serverReady(boolean isEJB)(Code) | | server is ready
|
setTransactionTimeout | public void setTransactionTimeout(int timeout) throws RemoteException(Code) | | set the default value for transaction timeout
|
startRemoteServers | public void startRemoteServers(String[] target) throws RemoteException(Code) | | Start remote servers or clusters
Parameters: target - List of clusters or servers to start throws: RemoteException - |
syncAllEntities | public void syncAllEntities(boolean passivate) throws RemoteException(Code) | | sync all entity instances outside transactions
Parameters: passivate - passivate instances after synchronization. |
undeployFile | public void undeployFile(String filename) throws RemoteException(Code) | | Physically remove the module from the server
Parameters: filename - the filename of the module to be removed throws: RemoteException - author: Dean Jennings. |
|
|