Java Doc for J2EEServerMBean.java in  » J2EE » JOnAS-4.8.6 » org » objectweb » jonas » server » 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.server 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.objectweb.jonas.server.J2EEServerMBean

J2EEServerMBean
public class J2EEServerMBean extends BaseModelMBean (Code)
MBean class for Server management. Two classes are used to provide all management services : J2EEServer and J2EEServerMBean. This class provide the notification's process when add or remove resources.
author:
   Adriana Danes
author:
   Michel-Ange Anton



Constructor Summary
public  J2EEServerMBean()
    

Method Summary
public  voidaddNotificationListener(NotificationListener pListner, NotificationFilter pFilter, java.lang.Object pHandback)
     Add a new listener.
public  StringdeployEar(String fileName)
    
public  StringdeployFile(Integer typeparam, java.lang.Byte[] bfile, String filename, String[] genicArgs, Boolean moveIntoDeployableDirectory)
     Deploy file (GenIC), needed for Ishmael to work.
public  StringdeployJar(String fileName)
    
public  voiddeployLocalFile(String pathname, String[] genicArgs)
    
public  StringdeployRar(String fileName)
    
public  voiddeployWar(String fileName)
    
public  String[]getDeployedObjects()
     All The MBean names corresponding to the deployed J2EEModules (ear, jar, war, rar).
public  String[]getJavaVMs()
     All The MBean names corresponding to the used JVMs.
public  String[]getResources()
     All The MBean names corresponding to the deployed J2EEResources.
public  BooleanisEarDeployed(String fileName)
     Test if the specified filename is already deployed or not.
Parameters:
  fileName - the name of the ear file.
public  BooleanisJarDeployed(String fileName)
     Test if the specified filename is already deployed or not.
Parameters:
  fileName - the name of the jar file.
public  BooleanisRarDeployed(String fileName)
     Test if the specified filename is already deployed or not.
Parameters:
  fileName - the name of the rar file.
public  BooleanisWarDeployed(String fileName)
     Test if the specified filename is already deployed or not.
Parameters:
  fileName - the name of the War file.
public  BooleanremoveModuleFile(String fileName)
    
public  StringsendFile(byte[] fileContent, String fileName, boolean replaceExisting)
     Send a file to JOnAS Base with the given input stream and write it in the corresponding directory, ie JONAS_BASE/apps, JONAS_BASE/ejbjars, etc.
public  voidsendNotification(Notification pNotification)
     Send a notification to the listener.
public  StringwsgenLocalFile(String pathname, Boolean unpacked)
    


Constructor Detail
J2EEServerMBean
public J2EEServerMBean() throws MBeanException(Code)
Default constructor
throws:
  MBeanException - if super constructor fails




Method Detail
addNotificationListener
public void addNotificationListener(NotificationListener pListner, NotificationFilter pFilter, java.lang.Object pHandback) throws java.lang.IllegalArgumentException(Code)
Add a new listener.
Parameters:
  pListner - Listener to notify
Parameters:
  pFilter - Notification filter
Parameters:
  pHandback - ??
throws:
  java.lang.IllegalArgumentException - if notification is not done



deployEar
public String deployEar(String fileName) throws Exception(Code)
Deploy a J2EE application packaged in a EAR file
Parameters:
  fileName - file name The ObjectName of the MBean associated to the deployed J2EEApplication
throws:
  Exception - Management operation failed



deployFile
public String deployFile(Integer typeparam, java.lang.Byte[] bfile, String filename, String[] genicArgs, Boolean moveIntoDeployableDirectory)(Code)
Deploy file (GenIC), needed for Ishmael to work. The file is in the directory specified by the property "jonas.service.deployment.directory"
Parameters:
  typeparam - type of the file (EJB, WAR, EAR, RAR, CAR)
Parameters:
  bfile - bytes array of the file
Parameters:
  filename - basename of the file to be deployed (if moveIntoDeployableDirectory full path name because local file)
Parameters:
  genicArgs - arguments for GenIC
Parameters:
  moveIntoDeployableDirectory - true to copy the file into the deployable JOnAS_BASE directory
throws:
  RemoteException -
throws:
  EarServiceException -
throws:
  ResourceServiceException -
throws:
  JWebContainerServiceException - absolute path of the file
author:
   Dean Jennings.



deployJar
public String deployJar(String fileName) throws Exception(Code)
Deploy a stand-alone J2EE module packaged in a JAR file
Parameters:
  fileName - file name The ObjectName of the MBean associated to the deployed module
throws:
  Exception - Management operation failed



deployLocalFile
public void deployLocalFile(String pathname, String[] genicArgs)(Code)
Deploy local file and generate classes with Genic tool
Parameters:
  pathname - : local path name to the application
Parameters:
  genicArgs - : list of genic's parameters



deployRar
public String deployRar(String fileName) throws Exception(Code)
Deploy a J2EE application packaged in a RAR file
Parameters:
  fileName - file name The ObjectName of the MBean associated to the deployed J2EEApplication
throws:
  Exception - Management operation failed



deployWar
public void deployWar(String fileName) throws Exception(Code)
Deploy a stand-alone J2EE module packaged in a War file
Parameters:
  fileName - file name
throws:
  Exception - Management operation failed



getDeployedObjects
public String[] getDeployedObjects()(Code)
All The MBean names corresponding to the deployed J2EEModules (ear, jar, war, rar). The String's array of deployed modules objects names



getJavaVMs
public String[] getJavaVMs()(Code)
All The MBean names corresponding to the used JVMs. The String's array of used JVMs objects names



getResources
public String[] getResources()(Code)
All The MBean names corresponding to the deployed J2EEResources. The String's array of deployed resources objects names



isEarDeployed
public Boolean isEarDeployed(String fileName) throws Exception(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, otherwise false.
throws:
  Exception - Management operation failed



isJarDeployed
public Boolean isJarDeployed(String fileName) throws Exception(Code)
Test if the specified filename is already deployed or not.
Parameters:
  fileName - the name of the jar file. true if the jar is deployed, otherwise false.
throws:
  Exception - Management operation failed



isRarDeployed
public Boolean isRarDeployed(String fileName) throws Exception(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, otherwise false.
throws:
  Exception - Management operation failed



isWarDeployed
public Boolean isWarDeployed(String fileName) throws Exception(Code)
Test if the specified filename is already deployed or not.
Parameters:
  fileName - the name of the War file. true if the jar is deployed, otherwise false.
throws:
  Exception - Management operation failed



removeModuleFile
public Boolean removeModuleFile(String fileName) throws Exception(Code)
Remove a specified J2EE module
Parameters:
  fileName - Name of file to remove true if file has been removed
throws:
  Exception - if remove fails



sendFile
public String sendFile(byte[] fileContent, String fileName, boolean replaceExisting) throws Exception(Code)
Send a file to JOnAS Base with the given input stream and write it in the corresponding directory, ie JONAS_BASE/apps, JONAS_BASE/ejbjars, etc. It is based on the filename extension
Parameters:
  fileContent - the content (bytes) of the file
Parameters:
  fileName - name of the file
Parameters:
  replaceExisting - replace existing file if any the path of the file
throws:
  Exception - if file is already present and if the user don't want to replace existing file.



sendNotification
public void sendNotification(Notification pNotification)(Code)
Send a notification to the listener.
Parameters:
  pNotification - The notification to send



wsgenLocalFile
public String wsgenLocalFile(String pathname, Boolean unpacked)(Code)
Apply WsGen on a local file and generate webservices artifacts
Parameters:
  pathname - : local path name to the component
Parameters:
  unpacked - true if we want to have an unpacked directory as result Returns the path to the modified archive



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