|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.rmi.PortableRemoteObject
org.objectweb.jonas.adm.Adm
This class implements a remote interface used for administering the server.
Field Summary | |
static java.lang.String |
ADMNAME_SUFFIX
|
static int |
NOT_READY
|
static int |
READY
|
static int |
STOPPED
|
Fields inherited from interface org.objectweb.jonas.adm.AdmInterface |
TYPE_EAR, TYPE_EJB, TYPE_RAR, TYPE_WAR |
Constructor Summary | |
Adm(JProp jp)
Adm constructor |
Method Summary | |
void |
addBeans(java.lang.String fileName)
Create a container and load beans in it |
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[] bfile,
java.lang.String filename)
Deploy file (GenIC), needed for Ishmael to work. |
int |
getServerState()
To test if the server is ready |
java.lang.String |
getTopicLevel(java.lang.String topic)
get Topic Level |
java.lang.String[] |
getTopics()
get Topics. |
boolean |
isEJBContainer()
To test if the server is an EJB container |
boolean |
isLoaded(java.lang.String fileName)
returns true if beans are already loaded in server. |
void |
killServer()
Stop the Server and stop the JVM |
java.lang.String[] |
listBeans()
List beans of all JOnAS containers |
java.util.Vector |
listContext()
List JNDI context |
java.util.Properties |
listEnv()
List Environment (configuration properties provided by the configuration file). |
void |
removeBeans(java.lang.String fileName)
Remove the container identified by fileName and remove all beans in it |
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()
run the garbage collector |
void |
serverReady(boolean isEJB)
server is ready |
void |
setTopicLevel(java.lang.String topic,
java.lang.String l)
set Topic Level |
void |
setTransactionTimeout(int timeout)
set the default value for transaction timeout |
void |
stopServer()
Stop the Server without stopping the JVM |
void |
syncAllEntities(boolean passivate)
sync all entity instances outside transactions |
Methods inherited from class javax.rmi.PortableRemoteObject |
connect, exportObject, narrow, toStub, unexportObject |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String ADMNAME_SUFFIX
public static final int NOT_READY
public static final int READY
public static final int STOPPED
Constructor Detail |
public Adm(JProp jp) throws java.rmi.RemoteException, javax.naming.NamingException, ServiceException, java.lang.Exception
Method Detail |
public java.lang.String[] getTopics() throws java.rmi.RemoteException
getTopics
in interface AdmInterface
java.rmi.RemoteException
public java.lang.String getTopicLevel(java.lang.String topic) throws java.rmi.RemoteException
getTopicLevel
in interface AdmInterface
java.rmi.RemoteException
public void setTopicLevel(java.lang.String topic, java.lang.String l) throws java.rmi.RemoteException
setTopicLevel
in interface AdmInterface
java.rmi.RemoteException
public void addBeans(java.lang.String fileName) throws java.rmi.RemoteException
addBeans
in interface AdmInterface
fileName
- name of the ejb-jar or xml file
java.rmi.RemoteException
public void addEar(java.lang.String fileName) throws java.rmi.RemoteException, EarServiceException
addEar
in interface AdmInterface
fileName
- the name of the ear file.
java.rmi.RemoteException
- if rmi call failed.
EarServiceException
- if the deployment failed.public void addWar(java.lang.String fileName) throws java.rmi.RemoteException, org.objectweb.jonas.web.JWebContainerServiceException
addWar
in interface AdmInterface
fileName
- the name of the war file.
java.rmi.RemoteException
- if rmi call failed.
org.objectweb.jonas.web.JWebContainerServiceException
- if the deployment failed.public void removeEar(java.lang.String fileName) throws java.rmi.RemoteException, EarServiceException
removeEar
in interface AdmInterface
fileName
- the name of the ear file.
java.rmi.RemoteException
- if rmi call failed.
EarServiceException
- if the undeployment failed.public void removeWar(java.lang.String fileName) throws java.rmi.RemoteException, org.objectweb.jonas.web.JWebContainerServiceException
removeWar
in interface AdmInterface
fileName
- the name of the war file.
java.rmi.RemoteException
- if rmi call failed.
org.objectweb.jonas.web.JWebContainerServiceException
- if the undeployment failed.public void removeBeans(java.lang.String fileName) throws java.rmi.RemoteException
removeBeans
in interface AdmInterface
fileName
- name of the ejb-jar or xml file
java.rmi.RemoteException
public boolean isLoaded(java.lang.String fileName) throws java.rmi.RemoteException
isLoaded
in interface AdmInterface
fileName
- name of the ejb-jar or xml file
java.rmi.RemoteException
public java.lang.String[] listBeans() throws java.rmi.RemoteException
listBeans
in interface AdmInterface
java.rmi.RemoteException
public java.util.Vector listContext() throws java.rmi.RemoteException
listContext
in interface AdmInterface
java.rmi.RemoteException
public java.util.Properties listEnv()
listEnv
in interface AdmInterface
public void stopServer() throws java.rmi.RemoteException
stopServer
in interface AdmInterface
java.rmi.RemoteException
public void killServer() throws java.rmi.RemoteException
killServer
in interface AdmInterface
java.rmi.RemoteException
public int getServerState() throws java.rmi.RemoteException
getServerState
in interface AdmInterface
java.rmi.RemoteException
public boolean isEJBContainer() throws java.rmi.RemoteException
isEJBContainer
in interface AdmInterface
java.rmi.RemoteException
public void setTransactionTimeout(int timeout) throws java.rmi.RemoteException
setTransactionTimeout
in interface AdmInterface
java.rmi.RemoteException
public void runGC() throws java.rmi.RemoteException
runGC
in interface AdmInterface
java.rmi.RemoteException
public void syncAllEntities(boolean passivate) throws java.rmi.RemoteException
syncAllEntities
in interface AdmInterface
passivate
- passivate instances after synchronization.
java.rmi.RemoteException
public void serverReady(boolean isEJB)
public void deployFile(int type, byte[] bfile, java.lang.String filename) throws java.rmi.RemoteException, EarServiceException, org.objectweb.jonas.web.JWebContainerServiceException
deployFile
in interface AdmInterface
type
- type of the file (EJB, WAR, EAR, RAR)bfile
- filename
- basename of the file to be deployed
java.rmi.RemoteException
EarServiceException
org.objectweb.jonas.web.JWebContainerServiceException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |