|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.rmi.server.RemoteObject | +--java.rmi.server.RemoteServer | +--java.rmi.server.UnicastRemoteObject | +--org.objectweb.common.RemoteObject | +--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 class java.rmi.server.RemoteObject |
ref |
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. |
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 |
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 org.objectweb.common.RemoteObject |
getPort, setPort |
Methods inherited from class java.rmi.server.UnicastRemoteObject |
clone, exportObject, exportObject, exportObject, unexportObject |
Methods inherited from class java.rmi.server.RemoteServer |
getClientHost, getLog, setLog |
Methods inherited from class java.rmi.server.RemoteObject |
equals, getRef, hashCode, toString, toStub |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, 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
Method Detail |
public java.lang.String[] getTopics() throws java.rmi.RemoteException
getTopics
in interface AdmInterface
public java.lang.String getTopicLevel(java.lang.String topic) throws java.rmi.RemoteException
getTopicLevel
in interface AdmInterface
public void setTopicLevel(java.lang.String topic, java.lang.String l) throws java.rmi.RemoteException
setTopicLevel
in interface AdmInterface
public void addBeans(java.lang.String fileName) throws java.rmi.RemoteException
addBeans
in interface AdmInterface
fileName
- name of the ejb-jar or xml filepublic 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 filepublic boolean isLoaded(java.lang.String fileName) throws java.rmi.RemoteException
isLoaded
in interface AdmInterface
fileName
- name of the ejb-jar or xml filepublic java.lang.String[] listBeans() throws java.rmi.RemoteException
listBeans
in interface AdmInterface
public java.util.Vector listContext() throws java.rmi.RemoteException
listContext
in interface AdmInterface
public java.util.Properties listEnv()
listEnv
in interface AdmInterface
public void stopServer() throws java.rmi.RemoteException
stopServer
in interface AdmInterface
public void killServer() throws java.rmi.RemoteException
killServer
in interface AdmInterface
public int getServerState() throws java.rmi.RemoteException
getServerState
in interface AdmInterface
public boolean isEJBContainer() throws java.rmi.RemoteException
isEJBContainer
in interface AdmInterface
public void setTransactionTimeout(int timeout) throws java.rmi.RemoteException
setTransactionTimeout
in interface AdmInterface
public void runGC() throws java.rmi.RemoteException
runGC
in interface AdmInterface
public void syncAllEntities(boolean passivate) throws java.rmi.RemoteException
syncAllEntities
in interface AdmInterface
passivate
- passivate instances after synchronization.public void serverReady(boolean isEJB)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |