|
||||||||||
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
public class Adm
This class implements a remote interface used for administering the server.
Field Summary | |
---|---|
static int |
SLEEP_DELAY
Sleep before exit of JVM |
Fields inherited from interface org.objectweb.jonas.adm.AdmInterface |
---|
ADMNAME_SUFFIX, NOT_READY, READY, STATUS_ALL, STATUS_RUNNING, STATUS_STOPPED, STOPPED, TYPE_CAR, TYPE_EAR, TYPE_EJB, TYPE_RAR, TYPE_WAR |
Constructor Summary | |
---|---|
Adm(JProp jp)
Adm constructor |
Method Summary | |
---|---|
void |
addBeans(String fileName)
Create a container and load beans in it |
void |
addEar(String fileName)
Deploy a given ear file with the help of the ear service. |
void |
addRar(String fileName)
Deploy a given rar file with the help of the resource service. |
void |
addWar(String fileName)
Deploy a given war file with the help of the web container service. |
void |
deployFileOn(String filename,
String[] target)
Deploy file on another server or a cluster. |
String |
dumpCustom()
|
int |
getServerState()
To test if the server is ready |
String |
getTopicLevel(String topic)
get Topic Level |
String[] |
getTopics()
get Topics. |
boolean |
isEarLoaded(String fileName)
Test if the specified filename is already deployed or not |
boolean |
isEJBContainer()
To test if the server is an EJB container |
boolean |
isLoaded(String fileName)
returns true if beans are already loaded in server. |
boolean |
isRarLoaded(String fileName)
Test if the specified filename is already deployed or not |
boolean |
isWarLoaded(String fileName)
Test if the specified filename is already deployed or not |
void |
killServer()
Stop the Server and stop the JVM |
String[] |
listBeans()
List beans of all JOnAS containers |
Vector |
listContext()
List JNDI context |
Properties |
listEnv()
List Environment (configuration properties provided by the configuration file). |
void |
removeBeans(String fileName)
Remove the container identified by fileName and remove all beans in it |
void |
removeEar(String fileName)
UnDeploy a given ear file with the help of the ear service. |
void |
removeRar(String fileName)
UnDeploy a given rar file with the help of the resource service. |
void |
removeWar(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(String topic,
String l)
set Topic Level |
void |
setTransactionTimeout(int timeout)
set the default value for transaction timeout |
void |
startRemoteServers(String[] target)
Start remote servers or clusters |
void |
stopRemoteServers(String[] target)
Stop remote servers or clusters |
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 int SLEEP_DELAY
Constructor Detail |
---|
public Adm(JProp jp) throws RemoteException, NamingException, ServiceException, Exception
RemoteException
- if problem
NamingException
ServiceException
Exception
Method Detail |
---|
public String[] getTopics() throws RemoteException
getTopics
in interface AdmInterface
RemoteException
public String getTopicLevel(String topic) throws RemoteException
getTopicLevel
in interface AdmInterface
RemoteException
public void setTopicLevel(String topic, String l) throws RemoteException
setTopicLevel
in interface AdmInterface
RemoteException
public void addBeans(String fileName) throws RemoteException
addBeans
in interface AdmInterface
fileName
- name of the ejb-jar or xml file
RemoteException
public void addEar(String fileName) throws RemoteException, AdmException
addEar
in interface AdmInterface
fileName
- the name of the ear file.
RemoteException
- if rmi call failed.
EarServiceException
- if the deployment failed.
AdmException
- if the deployment failed.public boolean isEarLoaded(String fileName) throws RemoteException, AdmException
isEarLoaded
in interface AdmInterface
fileName
- the name of the ear file.
RemoteException
- if rmi call failed.
AdmException
public void addRar(String fileName) throws RemoteException, AdmException
addRar
in interface AdmInterface
fileName
- the name of the rar file.
RemoteException
- if rmi call failed.
AdmException
- if the deployment failed.public boolean isRarLoaded(String fileName) throws RemoteException, AdmException
isRarLoaded
in interface AdmInterface
fileName
- the name of the rar file.
RemoteException
- if rmi call failed.
AdmException
- if unable to get resource servicepublic void addWar(String fileName) throws RemoteException, AdmException
addWar
in interface AdmInterface
fileName
- the name of the war file.
RemoteException
- if rmi call failed.
AdmException
- if the deployment failed.public boolean isWarLoaded(String fileName) throws RemoteException, AdmException
isWarLoaded
in interface AdmInterface
fileName
- the name of the war file.
RemoteException
- if rmi call failed.
AdmException
public void removeEar(String fileName) throws RemoteException, AdmException
removeEar
in interface AdmInterface
fileName
- the name of the ear file.
RemoteException
- if rmi call failed.
AdmException
- if the undeployment failed.public void removeRar(String fileName) throws RemoteException, AdmException
removeRar
in interface AdmInterface
fileName
- the name of the rar file.
RemoteException
- if rmi call failed.
AdmException
- if the undeployment failed.public void removeWar(String fileName) throws RemoteException, AdmException
removeWar
in interface AdmInterface
fileName
- the name of the war file.
RemoteException
- if rmi call failed.
AdmException
- if the undeployment failed.public void removeBeans(String fileName) throws RemoteException
removeBeans
in interface AdmInterface
fileName
- name of the ejb-jar or xml file
RemoteException
public boolean isLoaded(String fileName) throws RemoteException
isLoaded
in interface AdmInterface
fileName
- name of the ejb-jar or xml file
RemoteException
public String dumpCustom() throws RemoteException
dumpCustom
in interface AdmInterface
RemoteException
public String[] listBeans() throws RemoteException
listBeans
in interface AdmInterface
RemoteException
public Vector listContext() throws RemoteException
listContext
in interface AdmInterface
RemoteException
public Properties listEnv()
listEnv
in interface AdmInterface
public void stopServer() throws RemoteException
stopServer
in interface AdmInterface
RemoteException
public void killServer() throws RemoteException
killServer
in interface AdmInterface
RemoteException
public int getServerState() throws RemoteException
getServerState
in interface AdmInterface
RemoteException
public boolean isEJBContainer() throws RemoteException
isEJBContainer
in interface AdmInterface
RemoteException
public void setTransactionTimeout(int timeout) throws RemoteException
setTransactionTimeout
in interface AdmInterface
RemoteException
public void runGC() throws RemoteException
runGC
in interface AdmInterface
RemoteException
public void syncAllEntities(boolean passivate) throws RemoteException
syncAllEntities
in interface AdmInterface
passivate
- passivate instances after synchronization.
RemoteException
public void serverReady(boolean isEJB)
public void startRemoteServers(String[] target) throws RemoteException
startRemoteServers
in interface AdmInterface
target
- List of clusters or servers to start
RemoteException
public void stopRemoteServers(String[] target) throws RemoteException
stopRemoteServers
in interface AdmInterface
target
- List of clusters or servers to stop
RemoteException
public void deployFileOn(String filename, String[] target) throws RemoteException
deployFileOn
in interface AdmInterface
filename
- Name of the filetarget
- List of clusters or servers where to deploy the file.
RemoteException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |