org.objectweb.jonas.adm
Interface AdmInterface

All Superinterfaces:
java.rmi.Remote
All Known Implementing Classes:
Adm

public interface AdmInterface
extends java.rmi.Remote


Field Summary
static int TYPE_EAR
           
static int TYPE_EJB
           
static int TYPE_RAR
           
static int TYPE_WAR
           
 
Method Summary
 void addBeans(java.lang.String fileName)
           
 void addEar(java.lang.String fileName)
          Deploy a given ear file with the help of the ear service.
 void addWar(java.lang.String fileName)
          Deploy a given war file with the help of the web container service.
 void deployFile(int type, byte[] file, java.lang.String filename)
           
 int getServerState()
           
 java.lang.String getTopicLevel(java.lang.String topic)
           
 java.lang.String[] getTopics()
           
 boolean isEJBContainer()
           
 boolean isLoaded(java.lang.String fileName)
           
 void killServer()
           
 java.lang.String[] listBeans()
           
 java.util.Vector listContext()
           
 java.util.Properties listEnv()
           
 void removeBeans(java.lang.String fileName)
           
 void removeEar(java.lang.String fileName)
          UnDeploy a given ear file with the help of the ear service.
 void removeWar(java.lang.String fileName)
          UnDeploy a given war file with the help of the web container service.
 void runGC()
           
 void setTopicLevel(java.lang.String topic, java.lang.String l)
           
 void setTransactionTimeout(int timeout)
           
 void stopServer()
           
 void syncAllEntities(boolean passivate)
           
 

Field Detail

TYPE_EJB

public static final int TYPE_EJB
See Also:
Constant Field Values

TYPE_WAR

public static final int TYPE_WAR
See Also:
Constant Field Values

TYPE_EAR

public static final int TYPE_EAR
See Also:
Constant Field Values

TYPE_RAR

public static final int TYPE_RAR
See Also:
Constant Field Values
Method Detail

addEar

public void addEar(java.lang.String fileName)
            throws java.rmi.RemoteException,
                   EarServiceException
Deploy a given ear file with the help of the ear service.

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

addWar

public void addWar(java.lang.String fileName)
            throws java.rmi.RemoteException,
                   org.objectweb.jonas.web.JWebContainerServiceException
Deploy a given war file with the help of the web container service.

Parameters:
fileName - the name of the war file.
Throws:
java.rmi.RemoteException - if rmi call failed.
org.objectweb.jonas.web.JWebContainerServiceException - if the deployment failed.

removeEar

public void removeEar(java.lang.String fileName)
               throws java.rmi.RemoteException,
                      EarServiceException
UnDeploy a given ear file with the help of the ear service.

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

removeWar

public void removeWar(java.lang.String fileName)
               throws java.rmi.RemoteException,
                      org.objectweb.jonas.web.JWebContainerServiceException
UnDeploy a given war file with the help of the web container service.

Parameters:
fileName - the name of the war file.
Throws:
java.rmi.RemoteException - if rmi call failed.
org.objectweb.jonas.web.JWebContainerServiceException - if the undeployment failed.

addBeans

public void addBeans(java.lang.String fileName)
              throws java.rmi.RemoteException
Throws:
java.rmi.RemoteException

removeBeans

public void removeBeans(java.lang.String fileName)
                 throws java.rmi.RemoteException
Throws:
java.rmi.RemoteException

isLoaded

public boolean isLoaded(java.lang.String fileName)
                 throws java.rmi.RemoteException
Throws:
java.rmi.RemoteException

listBeans

public java.lang.String[] listBeans()
                             throws java.rmi.RemoteException
Throws:
java.rmi.RemoteException

listContext

public java.util.Vector listContext()
                             throws java.rmi.RemoteException
Throws:
java.rmi.RemoteException

listEnv

public java.util.Properties listEnv()
                             throws java.rmi.RemoteException
Throws:
java.rmi.RemoteException

stopServer

public void stopServer()
                throws java.rmi.RemoteException
Throws:
java.rmi.RemoteException

killServer

public void killServer()
                throws java.rmi.RemoteException
Throws:
java.rmi.RemoteException

isEJBContainer

public boolean isEJBContainer()
                       throws java.rmi.RemoteException
Throws:
java.rmi.RemoteException

getServerState

public int getServerState()
                   throws java.rmi.RemoteException
Throws:
java.rmi.RemoteException

setTransactionTimeout

public void setTransactionTimeout(int timeout)
                           throws java.rmi.RemoteException
Throws:
java.rmi.RemoteException

runGC

public void runGC()
           throws java.rmi.RemoteException
Throws:
java.rmi.RemoteException

syncAllEntities

public void syncAllEntities(boolean passivate)
                     throws java.rmi.RemoteException
Throws:
java.rmi.RemoteException

getTopics

public java.lang.String[] getTopics()
                             throws java.rmi.RemoteException
Throws:
java.rmi.RemoteException

getTopicLevel

public java.lang.String getTopicLevel(java.lang.String topic)
                               throws java.rmi.RemoteException
Throws:
java.rmi.RemoteException

setTopicLevel

public void setTopicLevel(java.lang.String topic,
                          java.lang.String l)
                   throws java.rmi.RemoteException
Throws:
java.rmi.RemoteException

deployFile

public void deployFile(int type,
                       byte[] file,
                       java.lang.String filename)
                throws java.rmi.RemoteException,
                       EarServiceException,
                       org.objectweb.jonas.web.JWebContainerServiceException
Throws:
java.rmi.RemoteException
EarServiceException
org.objectweb.jonas.web.JWebContainerServiceException