Java Doc for Adm.java in  » J2EE » JOnAS-4.8.6 » org » objectweb » jonas » adm » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » J2EE » JOnAS 4.8.6 » org.objectweb.jonas.adm 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   javax.rmi.PortableRemoteObject
      org.objectweb.jonas.adm.Adm

Adm
public class Adm extends PortableRemoteObject implements AdmInterface(Code)
This class implements a remote interface used for administering the server.
author:
   Philippe Coq
author:
   Philippe Durieux
author:
   Marc Dutoo, JOnAS 2.4
author:
   Murad Meghani (Murad.Meghani@compuware.com) killServer and stopServer
author:
   Florent Benoit & Ludovic Bert : Methods for wars and ear files JOnAS
author:
   2.5 2002.06
author:
   Dean Jennings : add deployFile


Field Summary
final public static  StringADMNAME_SUFFIX
    
final public static  intNOT_READY
    
final public static  intREADY
    
final public static  intSLEEP_DELAY
    
final public static  intSTOPPED
    
 J2EEDomainmydomain
     Reference on the J2EEDomain Used to access other servers and clusters in the domain.

Constructor Summary
public  Adm(JProp jp)
    

Method Summary
public  voidaddBeans(String fileName)
    
public  voidaddEar(String fileName)
     Deploy a given ear file with the help of the ear service.
public  voidaddRar(String fileName)
     Deploy a given rar file with the help of the resource service.
public  voidaddWar(String fileName)
     Deploy a given war file with the help of the web container service.
public  StringdeployFile(int type, byte[] bfile, String filename)
     Deploy file (GenIC), needed for Ishmael to work.
public  voiddeployFileOn(String filename, String[] target)
     Deploy file on another server or a cluster.
public  StringdumpCustom()
    
public  intgetServerState()
    
public  StringgetTopicLevel(String topic)
    
public  String[]getTopics()
     get Topics.
public  booleanisEJBContainer()
    
public  booleanisEarLoaded(String fileName)
     Test if the specified filename is already deployed or not
Parameters:
  fileName - the name of the ear file.
public  booleanisLoaded(String fileName)
     returns true if beans are already loaded in server.
public  booleanisRarLoaded(String fileName)
     Test if the specified filename is already deployed or not
Parameters:
  fileName - the name of the rar file.
public  booleanisWarLoaded(String fileName)
     Test if the specified filename is already deployed or not
Parameters:
  fileName - the name of the war file.
public  voidkillServer()
    
public  String[]listBeans()
    
public  VectorlistContext()
    
public  PropertieslistEnv()
     List Environment (configuration properties provided by the configuration file).
public  ListlistModules(int type, int state)
     List modules, needed for Ishmael to work.
public  voidremoveBeans(String fileName)
    
public  voidremoveEar(String fileName)
     UnDeploy a given ear file with the help of the ear service.
public  voidremoveRar(String fileName)
     UnDeploy a given rar file with the help of the resource service.
public  voidremoveWar(String fileName)
     UnDeploy a given war file with the help of the web container service.
public  voidrunGC()
    
public  voidserverReady(boolean isEJB)
    
public  voidsetTopicLevel(String topic, String l)
    
public  voidsetTransactionTimeout(int timeout)
    
public  voidstartRemoteServers(String[] target)
    
public  voidstopRemoteServers(String[] target)
    
public  voidstopServer()
    
public  voidsyncAllEntities(boolean passivate)
    
public  voidundeployFile(String filename)
     Physically remove the module from the server
Parameters:
  filename - the filename of the module to be removed
throws:
  RemoteException -
author:
   Dean Jennings.

Field Detail
ADMNAME_SUFFIX
final public static String ADMNAME_SUFFIX(Code)



NOT_READY
final public static int NOT_READY(Code)



READY
final public static int READY(Code)



SLEEP_DELAY
final public static int SLEEP_DELAY(Code)
Sleep before exit of JVM



STOPPED
final public static int STOPPED(Code)



mydomain
J2EEDomain mydomain(Code)
Reference on the J2EEDomain Used to access other servers and clusters in the domain.




Constructor Detail
Adm
public Adm(JProp jp) throws RemoteException, NamingException, ServiceException, Exception(Code)
Adm constructor
throws:
  RemoteException - if problem




Method Detail
addBeans
public void addBeans(String fileName) throws RemoteException(Code)
Create a container and load beans in it
Parameters:
  fileName - name of the ejb-jar or xml file



addEar
public void addEar(String fileName) throws RemoteException, EarServiceException(Code)
Deploy a given ear file with the help of the ear service.
Parameters:
  fileName - the name of the ear file.
throws:
  RemoteException - if rmi call failed.
throws:
  EarServiceException - if the deployment failed.



addRar
public void addRar(String fileName) throws RemoteException, ResourceServiceException(Code)
Deploy a given rar file with the help of the resource service.
Parameters:
  fileName - the name of the rar file.
throws:
  RemoteException - if rmi call failed.
throws:
  ResourceServiceException - if the deployment failed.



addWar
public void addWar(String fileName) throws RemoteException, JWebContainerServiceException(Code)
Deploy a given war file with the help of the web container service.
Parameters:
  fileName - the name of the war file.
throws:
  RemoteException - if rmi call failed.
throws:
  JWebContainerServiceException - if the deployment failed.



deployFile
public String deployFile(int type, byte[] bfile, String filename) throws RemoteException, EarServiceException, JWebContainerServiceException(Code)
Deploy file (GenIC), needed for Ishmael to work. The file is in the directory specified by the property "jonas.service.deployment.directory"
Parameters:
  type - type of the file (EJB, WAR, EAR, RAR, CAR)
Parameters:
  bfile -
Parameters:
  filename - basename of the file to be deployed
throws:
  RemoteException -
throws:
  EarServiceException -
throws:
  ResourceServiceException -
throws:
  JWebContainerServiceException -
author:
   Dean Jennings.



deployFileOn
public void deployFileOn(String filename, String[] target) throws RemoteException(Code)
Deploy file on another server or a cluster.
Parameters:
  filename - Name of the file
Parameters:
  target - List of clusters or servers where to deploy the file.
throws:
  RemoteException -



dumpCustom
public String dumpCustom() throws RemoteException(Code)



getServerState
public int getServerState() throws RemoteException(Code)
To test if the server is ready int 0=not ready, 1=ready, 2=stopped



getTopicLevel
public String getTopicLevel(String topic) throws RemoteException(Code)
get Topic Level



getTopics
public String[] getTopics() throws RemoteException(Code)
get Topics. Assumes that all Loggers are TopicalLoggers.



isEJBContainer
public boolean isEJBContainer() throws RemoteException(Code)
To test if the server is an EJB container



isEarLoaded
public boolean isEarLoaded(String fileName) throws RemoteException, EarServiceException(Code)
Test if the specified filename is already deployed or not
Parameters:
  fileName - the name of the ear file. true if the ear is deployed, else false.
throws:
  RemoteException - if rmi call failed.



isLoaded
public boolean isLoaded(String fileName) throws RemoteException(Code)
returns true if beans are already loaded in server.
Parameters:
  fileName - name of the ejb-jar or xml file



isRarLoaded
public boolean isRarLoaded(String fileName) throws RemoteException, ResourceServiceException(Code)
Test if the specified filename is already deployed or not
Parameters:
  fileName - the name of the rar file. true if the rar is deployed, else false.
throws:
  RemoteException - if rmi call failed.
throws:
  ResourceServiceException - if unable to get resource service



isWarLoaded
public boolean isWarLoaded(String fileName) throws RemoteException, JWebContainerServiceException(Code)
Test if the specified filename is already deployed or not
Parameters:
  fileName - the name of the war file. true if the war is deployed, else false.
throws:
  RemoteException - if rmi call failed.



killServer
public void killServer() throws RemoteException(Code)
Stop the Server and stop the JVM



listBeans
public String[] listBeans() throws RemoteException(Code)
List beans of all JOnAS containers



listContext
public Vector listContext() throws RemoteException(Code)
List JNDI context



listEnv
public Properties listEnv()(Code)
List Environment (configuration properties provided by the configuration file).



listModules
public List listModules(int type, int state) throws RemoteException(Code)
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)
Parameters:
  state - status of the modules to be returned (RUNNING, STOPPED, ALL)
throws:
  RemoteException -
author:
   Dean Jennings.



removeBeans
public void removeBeans(String fileName) throws RemoteException(Code)
Remove the container identified by fileName and remove all beans in it
Parameters:
  fileName - name of the ejb-jar or xml file



removeEar
public void removeEar(String fileName) throws RemoteException, EarServiceException(Code)
UnDeploy a given ear file with the help of the ear service.
Parameters:
  fileName - the name of the ear file.
throws:
  RemoteException - if rmi call failed.
throws:
  EarServiceException - if the undeployment failed.



removeRar
public void removeRar(String fileName) throws RemoteException, ResourceServiceException(Code)
UnDeploy a given rar file with the help of the resource service.
Parameters:
  fileName - the name of the rar file.
throws:
  RemoteException - if rmi call failed.
throws:
  ResourceServiceException - if the undeployment failed.



removeWar
public void removeWar(String fileName) throws RemoteException, JWebContainerServiceException(Code)
UnDeploy a given war file with the help of the web container service.
Parameters:
  fileName - the name of the war file.
throws:
  RemoteException - if rmi call failed.
throws:
  JWebContainerServiceException - if the undeployment failed.



runGC
public void runGC() throws RemoteException(Code)
run the garbage collector



serverReady
public void serverReady(boolean isEJB)(Code)
server is ready



setTopicLevel
public void setTopicLevel(String topic, String l) throws RemoteException(Code)
set Topic Level



setTransactionTimeout
public void setTransactionTimeout(int timeout) throws RemoteException(Code)
set the default value for transaction timeout



startRemoteServers
public void startRemoteServers(String[] target) throws RemoteException(Code)
Start remote servers or clusters
Parameters:
  target - List of clusters or servers to start
throws:
  RemoteException -



stopRemoteServers
public void stopRemoteServers(String[] target) throws RemoteException(Code)
Stop remote servers or clusters
Parameters:
  target - List of clusters or servers to stop
throws:
  RemoteException -



stopServer
public void stopServer() throws RemoteException(Code)
Stop the Server without stopping the JVM



syncAllEntities
public void syncAllEntities(boolean passivate) throws RemoteException(Code)
sync all entity instances outside transactions
Parameters:
  passivate - passivate instances after synchronization.



undeployFile
public void undeployFile(String filename) throws RemoteException(Code)
Physically remove the module from the server
Parameters:
  filename - the filename of the module to be removed
throws:
  RemoteException -
author:
   Dean Jennings.



Methods inherited from javax.rmi.PortableRemoteObject
public static void connect(Remote target, Remote source) throws RemoteException(Code)(Java Doc)
public static void exportObject(Remote obj) throws RemoteException(Code)(Java Doc)
public static java.lang.Object narrow(java.lang.Object narrowFrom, java.lang.Class narrowTo) throws ClassCastException(Code)(Java Doc)
public static Remote toStub(Remote obj) throws NoSuchObjectException(Code)(Java Doc)
public static void unexportObject(Remote obj) throws NoSuchObjectException(Code)(Java Doc)

Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.