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 STATUS_ALL
           
static int STATUS_RUNNING
           
static int STATUS_STOPPED
           
static int TYPE_CAR
           
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 addRar(java.lang.String fileName)
          Deploy a given rar file with the help of the resource service.
 void addWar(java.lang.String fileName)
          Deploy a given war file with the help of the web container service.
 java.lang.String deployFile(int type, byte[] file, java.lang.String filename)
          Deploy file (GenIC), needed for Ishmael to work.
 void deployFileOn(java.lang.String filename, java.lang.String[] target)
           
 java.lang.String dumpCustom()
           
 int getServerState()
           
 java.lang.String getTopicLevel(java.lang.String topic)
           
 java.lang.String[] getTopics()
           
 boolean isEarLoaded(java.lang.String fileName)
          Test if the specified filename is already deployed or not
 boolean isEJBContainer()
           
 boolean isLoaded(java.lang.String fileName)
           
 boolean isRarLoaded(java.lang.String fileName)
          Test if the specified filename is already deployed or not
 boolean isWarLoaded(java.lang.String fileName)
          Test if the specified filename is already deployed or not
 void killServer()
           
 java.lang.String[] listBeans()
           
 java.util.Vector listContext()
           
 java.util.Properties listEnv()
           
 java.util.List listModules(int type, int state)
          List modules, needed for Ishmael to work.
 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 removeRar(java.lang.String fileName)
          UnDeploy a given rar file with the help of the resource 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 startRemoteServers(java.lang.String[] target)
           
 void stopRemoteServers(java.lang.String[] target)
           
 void stopServer()
           
 void syncAllEntities(boolean passivate)
           
 void undeployFile(java.lang.String filename)
          Physically remove the module from the server
 

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

TYPE_CAR

public static final int TYPE_CAR
See Also:
Constant Field Values

STATUS_RUNNING

public static final int STATUS_RUNNING
See Also:
Constant Field Values

STATUS_STOPPED

public static final int STATUS_STOPPED
See Also:
Constant Field Values

STATUS_ALL

public static final int STATUS_ALL
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.

addRar

public void addRar(java.lang.String fileName)
            throws java.rmi.RemoteException,
                   ResourceServiceException
Deploy a given rar file with the help of the resource service.

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

addWar

public void addWar(java.lang.String fileName)
            throws java.rmi.RemoteException,
                   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.
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.

removeRar

public void removeRar(java.lang.String fileName)
               throws java.rmi.RemoteException,
                      ResourceServiceException
UnDeploy a given rar file with the help of the resource service.

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

removeWar

public void removeWar(java.lang.String fileName)
               throws java.rmi.RemoteException,
                      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.
JWebContainerServiceException - if the undeployment failed.

isEarLoaded

public boolean isEarLoaded(java.lang.String fileName)
                    throws java.rmi.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.
Throws:
java.rmi.RemoteException - if rmi call failed.
EarServiceException

isRarLoaded

public boolean isRarLoaded(java.lang.String fileName)
                    throws java.rmi.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.
Throws:
java.rmi.RemoteException - if rmi call failed.
ResourceServiceException

isWarLoaded

public boolean isWarLoaded(java.lang.String fileName)
                    throws java.rmi.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.
Throws:
java.rmi.RemoteException - if rmi call failed.
JWebContainerServiceException

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

dumpCustom

public java.lang.String dumpCustom()
                            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

deployFileOn

public void deployFileOn(java.lang.String filename,
                         java.lang.String[] target)
                  throws java.rmi.RemoteException
Throws:
java.rmi.RemoteException

stopRemoteServers

public void stopRemoteServers(java.lang.String[] target)
                       throws java.rmi.RemoteException
Throws:
java.rmi.RemoteException

startRemoteServers

public void startRemoteServers(java.lang.String[] target)
                        throws java.rmi.RemoteException
Throws:
java.rmi.RemoteException

deployFile

public java.lang.String deployFile(int type,
                                   byte[] file,
                                   java.lang.String filename)
                            throws java.rmi.RemoteException,
                                   EarServiceException,
                                   ResourceServiceException,
                                   JWebContainerServiceException
Deploy file (GenIC), needed for Ishmael to work.

Parameters:
type - type of the file (EJB, WAR, EAR, RAR, CAR)
file - the actual file
filename - basename of the file to be deployed
Throws:
java.rmi.RemoteException
EarServiceException
ResourceServiceException
JWebContainerServiceException

listModules

public java.util.List listModules(int type,
                                  int state)
                           throws java.rmi.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)
Throws:
java.rmi.RemoteException

undeployFile

public void undeployFile(java.lang.String filename)
                  throws java.rmi.RemoteException
Physically remove the module from the server

Parameters:
filename - the filename of the module to be removed
Throws:
java.rmi.RemoteException