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

static final int TYPE_EJB
See Also:
Constant Field Values

TYPE_WAR

static final int TYPE_WAR
See Also:
Constant Field Values

TYPE_EAR

static final int TYPE_EAR
See Also:
Constant Field Values

TYPE_RAR

static final int TYPE_RAR
See Also:
Constant Field Values

TYPE_CAR

static final int TYPE_CAR
See Also:
Constant Field Values

STATUS_RUNNING

static final int STATUS_RUNNING
See Also:
Constant Field Values

STATUS_STOPPED

static final int STATUS_STOPPED
See Also:
Constant Field Values

STATUS_ALL

static final int STATUS_ALL
See Also:
Constant Field Values
Method Detail

addEar

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

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

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

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

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

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

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

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

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

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

removeBeans

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

isLoaded

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

listBeans

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

dumpCustom

java.lang.String dumpCustom()
                            throws java.rmi.RemoteException
Throws:
java.rmi.RemoteException

listContext

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

listEnv

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

stopServer

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

killServer

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

isEJBContainer

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

getServerState

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

setTransactionTimeout

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

runGC

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

syncAllEntities

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

getTopics

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

getTopicLevel

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

setTopicLevel

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

deployFileOn

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

stopRemoteServers

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

startRemoteServers

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

deployFile

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

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

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