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


java.lang.Object
   org.objectweb.jonas.webapp.jonasadmin.JonasAdminJmx

JonasAdminJmx
public class JonasAdminJmx (Code)
Helper class supporting manipulation of MBeans (accessing MBeans).
author:
   Michel-Ange ANTON


author:
   Contributors: Adriana Danes




Constructor Summary
protected  JonasAdminJmx()
     Protected constructor to prevent instantiation.

Method Summary
public static  StringextractFilename(String p_Path)
     Extract the filename of complete path.
public static  StringextractValueMbeanName(String pName, String pMBeanName)
     Extract the value of a key property from the MBean name.
public static  StringfindSecurityFactorySubType(String p_NameFactory, String serverName)
     Return the SubType of a Security Factory in the current server.
public static  ObjectNamegetArchiveConfigObjectName(String serverName)
    
public static  ArrayListgetConnectionFactoriesList(MessageResources p_Resources, String serverName)
     Return the default Connection Factories.
public static  ArrayListgetDatasourceDependences(String pDatasourceName, String domainName, String serverName)
     Return the list of Datasource dependences for a given datasource name in the current server.
public static  ArrayListgetDatasourceFilesDeployable(String serverName)
     Return the list of Datasource properties files ready to deploy in the current server.
public static  ArrayListgetDatasourceFilesDeployed(String domainName, String serverName)
     Return the list of deployed Datasources in the current server.
public static  ArrayListgetEarFilesDeployable(String serverName)
     Return the list of EAR filename ready to deploy in the current server.
public static  ArrayListgetEarFilesDeployed(String serverName)
     Return the list of deployed EAR filename in the current server.
public static  ArrayList[]getFamiliesMbeansLists(String serverName)
     Create a list for each family of Mbean.
public static  StringgetFirstMBeanName(ObjectName p_On, String serverName)
     Return the first Mbean name gotten by the query in the current MbeanServer.
public static  ObjectNamegetFirstMbean(ObjectName p_On, String serverName)
     Return the first ObjectName Mbean gotten by the query in the current MbeanServer.
public static  ArrayListgetGroups(String p_Resource, String serverName)
     Return the list of all groups in a resource.
public static  ObjectNamegetJ2eeDomainObjectName(String serverName)
     Return the ObjectName corresponding to the J2EEDomain managed object registered in the current MBeanServer.
public static  ObjectNamegetJ2eeServerObjectName(String p_DomainName, String serverName)
     Return the ObjectName corresponding to the J2EEServer managed object registered in the current MBeanServer and belonging to a domain. We should have one ObjectName corresponding to the current JOnAS server instance.
Parameters:
  p_DomainName - The name of the management domain.
public static  ObjectNamegetJ2eeServerObjectName(String serverName)
     Return the ObjectName corresponding to the J2EEServer managed object registered in the current MBeanServer.
public static  ArrayListgetJarFilesDeployable(String serverName)
     Return the list of JAR filename ready to deploy in the current server.
public static  ArrayListgetJarFilesDeployed(String serverName)
     Return the list of deployed JAR filename in the current server.
public static  ListgetListMBeanName(ObjectName p_On, String serverName)
     Return the list of Mbean name gotten by the query in the current MbeanServer.
public static  ListgetListMbean(ObjectName p_On, String serverName)
     Return the list of ObjectName Mbean gotten by the query in the current MbeanServer.
public static  ArrayListgetLoggers(MessageResources p_Resources, WhereAreYou p_WhereAreYou, boolean p_Action)
     Return the list of all used loggers in this JOnAS server.
public static  ArrayListgetMailFactoryDependences(String p_MailFactoryName, WhereAreYou p_WhereAreYou)
     Return the list of Mail factory dependences in the current server for a given factory name.
public static  ArrayListgetMailFilesDeployable(String serverName)
     Return the list of Mail factory files ready to deploy in the current server.
public static  ArrayListgetMailFilesDeployed(WhereAreYou p_WhereAreYou)
     Return the list of deployed Mail factories in the current server.
public static  ArrayListgetMbeansLists(String serverName)
     Create a list for each family of Mbean.
public static  ArrayListgetMimeMailPartFactoriesDeployed(WhereAreYou p_WhereAreYou)
     Return the list of deployed MimePartDatasource Mail Factories in the current server.
public static  ArrayListgetMimePartMailFilesDeployable(String serverName)
     Return the list of MimePartDataSource Mail factory files ready to deploy in the current server.
public static  ArrayListgetMimePartMailFilesDeployed(WhereAreYou p_WhereAreYou)
     Return the list of deployed MimePartDataSource Mail factories in the current server.
public static  ArrayListgetQueuesList(String serverName)
     Return the Queue destinations list.
public static  ObjectNamegetRarConfigObjectName(String serverName)
    
public static  ArrayListgetRarFilesDeployable(String serverName)
     Return the list of RAR filename ready to deploy in the current server.
public static  ArrayListgetRarFilesDeployed(String serverName)
     Return the list of deployed RAR filename in the current server.
public static  ArrayListgetRegistryList(String serverName)
     Return a list of names bounded in the registry.
public static  ArrayListgetRoles(String p_Resource, String serverName)
     Return the list of all roles in a resource.
public static  ArrayListgetSecurityDatasourceFactories(String serverName)
     Return the list of Security Datasource Factories in the current server.
public static  ArrayListgetSecurityLdapFactories(String serverName)
     Return the list of Security Ldap Factories in the current server.
public static  ArrayListgetSecurityMemoryFactories(String serverName)
     Return the list of Security Memory Factories in the current server.
public static  ArrayListgetSessionMailFactoriesDeployed(WhereAreYou p_WhereAreYou)
     Return the list of deployed Session Mail Factories in the current server.
public static  ArrayListgetSessionMailFilesDeployable(String serverName)
     Return the list of Session Mail factory files ready to deploy in the current server.
public static  ArrayListgetSessionMailFilesDeployed(WhereAreYou p_WhereAreYou)
     Return the list of deployed Session Mail factories in the current server.
public static  ArrayListgetTopicsList(String serverName)
     Return the Topic destinations list.
public static  ArrayListgetUsers(String p_Resource, String serverName)
     Return the list of all users in a resource.
public static  ArrayListgetWarFilesDeployable(String serverName)
     Return the list of WAR filename ready to deploy in the current server.
public static  ArrayListgetWarFilesDeployed(String serverName)
     Return the list of deployed WAR filename in the current server.
public static  booleanhasMBeanName(ObjectName p_On, String serverName)
     Verify if the Mbean gotten by the query in the current MbeanServer exists.
public static  ArrayListprepareContainersToDisplay(ArrayList p_Containers, String p_ContainerDir, String p_EarDir)
     Prepare a list of containers to diplay.
public static  Stringreplace(String template, String placeholder, String value)
     Replace any occurrence of the specified placeholder in the specified template string with the specified replacement value.


Constructor Detail
JonasAdminJmx
protected JonasAdminJmx()(Code)
Protected constructor to prevent instantiation.




Method Detail
extractFilename
public static String extractFilename(String p_Path)(Code)
Extract the filename of complete path.
Parameters:
  p_Path - Complete path (directory and filename) The filename or null



extractValueMbeanName
public static String extractValueMbeanName(String pName, String pMBeanName)(Code)
Extract the value of a key property from the MBean name. This method is usefull when we have the String form and not the ObjectName (avoid creating an ObjectName instance).
Parameters:
  pName - Name of the key property
Parameters:
  pMBeanName - Stringified ObjectName The value or null if not found



findSecurityFactorySubType
public static String findSecurityFactorySubType(String p_NameFactory, String serverName) throws ManagementException, MalformedObjectNameException(Code)
Return the SubType of a Security Factory in the current server.
Parameters:
  p_NameFactory - The factory name to find The SubType or null if not found
throws:
  ManagementException -
throws:
  MalformedObjectNameException -



getArchiveConfigObjectName
public static ObjectName getArchiveConfigObjectName(String serverName)(Code)



getConnectionFactoriesList
public static ArrayList getConnectionFactoriesList(MessageResources p_Resources, String serverName)(Code)
Return the default Connection Factories.
Parameters:
  p_Resources - The messages The list



getDatasourceDependences
public static ArrayList getDatasourceDependences(String pDatasourceName, String domainName, String serverName) throws ManagementException(Code)
Return the list of Datasource dependences for a given datasource name in the current server.
Parameters:
  pDatasourceName - The name of the datasource
Parameters:
  domainName - Current domain name
Parameters:
  serverName - Current server name The list of Datasource dependence (a list of names corresponding to EJBs using this datasource).
throws:
  ManagementException - Could not get managzement info from the MBeanServer
throws:
  MalformedObjectNameException -



getDatasourceFilesDeployable
public static ArrayList getDatasourceFilesDeployable(String serverName) throws ManagementException(Code)
Return the list of Datasource properties files ready to deploy in the current server. The list of Datasource properties filenames.
throws:
  ManagementException - Could not get managzement info from the MBeanServer



getDatasourceFilesDeployed
public static ArrayList getDatasourceFilesDeployed(String domainName, String serverName) throws ManagementException(Code)
Return the list of deployed Datasources in the current server.
Parameters:
  domainName - Current domain name
Parameters:
  serverName - Current server name The list of Datasource filename.
throws:
  ManagementException - Could not get managzement info from the MBeanServer



getEarFilesDeployable
public static ArrayList getEarFilesDeployable(String serverName) throws ManagementException(Code)
Return the list of EAR filename ready to deploy in the current server. The list of EAR filename.
throws:
  ManagementException -



getEarFilesDeployed
public static ArrayList getEarFilesDeployed(String serverName) throws ManagementException(Code)
Return the list of deployed EAR filename in the current server. The list of EAR filename.
throws:
  ManagementException -



getFamiliesMbeansLists
public static ArrayList[] getFamiliesMbeansLists(String serverName) throws ManagementException(Code)
Create a list for each family of Mbean. An array of lists
throws:
  ManagementException -



getFirstMBeanName
public static String getFirstMBeanName(ObjectName p_On, String serverName) throws ManagementException(Code)
Return the first Mbean name gotten by the query in the current MbeanServer.
Parameters:
  p_On - Query Mbean name to search The first MBean name or null if not found
throws:
  ManagementException -



getFirstMbean
public static ObjectName getFirstMbean(ObjectName p_On, String serverName) throws ManagementException(Code)
Return the first ObjectName Mbean gotten by the query in the current MbeanServer.
Parameters:
  p_On - Query Mbean name to search The first ObjectName or null if not found
throws:
  ManagementException -



getGroups
public static ArrayList getGroups(String p_Resource, String serverName) throws ManagementException, MalformedObjectNameException(Code)
Return the list of all groups in a resource.
Parameters:
  p_Resource - The resource The list of groups
throws:
  ManagementException -
throws:
  MalformedObjectNameException -



getJ2eeDomainObjectName
public static ObjectName getJ2eeDomainObjectName(String serverName)(Code)
Return the ObjectName corresponding to the J2EEDomain managed object registered in the current MBeanServer. Normally, we should have only one which has not the property 'clusterName' an ObjectName which corresponds to the first J2EEDomain ObjectName pattern



getJ2eeServerObjectName
public static ObjectName getJ2eeServerObjectName(String p_DomainName, String serverName) throws ManagementException(Code)
Return the ObjectName corresponding to the J2EEServer managed object registered in the current MBeanServer and belonging to a domain. We should have one ObjectName corresponding to the current JOnAS server instance.
Parameters:
  p_DomainName - The name of the management domain. an ObjectName which corresponds to a J2EEServer ObjectName pattern or null ifno J2EEServer found for the given management domain(having j2eeType key property equal to J2EEServer)
throws:
  ManagementException - if could not connect to the MBean server



getJ2eeServerObjectName
public static ObjectName getJ2eeServerObjectName(String serverName)(Code)
Return the ObjectName corresponding to the J2EEServer managed object registered in the current MBeanServer. This method is used by EditTopAction to determine the list of JOnAS servers registered in the current registry (this code is particular to the current domain concept implementation). We should have one ObjectName corresponding to the current JOnAS server instance. an ObjectName which corresponds to a J2EEServer ObjectName pattern(having j2eeType key property equal to J2EEServer)



getJarFilesDeployable
public static ArrayList getJarFilesDeployable(String serverName) throws ManagementException(Code)
Return the list of JAR filename ready to deploy in the current server. The list of JAR filename.
throws:
  ManagementException -



getJarFilesDeployed
public static ArrayList getJarFilesDeployed(String serverName) throws ManagementException(Code)
Return the list of deployed JAR filename in the current server. The list of JAR filename.
throws:
  ManagementException -



getListMBeanName
public static List getListMBeanName(ObjectName p_On, String serverName) throws ManagementException(Code)
Return the list of Mbean name gotten by the query in the current MbeanServer.
Parameters:
  p_On - Query Mbean name to search A list of string Mbean name
throws:
  ManagementException -



getListMbean
public static List getListMbean(ObjectName p_On, String serverName) throws ManagementException(Code)
Return the list of ObjectName Mbean gotten by the query in the current MbeanServer.
Parameters:
  p_On - Query Mbeans to search The list of ObjectName
throws:
  ManagementException -



getLoggers
public static ArrayList getLoggers(MessageResources p_Resources, WhereAreYou p_WhereAreYou, boolean p_Action) throws ManagementException, MalformedObjectNameException(Code)
Return the list of all used loggers in this JOnAS server.
Parameters:
  p_Resources - The used message resource
Parameters:
  p_WhereAreYou - The used WhereAreYou instance
Parameters:
  p_Action - True to get the action (to use directly in jsp) or False to get the same action but in forward (write in the file struts-config.xml) The list of loggers
throws:
  ManagementException -
throws:
  MalformedObjectNameException -



getMailFactoryDependences
public static ArrayList getMailFactoryDependences(String p_MailFactoryName, WhereAreYou p_WhereAreYou) throws ManagementException(Code)
Return the list of Mail factory dependences in the current server for a given factory name.
Parameters:
  p_MailFactoryName - The name of the mail factory
Parameters:
  p_WhereAreYou - The container WhereAreYou The list of Mail factory dependences (a list of names corresponding to EJBs using this mail factory).
throws:
  ManagementException -



getMailFilesDeployable
public static ArrayList getMailFilesDeployable(String serverName) throws ManagementException(Code)
Return the list of Mail factory files ready to deploy in the current server. The list of Mail factory properties filenames.
throws:
  ManagementException -



getMailFilesDeployed
public static ArrayList getMailFilesDeployed(WhereAreYou p_WhereAreYou) throws ManagementException(Code)
Return the list of deployed Mail factories in the current server.
Parameters:
  p_WhereAreYou - The container WhereAreYou The list of Mail factory filename.
throws:
  ManagementException -



getMbeansLists
public static ArrayList getMbeansLists(String serverName) throws ManagementException(Code)
Create a list for each family of Mbean. An array of lists
throws:
  ManagementException -



getMimeMailPartFactoriesDeployed
public static ArrayList getMimeMailPartFactoriesDeployed(WhereAreYou p_WhereAreYou) throws ManagementException(Code)
Return the list of deployed MimePartDatasource Mail Factories in the current server.
Parameters:
  p_WhereAreYou - The container WhereAreYou The list
throws:
  ManagementException -



getMimePartMailFilesDeployable
public static ArrayList getMimePartMailFilesDeployable(String serverName) throws ManagementException(Code)
Return the list of MimePartDataSource Mail factory files ready to deploy in the current server. The list of MimePartDataSource Mail factory properties filenames.
throws:
  ManagementException -



getMimePartMailFilesDeployed
public static ArrayList getMimePartMailFilesDeployed(WhereAreYou p_WhereAreYou) throws ManagementException(Code)
Return the list of deployed MimePartDataSource Mail factories in the current server.
Parameters:
  p_WhereAreYou - The container WhereAreYou The list of MimePartDataSource Mail factory filename.
throws:
  ManagementException -



getQueuesList
public static ArrayList getQueuesList(String serverName)(Code)
Return the Queue destinations list. The list



getRarConfigObjectName
public static ObjectName getRarConfigObjectName(String serverName)(Code)



getRarFilesDeployable
public static ArrayList getRarFilesDeployable(String serverName) throws ManagementException(Code)
Return the list of RAR filename ready to deploy in the current server. The list of RAR filename.
throws:
  ManagementException -



getRarFilesDeployed
public static ArrayList getRarFilesDeployed(String serverName) throws ManagementException(Code)
Return the list of deployed RAR filename in the current server. The list of RAR filename.
throws:
  ManagementException -



getRegistryList
public static ArrayList getRegistryList(String serverName) throws NamingException(Code)
Return a list of names bounded in the registry. The list
throws:
  NamingException -



getRoles
public static ArrayList getRoles(String p_Resource, String serverName) throws ManagementException, MalformedObjectNameException(Code)
Return the list of all roles in a resource.
Parameters:
  p_Resource - The resource The list of roles
throws:
  ManagementException -
throws:
  MalformedObjectNameException -



getSecurityDatasourceFactories
public static ArrayList getSecurityDatasourceFactories(String serverName) throws ManagementException, MalformedObjectNameException(Code)
Return the list of Security Datasource Factories in the current server. The list of Security Datasource Factories
throws:
  ManagementException -
throws:
  MalformedObjectNameException -



getSecurityLdapFactories
public static ArrayList getSecurityLdapFactories(String serverName) throws ManagementException, MalformedObjectNameException(Code)
Return the list of Security Ldap Factories in the current server. The list of Security Ldap Factories
throws:
  ManagementException -
throws:
  MalformedObjectNameException -



getSecurityMemoryFactories
public static ArrayList getSecurityMemoryFactories(String serverName) throws ManagementException, MalformedObjectNameException(Code)
Return the list of Security Memory Factories in the current server. The list of Security Memory Factories
throws:
  ManagementException -
throws:
  MalformedObjectNameException -



getSessionMailFactoriesDeployed
public static ArrayList getSessionMailFactoriesDeployed(WhereAreYou p_WhereAreYou) throws ManagementException(Code)
Return the list of deployed Session Mail Factories in the current server.
Parameters:
  p_WhereAreYou - The container WhereAreYou The list
throws:
  ManagementException -



getSessionMailFilesDeployable
public static ArrayList getSessionMailFilesDeployable(String serverName) throws ManagementException(Code)
Return the list of Session Mail factory files ready to deploy in the current server. The list of Session Mail factory properties filenames.
throws:
  ManagementException -



getSessionMailFilesDeployed
public static ArrayList getSessionMailFilesDeployed(WhereAreYou p_WhereAreYou) throws ManagementException(Code)
Return the list of deployed Session Mail factories in the current server.
Parameters:
  p_WhereAreYou - The container WhereAreYou The list of Session Mail factory filename.
throws:
  ManagementException -



getTopicsList
public static ArrayList getTopicsList(String serverName)(Code)
Return the Topic destinations list. The list



getUsers
public static ArrayList getUsers(String p_Resource, String serverName) throws ManagementException, MalformedObjectNameException(Code)
Return the list of all users in a resource.
Parameters:
  p_Resource - The resource The list of users
throws:
  ManagementException -
throws:
  MalformedObjectNameException -



getWarFilesDeployable
public static ArrayList getWarFilesDeployable(String serverName) throws ManagementException(Code)
Return the list of WAR filename ready to deploy in the current server. The list of WAR filename.
throws:
  ManagementException -



getWarFilesDeployed
public static ArrayList getWarFilesDeployed(String serverName) throws ManagementException(Code)
Return the list of deployed WAR filename in the current server. The list of WAR filename.
throws:
  ManagementException -



hasMBeanName
public static boolean hasMBeanName(ObjectName p_On, String serverName) throws ManagementException(Code)
Verify if the Mbean gotten by the query in the current MbeanServer exists.
Parameters:
  p_On - Query Mbean name to search true if MBean exists
throws:
  ManagementException -



prepareContainersToDisplay
public static ArrayList prepareContainersToDisplay(ArrayList p_Containers, String p_ContainerDir, String p_EarDir)(Code)
Prepare a list of containers to diplay. Deleting prefix root container directory, sorting the list.
Parameters:
  p_Containers - The list of containers
Parameters:
  p_ContainerDir - The root container directory
Parameters:
  p_EarDir - The root ear directory or null The list of containers ready to display



replace
public static String replace(String template, String placeholder, String value)(Code)
Replace any occurrence of the specified placeholder in the specified template string with the specified replacement value.
Parameters:
  template - Pattern string possibly containing the placeholder
Parameters:
  placeholder - Placeholder expression to be replaced
Parameters:
  value - Replacement value for the placeholder A complete string



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.