org.objectweb.jonas.adm.Adm Class Reference

List of all members.

Public Member Functions

 Adm (JProp jp) throws RemoteException, NamingException, ServiceException, Exception
String[] getTopics () throws RemoteException
String getTopicLevel (String topic) throws RemoteException
void setTopicLevel (String topic, String l) throws RemoteException
void addBeans (String fileName) throws RemoteException
void addEar (String fileName) throws RemoteException, EarServiceException
boolean isEarLoaded (String fileName) throws RemoteException, EarServiceException
void addRar (String fileName) throws RemoteException, ResourceServiceException
boolean isRarLoaded (String fileName) throws RemoteException, ResourceServiceException
void addWar (String fileName) throws RemoteException, JWebContainerServiceException
boolean isWarLoaded (String fileName) throws RemoteException, JWebContainerServiceException
void removeEar (String fileName) throws RemoteException, EarServiceException
void removeRar (String fileName) throws RemoteException, ResourceServiceException
void removeWar (String fileName) throws RemoteException, JWebContainerServiceException
void removeBeans (String fileName) throws RemoteException
boolean isLoaded (String fileName) throws RemoteException
String[] listBeans () throws RemoteException
Vector listContext () throws RemoteException
Properties listEnv ()
void stopServer () throws RemoteException
void killServer () throws RemoteException
int getServerState () throws RemoteException
boolean isEJBContainer () throws RemoteException
void setTransactionTimeout (int timeout) throws RemoteException
void runGC () throws RemoteException
void syncAllEntities (boolean passivate) throws RemoteException
void serverReady (boolean isEJB)
String deployFile (int type, byte[] bfile, String filename) throws RemoteException , EarServiceException, JWebContainerServiceException
List listModules (int type, int state) throws RemoteException
void undeployFile (String filename) throws RemoteException

Detailed Description

This class implements a remote interface used for administering the server.
Author:
Philippe Coq, Philippe Durieux Contributor(s): Marc Dutoo, JOnAS 2.4 Murad Meghani (Murad.Meghani@compuware.com) killServer and stopServer JOnAS 2.5 2002.06 Florent Benoit & Ludovic Bert : Methods for wars and ear files Dean Jennings : add deployFile

Definition at line 82 of file Adm.java.


Constructor & Destructor Documentation

org.objectweb.jonas.adm.Adm.Adm JProp  jp  )  throws RemoteException, NamingException, ServiceException, Exception
 

Adm constructor

Exceptions:
RemoteException if problem

Definition at line 123 of file Adm.java.


Member Function Documentation

void org.objectweb.jonas.adm.Adm.addBeans String  fileName  )  throws RemoteException
 

Create a container and load beans in it

Parameters:
fileName name of the ejb-jar or xml file

Definition at line 242 of file Adm.java.

void org.objectweb.jonas.adm.Adm.addEar String  fileName  )  throws RemoteException, EarServiceException
 

Deploy a given ear file with the help of the ear service.

Parameters:
fileName the name of the ear file.
Exceptions:
RemoteException if rmi call failed.
EarServiceException if the deployment failed.

Definition at line 260 of file Adm.java.

void org.objectweb.jonas.adm.Adm.addRar String  fileName  )  throws RemoteException, ResourceServiceException
 

Deploy a given rar file with the help of the resource service.

Parameters:
fileName the name of the rar file.
Exceptions:
RemoteException if rmi call failed.
ResourceServiceException if the deployment failed.

Definition at line 296 of file Adm.java.

void org.objectweb.jonas.adm.Adm.addWar String  fileName  )  throws RemoteException, JWebContainerServiceException
 

Deploy a given war file with the help of the web container service.

Parameters:
fileName the name of the war file.
Exceptions:
RemoteException if rmi call failed.
JWebContainerServiceException if the deployment failed.

Definition at line 327 of file Adm.java.

String org.objectweb.jonas.adm.Adm.deployFile int  type,
byte[]  bfile,
String  filename
throws RemoteException , EarServiceException, JWebContainerServiceException
 

Deploy file (GenIC), needed for Ishmael to work. The file is in the directory specified by the property "jonas.service.deployment.directory"

Parameters:
type type of the file (EJB, WAR, EAR, RAR, CAR)
bfile 
filename basename of the file to be deployed
Exceptions:
RemoteException 
EarServiceException 
ResourceServiceException 
JWebContainerServiceException 
Author:
Dean Jennings. <da_jennings@junta.com.au>

Definition at line 574 of file Adm.java.

int org.objectweb.jonas.adm.Adm.getServerState  )  throws RemoteException
 

To test if the server is ready

Returns:
int 0=not ready, 1=ready, 2=stopped

Definition at line 510 of file Adm.java.

String org.objectweb.jonas.adm.Adm.getTopicLevel String  topic  )  throws RemoteException
 

get Topic Level

Definition at line 227 of file Adm.java.

References org.objectweb.jonas.service.ServiceManager.getInstance().

Here is the call graph for this function:

String [] org.objectweb.jonas.adm.Adm.getTopics  )  throws RemoteException
 

get Topics. Assumes that all Loggers are TopicalLoggers.

Definition at line 220 of file Adm.java.

References org.objectweb.jonas.service.ServiceManager.getInstance().

Here is the call graph for this function:

boolean org.objectweb.jonas.adm.Adm.isEarLoaded String  fileName  )  throws RemoteException, EarServiceException
 

Test if the specified filename is already deployed or not

Parameters:
fileName the name of the ear file.
Returns:
true if the ear is deployed, else false.
Exceptions:
RemoteException if rmi call failed.

Definition at line 280 of file Adm.java.

References org.objectweb.jonas.adm.Adm.isLoaded().

Here is the call graph for this function:

boolean org.objectweb.jonas.adm.Adm.isEJBContainer  )  throws RemoteException
 

To test if the server is an EJB container

Definition at line 517 of file Adm.java.

boolean org.objectweb.jonas.adm.Adm.isLoaded String  fileName  )  throws RemoteException
 

returns true if beans are already loaded in server.

Parameters:
fileName name of the ejb-jar or xml file

Definition at line 427 of file Adm.java.

Referenced by org.objectweb.jonas.adm.Adm.isEarLoaded(), org.objectweb.jonas.adm.Adm.isRarLoaded(), and org.objectweb.jonas.adm.Adm.isWarLoaded().

boolean org.objectweb.jonas.adm.Adm.isRarLoaded String  fileName  )  throws RemoteException, ResourceServiceException
 

Test if the specified filename is already deployed or not

Parameters:
fileName the name of the rar file.
Returns:
true if the rar is deployed, else false.
Exceptions:
RemoteException if rmi call failed.
ResourceServiceException if unable to get resource service

Definition at line 311 of file Adm.java.

References org.objectweb.jonas.adm.Adm.isLoaded().

Here is the call graph for this function:

boolean org.objectweb.jonas.adm.Adm.isWarLoaded String  fileName  )  throws RemoteException, JWebContainerServiceException
 

Test if the specified filename is already deployed or not

Parameters:
fileName the name of the war file.
Returns:
true if the war is deployed, else false.
Exceptions:
RemoteException if rmi call failed.

Definition at line 341 of file Adm.java.

References org.objectweb.jonas.adm.Adm.isLoaded().

Here is the call graph for this function:

void org.objectweb.jonas.adm.Adm.killServer  )  throws RemoteException
 

Stop the Server and stop the JVM

Definition at line 501 of file Adm.java.

References org.objectweb.jonas.adm.Adm.stopServer().

Referenced by org.objectweb.jonas.server.Server.kill().

Here is the call graph for this function:

String [] org.objectweb.jonas.adm.Adm.listBeans  )  throws RemoteException
 

List beans of all JOnAS containers

Definition at line 434 of file Adm.java.

References org.objectweb.jonas_ejb.container.Container.getName(), and org.objectweb.jonas_ejb.container.Container.listBeanNames().

Here is the call graph for this function:

Vector org.objectweb.jonas.adm.Adm.listContext  )  throws RemoteException
 

List JNDI context

Definition at line 459 of file Adm.java.

References org.objectweb.jonas_ejb.container.Container.getName().

Here is the call graph for this function:

Properties org.objectweb.jonas.adm.Adm.listEnv  ) 
 

List Environment (configuration properties provided by the configuration file).

Definition at line 478 of file Adm.java.

List org.objectweb.jonas.adm.Adm.listModules int  type,
int  state
throws RemoteException
 

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)
state status of the modules to be returned (RUNNING, STOPPED, ALL)
Exceptions:
RemoteException 
Author:
Dean Jennings. <deanjennings@junta.com.au>

Definition at line 694 of file Adm.java.

References org.objectweb.jonas.web.AbsJWebContainerServiceImpl.getClassLoader(), org.objectweb.jonas_web.deployment.api.WebContainerDeploymentDesc.getContextRoot(), org.objectweb.jonas.web.AbsJWebContainerServiceImpl.getDeployableWars(), and org.objectweb.jonas.web.AbsJWebContainerServiceImpl.getDeployedWars().

Here is the call graph for this function:

void org.objectweb.jonas.adm.Adm.removeBeans String  fileName  )  throws RemoteException
 

Remove the container identified by fileName and remove all beans in it

Parameters:
fileName name of the ejb-jar or xml file

Definition at line 410 of file Adm.java.

References org.objectweb.jonas.adm.Adm.runGC().

Here is the call graph for this function:

void org.objectweb.jonas.adm.Adm.removeEar String  fileName  )  throws RemoteException, EarServiceException
 

UnDeploy a given ear file with the help of the ear service.

Parameters:
fileName the name of the ear file.
Exceptions:
RemoteException if rmi call failed.
EarServiceException if the undeployment failed.

Definition at line 357 of file Adm.java.

References org.objectweb.jonas.adm.Adm.runGC().

Here is the call graph for this function:

void org.objectweb.jonas.adm.Adm.removeRar String  fileName  )  throws RemoteException, ResourceServiceException
 

UnDeploy a given rar file with the help of the resource service.

Parameters:
fileName the name of the rar file.
Exceptions:
RemoteException if rmi call failed.
ResourceServiceException if the undeployment failed.

Definition at line 379 of file Adm.java.

References org.objectweb.jonas.adm.Adm.runGC().

Here is the call graph for this function:

void org.objectweb.jonas.adm.Adm.removeWar String  fileName  )  throws RemoteException, JWebContainerServiceException
 

UnDeploy a given war file with the help of the web container service.

Parameters:
fileName the name of the war file.
Exceptions:
RemoteException if rmi call failed.
JWebContainerServiceException if the undeployment failed.

Definition at line 395 of file Adm.java.

References org.objectweb.jonas.adm.Adm.runGC().

Here is the call graph for this function:

void org.objectweb.jonas.adm.Adm.runGC  )  throws RemoteException
 

run the garbage collector

Definition at line 531 of file Adm.java.

Referenced by org.objectweb.jonas.adm.Adm.removeBeans(), org.objectweb.jonas.adm.Adm.removeEar(), org.objectweb.jonas.adm.Adm.removeRar(), and org.objectweb.jonas.adm.Adm.removeWar().

void org.objectweb.jonas.adm.Adm.serverReady boolean  isEJB  ) 
 

server is ready

Definition at line 554 of file Adm.java.

Referenced by org.objectweb.jonas.server.Server.start().

void org.objectweb.jonas.adm.Adm.setTopicLevel String  topic,
String  l
throws RemoteException
 

set Topic Level

Definition at line 234 of file Adm.java.

References org.objectweb.jonas.service.ServiceManager.getInstance().

Here is the call graph for this function:

void org.objectweb.jonas.adm.Adm.setTransactionTimeout int  timeout  )  throws RemoteException
 

set the default value for transaction timeout

Definition at line 524 of file Adm.java.

void org.objectweb.jonas.adm.Adm.stopServer  )  throws RemoteException
 

Stop the Server without stopping the JVM

Definition at line 485 of file Adm.java.

Referenced by org.objectweb.jonas.adm.Adm.killServer(), and org.objectweb.jonas.server.Server.stop().

void org.objectweb.jonas.adm.Adm.syncAllEntities boolean  passivate  )  throws RemoteException
 

sync all entity instances outside transactions

Parameters:
passivate passivate instances after synchronization.

Definition at line 539 of file Adm.java.

void org.objectweb.jonas.adm.Adm.undeployFile String  filename  )  throws RemoteException
 

Physically remove the module from the server

Parameters:
filename the filename of the module to be removed
Exceptions:
RemoteException 
Author:
Dean Jennings. <deanjennings@junta.com.au>

Definition at line 794 of file Adm.java.


The documentation for this class was generated from the following file:
Generated on Tue Feb 15 15:06:06 2005 for JOnAS by  doxygen 1.3.9.1