org.objectweb.jonas.webapp.jonasadmin.JonasAdminJmx Class Reference

List of all members.

Static Public Member Functions

String replace (String template, String placeholder, String value)
ObjectName getJ2eeDomainObjectName ()
ObjectName getJ2eeServerObjectName (String p_DomainName)
ObjectName getJ2eeServerObjectName ()
ArrayList getListRemoteJonasServerItem (HttpServletRequest p_Request) throws Exception
boolean hasMBeanName (ObjectName p_On) throws ManagementException
String getFirstMBeanName (ObjectName p_On) throws ManagementException
List getListMBeanName (ObjectName p_On) throws ManagementException
ObjectName getFirstMbean (ObjectName p_On) throws ManagementException
List getListMbean (ObjectName p_On) throws ManagementException
String extractValueMbeanName (String pName, String pMBeanName)
String extractFilename (String p_Path)
ArrayList getJarFilesDeployable () throws ManagementException
ArrayList getRarFilesDeployable () throws ManagementException
ArrayList getEarFilesDeployable () throws ManagementException
ArrayList getWarFilesDeployable () throws ManagementException
ArrayList getJarFilesDeployed () throws ManagementException
ArrayList getEarFilesDeployed () throws ManagementException
ArrayList getRarFilesDeployed () throws ManagementException
ArrayList getWarFilesDeployed () throws ManagementException
ArrayList prepareContainersToDisplay (ArrayList p_Containers, String p_ContainerDir, String p_EarDir)
ArrayList getMailFilesDeployable () throws ManagementException
ArrayList getMimePartMailFilesDeployable () throws ManagementException
ArrayList getSessionMailFilesDeployable () throws ManagementException
ArrayList getMimePartMailFilesDeployed (WhereAreYou p_WhereAreYou) throws ManagementException
ArrayList getSessionMailFilesDeployed (WhereAreYou p_WhereAreYou) throws ManagementException
ArrayList getMailFilesDeployed (WhereAreYou p_WhereAreYou) throws ManagementException
ArrayList getDatasourceFilesDeployable () throws ManagementException
ArrayList getDatasourceFilesDeployed (String domainName, String serverName) throws ManagementException
ArrayList getDatasourceDependences (String pDatasourceName, String domainName, String serverName) throws ManagementException
ArrayList getMailFactoryDependences (String p_MailFactoryName, WhereAreYou p_WhereAreYou) throws ManagementException
ArrayList getSessionMailFactoriesDeployed (WhereAreYou p_WhereAreYou) throws ManagementException
ArrayList getMimeMailPartFactoriesDeployed (WhereAreYou p_WhereAreYou) throws ManagementException
ArrayList getSecurityMemoryFactories () throws ManagementException, MalformedObjectNameException
ArrayList getSecurityDatasourceFactories () throws ManagementException, MalformedObjectNameException
ArrayList getSecurityLdapFactories () throws ManagementException, MalformedObjectNameException
String findSecurityFactorySubType (String p_NameFactory) throws ManagementException, MalformedObjectNameException
ArrayList getUsers (String p_Resource) throws ManagementException, MalformedObjectNameException
ArrayList getRoles (String p_Resource) throws ManagementException, MalformedObjectNameException
ArrayList getGroups (String p_Resource) throws ManagementException, MalformedObjectNameException
ArrayList getRegistryList () throws NamingException
ArrayList getQueuesList ()
ArrayList getTopicsList ()
ArrayList getConnectionFactoriesList (MessageResources p_Resources)
ArrayList getLoggers (MessageResources p_Resources, WhereAreYou p_WhereAreYou, boolean p_Action) throws ManagementException
ArrayList getMbeansLists () throws ManagementException
ArrayList[] getFamiliesMbeansLists () throws ManagementException

Protected Member Functions

 JonasAdminJmx ()

Detailed Description

Helper class supporting manipulation of MBeans (accessing MBeans).
Author:
Michel-Ange ANTON
Contributors: Adriana Danes

Definition at line 59 of file JonasAdminJmx.java.


Constructor & Destructor Documentation

org.objectweb.jonas.webapp.jonasadmin.JonasAdminJmx.JonasAdminJmx  )  [protected]
 

Protected constructor to prevent instantiation.

Definition at line 70 of file JonasAdminJmx.java.


Member Function Documentation

String org.objectweb.jonas.webapp.jonasadmin.JonasAdminJmx.extractFilename String  p_Path  )  [static]
 

Extract the filename of complete path.

Parameters:
p_Path Complete path (directory and filename)
Returns:
The filename or null

Definition at line 337 of file JonasAdminJmx.java.

String org.objectweb.jonas.webapp.jonasadmin.JonasAdminJmx.extractValueMbeanName String  pName,
String  pMBeanName
[static]
 

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
pMBeanName Stringified ObjectName
Returns:
The value or null if not found

Definition at line 312 of file JonasAdminJmx.java.

String org.objectweb.jonas.webapp.jonasadmin.JonasAdminJmx.findSecurityFactorySubType String  p_NameFactory  )  throws ManagementException, MalformedObjectNameException [static]
 

Return the SubType of a Security Factory in the current server.

Parameters:
p_NameFactory The factory name to find
Returns:
The SubType or null if not found
Exceptions:
ManagementException 
MalformedObjectNameException 

Definition at line 1019 of file JonasAdminJmx.java.

ArrayList org.objectweb.jonas.webapp.jonasadmin.JonasAdminJmx.getConnectionFactoriesList MessageResources  p_Resources  )  [static]
 

Return the default Connection Factories.

Parameters:
p_Resources The messages
Returns:
The list

Definition at line 1168 of file JonasAdminJmx.java.

ArrayList org.objectweb.jonas.webapp.jonasadmin.JonasAdminJmx.getDatasourceDependences String  pDatasourceName,
String  domainName,
String  serverName
throws ManagementException [static]
 

Return the list of Datasource dependences for a given datasource name in the current server.

Parameters:
pDatasourceName The name of the datasource
domainName Current domain name
serverName Current server name
Returns:
The list of Datasource dependence (a list of names corresponding to EJBs using this datasource).
Exceptions:
ManagementException Could not get managzement info from the MBeanServer
MalformedObjectNameException 

Definition at line 815 of file JonasAdminJmx.java.

ArrayList org.objectweb.jonas.webapp.jonasadmin.JonasAdminJmx.getDatasourceFilesDeployable  )  throws ManagementException [static]
 

Return the list of Datasource properties files ready to deploy in the current server.

Returns:
The list of Datasource properties filenames.
Exceptions:
ManagementException Could not get managzement info from the MBeanServer

Definition at line 773 of file JonasAdminJmx.java.

ArrayList org.objectweb.jonas.webapp.jonasadmin.JonasAdminJmx.getDatasourceFilesDeployed String  domainName,
String  serverName
throws ManagementException [static]
 

Return the list of deployed Datasources in the current server.

Parameters:
domainName Current domain name
serverName Current server name
Returns:
The list of Datasource filename.
Exceptions:
ManagementException Could not get managzement info from the MBeanServer

Definition at line 786 of file JonasAdminJmx.java.

ArrayList org.objectweb.jonas.webapp.jonasadmin.JonasAdminJmx.getEarFilesDeployable  )  throws ManagementException [static]
 

Return the list of EAR filename ready to deploy in the current server.

Returns:
The list of EAR filename.
Exceptions:
ManagementException 

Definition at line 485 of file JonasAdminJmx.java.

ArrayList org.objectweb.jonas.webapp.jonasadmin.JonasAdminJmx.getEarFilesDeployed  )  throws ManagementException [static]
 

Return the list of deployed EAR filename in the current server.

Returns:
The list of EAR filename.
Exceptions:
ManagementException 

Definition at line 545 of file JonasAdminJmx.java.

ArrayList [] org.objectweb.jonas.webapp.jonasadmin.JonasAdminJmx.getFamiliesMbeansLists  )  throws ManagementException [static]
 

Create a list for each family of Mbean.

Returns:
An array of lists
Exceptions:
ManagementException 

Definition at line 1266 of file JonasAdminJmx.java.

References org.objectweb.jonas.webapp.jonasadmin.mbean.MbeanItem.build(), and org.objectweb.jonas.webapp.jonasadmin.mbean.MbeanItem.getFamily().

Here is the call graph for this function:

ObjectName org.objectweb.jonas.webapp.jonasadmin.JonasAdminJmx.getFirstMbean ObjectName  p_On  )  throws ManagementException [static]
 

Return the first ObjectName Mbean gotten by the query in the current MbeanServer.

Parameters:
p_On Query Mbean name to search
Returns:
The first ObjectName or null if not found
Exceptions:
ManagementException 

Definition at line 272 of file JonasAdminJmx.java.

String org.objectweb.jonas.webapp.jonasadmin.JonasAdminJmx.getFirstMBeanName ObjectName  p_On  )  throws ManagementException [static]
 

Return the first Mbean name gotten by the query in the current MbeanServer.

Parameters:
p_On Query Mbean name to search
Returns:
The first MBean name or null if not found
Exceptions:
ManagementException 

Definition at line 231 of file JonasAdminJmx.java.

ArrayList org.objectweb.jonas.webapp.jonasadmin.JonasAdminJmx.getGroups String  p_Resource  )  throws ManagementException, MalformedObjectNameException [static]
 

Return the list of all groups in a resource.

Parameters:
p_Resource The resource
Returns:
The list of groups
Exceptions:
ManagementException 
MalformedObjectNameException 

Definition at line 1091 of file JonasAdminJmx.java.

ObjectName org.objectweb.jonas.webapp.jonasadmin.JonasAdminJmx.getJ2eeDomainObjectName  )  [static]
 

Return the ObjectName corresponding to the J2EEDomain managed object registered in the current MBeanServer. Normally, we should have only one.

Returns:
an ObjectName which corresponds to the first J2EEDomain ObjectName pattern

Definition at line 111 of file JonasAdminJmx.java.

ObjectName org.objectweb.jonas.webapp.jonasadmin.JonasAdminJmx.getJ2eeServerObjectName  )  [static]
 

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.

Returns:
an ObjectName which corresponds to a J2EEServer ObjectName pattern (having j2eeType key property equal to J2EEServer)

Definition at line 146 of file JonasAdminJmx.java.

ObjectName org.objectweb.jonas.webapp.jonasadmin.JonasAdminJmx.getJ2eeServerObjectName String  p_DomainName  )  [static]
 

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.
Returns:
an ObjectName which corresponds to a J2EEServer ObjectName pattern (having j2eeType key property equal to J2EEServer)

Definition at line 125 of file JonasAdminJmx.java.

ArrayList org.objectweb.jonas.webapp.jonasadmin.JonasAdminJmx.getJarFilesDeployable  )  throws ManagementException [static]
 

Return the list of JAR filename ready to deploy in the current server.

Returns:
The list of JAR filename.
Exceptions:
ManagementException 

Definition at line 439 of file JonasAdminJmx.java.

ArrayList org.objectweb.jonas.webapp.jonasadmin.JonasAdminJmx.getJarFilesDeployed  )  throws ManagementException [static]
 

Return the list of deployed JAR filename in the current server.

Returns:
The list of JAR filename.
Exceptions:
ManagementException 

Definition at line 522 of file JonasAdminJmx.java.

List org.objectweb.jonas.webapp.jonasadmin.JonasAdminJmx.getListMbean ObjectName  p_On  )  throws ManagementException [static]
 

Return the list of ObjectName Mbean gotten by the query in the current MbeanServer.

Parameters:
p_On Query Mbeans to search
Returns:
The list of ObjectName
Exceptions:
ManagementException 

Definition at line 292 of file JonasAdminJmx.java.

List org.objectweb.jonas.webapp.jonasadmin.JonasAdminJmx.getListMBeanName ObjectName  p_On  )  throws ManagementException [static]
 

Return the list of Mbean name gotten by the query in the current MbeanServer.

Parameters:
p_On Query Mbean name to search
Returns:
A list of string Mbean name
Exceptions:
ManagementException 

Definition at line 250 of file JonasAdminJmx.java.

ArrayList org.objectweb.jonas.webapp.jonasadmin.JonasAdminJmx.getListRemoteJonasServerItem HttpServletRequest  p_Request  )  throws Exception [static]
 

Return a list of JonasServerItem connected to the same registry.

Parameters:
p_Request The http request
Returns:
List of JonasServerItem
Exceptions:
Exception 

Definition at line 165 of file JonasAdminJmx.java.

ArrayList org.objectweb.jonas.webapp.jonasadmin.JonasAdminJmx.getLoggers MessageResources  p_Resources,
WhereAreYou  p_WhereAreYou,
boolean  p_Action
throws ManagementException [static]
 

Return the list of all used loggers in this JOnAS server.

Parameters:
p_Resources The used message resource
p_WhereAreYou The used WhereAreYou instance
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)
Returns:
The list of loggers
Exceptions:
ManagementException 

Definition at line 1199 of file JonasAdminJmx.java.

ArrayList org.objectweb.jonas.webapp.jonasadmin.JonasAdminJmx.getMailFactoryDependences String  p_MailFactoryName,
WhereAreYou  p_WhereAreYou
throws ManagementException [static]
 

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
p_WhereAreYou The container WhereAreYou
Returns:
The list of Mail factory dependences (a list of names corresponding to EJBs using this mail factory).
Exceptions:
ManagementException 

Definition at line 846 of file JonasAdminJmx.java.

ArrayList org.objectweb.jonas.webapp.jonasadmin.JonasAdminJmx.getMailFilesDeployable  )  throws ManagementException [static]
 

Return the list of Mail factory files ready to deploy in the current server.

Returns:
The list of Mail factory properties filenames.
Exceptions:
ManagementException 

Definition at line 667 of file JonasAdminJmx.java.

ArrayList org.objectweb.jonas.webapp.jonasadmin.JonasAdminJmx.getMailFilesDeployed WhereAreYou  p_WhereAreYou  )  throws ManagementException [static]
 

Return the list of deployed Mail factories in the current server.

Parameters:
p_WhereAreYou The container WhereAreYou
Returns:
The list of Mail factory filename.
Exceptions:
ManagementException 

Definition at line 759 of file JonasAdminJmx.java.

ArrayList org.objectweb.jonas.webapp.jonasadmin.JonasAdminJmx.getMbeansLists  )  throws ManagementException [static]
 

Create a list for each family of Mbean.

Returns:
An array of lists
Exceptions:
ManagementException 

Definition at line 1244 of file JonasAdminJmx.java.

References org.objectweb.jonas.webapp.jonasadmin.mbean.MbeanItem.build().

Here is the call graph for this function:

ArrayList org.objectweb.jonas.webapp.jonasadmin.JonasAdminJmx.getMimeMailPartFactoriesDeployed WhereAreYou  p_WhereAreYou  )  throws ManagementException [static]
 

Return the list of deployed MimePartDatasource Mail Factories in the current server.

Parameters:
p_WhereAreYou The container WhereAreYou
Returns:
The list
Exceptions:
ManagementException 

Definition at line 923 of file JonasAdminJmx.java.

ArrayList org.objectweb.jonas.webapp.jonasadmin.JonasAdminJmx.getMimePartMailFilesDeployable  )  throws ManagementException [static]
 

Return the list of MimePartDataSource Mail factory files ready to deploy in the current server.

Returns:
The list of MimePartDataSource Mail factory properties filenames.
Exceptions:
ManagementException 

Definition at line 679 of file JonasAdminJmx.java.

ArrayList org.objectweb.jonas.webapp.jonasadmin.JonasAdminJmx.getMimePartMailFilesDeployed WhereAreYou  p_WhereAreYou  )  throws ManagementException [static]
 

Return the list of deployed MimePartDataSource Mail factories in the current server.

Parameters:
p_WhereAreYou The container WhereAreYou
Returns:
The list of MimePartDataSource Mail factory filename.
Exceptions:
ManagementException 

Definition at line 705 of file JonasAdminJmx.java.

ArrayList org.objectweb.jonas.webapp.jonasadmin.JonasAdminJmx.getQueuesList  )  [static]
 

Return the Queue destinations list.

Returns:
The list

Definition at line 1130 of file JonasAdminJmx.java.

ArrayList org.objectweb.jonas.webapp.jonasadmin.JonasAdminJmx.getRarFilesDeployable  )  throws ManagementException [static]
 

Return the list of RAR filename ready to deploy in the current server.

Returns:
The list of RAR filename.
Exceptions:
ManagementException 

Definition at line 462 of file JonasAdminJmx.java.

ArrayList org.objectweb.jonas.webapp.jonasadmin.JonasAdminJmx.getRarFilesDeployed  )  throws ManagementException [static]
 

Return the list of deployed RAR filename in the current server.

Returns:
The list of RAR filename.
Exceptions:
ManagementException 

Definition at line 559 of file JonasAdminJmx.java.

ArrayList org.objectweb.jonas.webapp.jonasadmin.JonasAdminJmx.getRegistryList  )  throws NamingException [static]
 

Return a list of names bounded in the registry.

Returns:
The list
Exceptions:
NamingException 

Definition at line 1112 of file JonasAdminJmx.java.

ArrayList org.objectweb.jonas.webapp.jonasadmin.JonasAdminJmx.getRoles String  p_Resource  )  throws ManagementException, MalformedObjectNameException [static]
 

Return the list of all roles in a resource.

Parameters:
p_Resource The resource
Returns:
The list of roles
Exceptions:
ManagementException 
MalformedObjectNameException 

Definition at line 1068 of file JonasAdminJmx.java.

ArrayList org.objectweb.jonas.webapp.jonasadmin.JonasAdminJmx.getSecurityDatasourceFactories  )  throws ManagementException, MalformedObjectNameException [static]
 

Return the list of Security Datasource Factories in the current server.

Returns:
The list of Security Datasource Factories
Exceptions:
ManagementException 
MalformedObjectNameException 

Definition at line 973 of file JonasAdminJmx.java.

ArrayList org.objectweb.jonas.webapp.jonasadmin.JonasAdminJmx.getSecurityLdapFactories  )  throws ManagementException, MalformedObjectNameException [static]
 

Return the list of Security Ldap Factories in the current server.

Returns:
The list of Security Ldap Factories
Exceptions:
ManagementException 
MalformedObjectNameException 

Definition at line 996 of file JonasAdminJmx.java.

ArrayList org.objectweb.jonas.webapp.jonasadmin.JonasAdminJmx.getSecurityMemoryFactories  )  throws ManagementException, MalformedObjectNameException [static]
 

Return the list of Security Memory Factories in the current server.

Returns:
The list of Security Memory Factories
Exceptions:
ManagementException 
MalformedObjectNameException 

Definition at line 951 of file JonasAdminJmx.java.

ArrayList org.objectweb.jonas.webapp.jonasadmin.JonasAdminJmx.getSessionMailFactoriesDeployed WhereAreYou  p_WhereAreYou  )  throws ManagementException [static]
 

Return the list of deployed Session Mail Factories in the current server.

Parameters:
p_WhereAreYou The container WhereAreYou
Returns:
The list
Exceptions:
ManagementException 

Definition at line 893 of file JonasAdminJmx.java.

ArrayList org.objectweb.jonas.webapp.jonasadmin.JonasAdminJmx.getSessionMailFilesDeployable  )  throws ManagementException [static]
 

Return the list of Session Mail factory files ready to deploy in the current server.

Returns:
The list of Session Mail factory properties filenames.
Exceptions:
ManagementException 

Definition at line 692 of file JonasAdminJmx.java.

ArrayList org.objectweb.jonas.webapp.jonasadmin.JonasAdminJmx.getSessionMailFilesDeployed WhereAreYou  p_WhereAreYou  )  throws ManagementException [static]
 

Return the list of deployed Session Mail factories in the current server.

Parameters:
p_WhereAreYou The container WhereAreYou
Returns:
The list of Session Mail factory filename.
Exceptions:
ManagementException 

Definition at line 732 of file JonasAdminJmx.java.

ArrayList org.objectweb.jonas.webapp.jonasadmin.JonasAdminJmx.getTopicsList  )  [static]
 

Return the Topic destinations list.

Returns:
The list

Definition at line 1148 of file JonasAdminJmx.java.

ArrayList org.objectweb.jonas.webapp.jonasadmin.JonasAdminJmx.getUsers String  p_Resource  )  throws ManagementException, MalformedObjectNameException [static]
 

Return the list of all users in a resource.

Parameters:
p_Resource The resource
Returns:
The list of users
Exceptions:
ManagementException 
MalformedObjectNameException 

Definition at line 1045 of file JonasAdminJmx.java.

ArrayList org.objectweb.jonas.webapp.jonasadmin.JonasAdminJmx.getWarFilesDeployable  )  throws ManagementException [static]
 

Return the list of WAR filename ready to deploy in the current server.

Returns:
The list of WAR filename.
Exceptions:
ManagementException 

Definition at line 499 of file JonasAdminJmx.java.

ArrayList org.objectweb.jonas.webapp.jonasadmin.JonasAdminJmx.getWarFilesDeployed  )  throws ManagementException [static]
 

Return the list of deployed WAR filename in the current server.

Returns:
The list of WAR filename.
Exceptions:
ManagementException 

Definition at line 582 of file JonasAdminJmx.java.

boolean org.objectweb.jonas.webapp.jonasadmin.JonasAdminJmx.hasMBeanName ObjectName  p_On  )  throws ManagementException [static]
 

Verify if the Mbean gotten by the query in the current MbeanServer exists.

Parameters:
p_On Query Mbean name to search
Returns:
true if MBean exists
Exceptions:
ManagementException 

Definition at line 212 of file JonasAdminJmx.java.

ArrayList org.objectweb.jonas.webapp.jonasadmin.JonasAdminJmx.prepareContainersToDisplay ArrayList  p_Containers,
String  p_ContainerDir,
String  p_EarDir
[static]
 

Prepare a list of containers to diplay. Deleting prefix root container directory, sorting the list.

Parameters:
p_Containers The list of containers
p_ContainerDir The root container directory
p_EarDir The root ear directory or null
Returns:
The list of containers ready to display

Definition at line 607 of file JonasAdminJmx.java.

String org.objectweb.jonas.webapp.jonasadmin.JonasAdminJmx.replace String  template,
String  placeholder,
String  value
[static]
 

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
placeholder Placeholder expression to be replaced
value Replacement value for the placeholder
Returns:
A complete string

Definition at line 84 of file JonasAdminJmx.java.


The documentation for this class was generated from the following file:
Generated on Tue Feb 15 15:08:21 2005 for JOnAS by  doxygen 1.3.9.1