|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.jonas.webapp.jonasadmin.JonasAdminJmx
Helper class supporting manipulation of MBeans (accessing MBeans).
Contributors: Adriana Danes
Constructor Summary | |
protected |
JonasAdminJmx()
Protected constructor to prevent instantiation. |
Method Summary | |
static java.lang.String |
extractFilename(java.lang.String p_Path)
Extract the filename of complete path. |
static java.lang.String |
extractValueMbeanName(java.lang.String p_Name,
java.lang.String p_MBeanName)
Extract a value of a Mbean name. |
static java.lang.String |
findSecurityFactorySubType(java.lang.String p_NameFactory)
Return the SubType of a Security Factory in the current server. |
static java.util.ArrayList |
getConnectionFactoriesList(org.apache.struts.util.MessageResources p_Resources)
Return the default Connection Factories. |
static java.util.ArrayList |
getDatasourceDependences(java.lang.String p_DatasourceName)
Return the list of Datasource dependences for a given datasource name in the current server. |
static java.util.ArrayList |
getDatasourceFilesDeployable()
Return the list of Datasource properties files ready to deploy in the current server. |
static java.util.ArrayList |
getDatasourceFilesDeployed()
Return the list of deployed Datasources in the current server. |
static java.util.ArrayList |
getEarFilesDeployable()
Return the list of EAR filename ready to deploy in the current server. |
static java.util.ArrayList |
getEarFilesDeployed()
Return the list of deployed EAR filename in the current server. |
static java.util.ArrayList[] |
getFamiliesMbeansLists()
Create a list for each family of Mbean. |
static javax.management.ObjectName |
getFirstMbean(javax.management.ObjectName p_On)
Return the first ObjectName Mbean gotten by the query
in the current MbeanServer. |
static java.lang.String |
getFirstMBeanName(javax.management.ObjectName p_On)
Return the first Mbean name gotten by the query in the current MbeanServer. |
static java.util.ArrayList |
getGroups(java.lang.String p_Resource)
Return the list of all groups in a resource. |
static javax.management.ObjectName |
getJ2eeDomainObjectName()
Return the ObjectName corresponding to the J2EEDomain managed object registered in the current MBeanServer. |
static javax.management.ObjectName |
getJ2eeServerObjectName()
Return the ObjectName corresponding to the J2EEServer managed object registered in the current MBeanServer. |
static javax.management.ObjectName |
getJ2eeServerObjectName(java.lang.String p_DomainName)
Return the ObjectName corresponding to the J2EEServer managed object registered in the current MBeanServer and belonging to a domain. |
static java.util.ArrayList |
getJarFilesDeployable()
Return the list of JAR filename ready to deploy in the current server. |
static java.util.ArrayList |
getJarFilesDeployed()
Return the list of deployed JAR filename in the current server. |
static java.util.List |
getListMbean(javax.management.ObjectName p_On)
Return the list of ObjectName Mbean gotten by the query
in the current MbeanServer. |
static java.util.List |
getListMBeanName(javax.management.ObjectName p_On)
Return the list of Mbean name gotten by the query in the current MbeanServer. |
static java.util.ArrayList |
getListRemoteJonasServerItem(javax.servlet.http.HttpServletRequest p_Request)
Return a list of JonasServerItem connected to the same registry. |
static java.util.ArrayList |
getLoggers(org.apache.struts.util.MessageResources p_Resources,
WhereAreYou p_WhereAreYou,
boolean p_Action)
Return the list of all used loggers in this JOnAS server. |
static java.util.ArrayList |
getMailFactoryDependences(java.lang.String p_MailFactoryName,
WhereAreYou p_WhereAreYou)
Return the list of Mail factory dependences in the current server for a given factory name. |
static java.util.ArrayList |
getMailFilesDeployable()
Return the list of Mail factory files ready to deploy in the current server. |
static java.util.ArrayList |
getMailFilesDeployed(WhereAreYou p_WhereAreYou)
Return the list of deployed Mail factories in the current server. |
static java.util.ArrayList |
getMbeansLists()
Create a list for each family of Mbean. |
static java.util.ArrayList |
getMimeMailPartFactoriesDeployed(WhereAreYou p_WhereAreYou)
Return the list of deployed MimePartDatasource Mail Factories in the current server. |
static java.util.ArrayList |
getMimePartMailFilesDeployable()
Return the list of MimePartDataSource Mail factory files ready to deploy in the current server. |
static java.util.ArrayList |
getMimePartMailFilesDeployed(WhereAreYou p_WhereAreYou)
Return the list of deployed MimePartDataSource Mail factories in the current server. |
static java.util.ArrayList |
getQueuesList()
Return the Queue destinations list. |
static java.util.ArrayList |
getRarFilesDeployable()
Return the list of RAR filename ready to deploy in the current server. |
static java.util.ArrayList |
getRarFilesDeployed()
Return the list of deployed RAR filename in the current server. |
static java.util.ArrayList |
getRegistryList()
Return a list of names bounded in the registry. |
static java.util.ArrayList |
getRoles(java.lang.String p_Resource)
Return the list of all roles in a resource. |
static java.util.ArrayList |
getSecurityDatasourceFactories()
Return the list of Security Datasource Factories in the current server. |
static java.util.ArrayList |
getSecurityLdapFactories()
Return the list of Security Ldap Factories in the current server. |
static java.util.ArrayList |
getSecurityMemoryFactories()
Return the list of Security Memory Factories in the current server. |
static java.util.ArrayList |
getSessionMailFactoriesDeployed(WhereAreYou p_WhereAreYou)
Return the list of deployed Session Mail Factories in the current server. |
static java.util.ArrayList |
getSessionMailFilesDeployable()
Return the list of Session Mail factory files ready to deploy in the current server. |
static java.util.ArrayList |
getSessionMailFilesDeployed(WhereAreYou p_WhereAreYou)
Return the list of deployed Session Mail factories in the current server. |
static java.util.ArrayList |
getTopicsList()
Return the Topic destinations list. |
static java.util.ArrayList |
getUsers(java.lang.String p_Resource)
Return the list of all users in a resource. |
static java.util.ArrayList |
getWarFilesDeployable()
Return the list of WAR filename ready to deploy in the current server. |
static java.util.ArrayList |
getWarFilesDeployed()
Return the list of deployed WAR filename in the current server. |
static boolean |
hasMBeanName(javax.management.ObjectName p_On)
Verify if the Mbean gotten by the query in the current MbeanServer exists. |
static java.util.ArrayList |
prepareContainersToDisplay(java.util.ArrayList p_Containers,
java.lang.String p_ContainerDir,
java.lang.String p_EarDir)
Prepare a list of containers to diplay. |
static java.lang.String |
replace(java.lang.String template,
java.lang.String placeholder,
java.lang.String value)
Replace any occurrence of the specified placeholder in the specified template string with the specified replacement value. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
protected JonasAdminJmx()
Method Detail |
public static java.lang.String replace(java.lang.String template, java.lang.String placeholder, java.lang.String value)
template
- Pattern string possibly containing the placeholderplaceholder
- Placeholder expression to be replacedvalue
- Replacement value for the placeholder
public static javax.management.ObjectName getJ2eeDomainObjectName()
public static javax.management.ObjectName getJ2eeServerObjectName(java.lang.String p_DomainName)
p_DomainName
- The name of the management domain.
j2eeType
key property equal to J2EEServer
)public static javax.management.ObjectName getJ2eeServerObjectName()
j2eeType
key property equal to J2EEServer
)public static java.util.ArrayList getListRemoteJonasServerItem(javax.servlet.http.HttpServletRequest p_Request) throws java.lang.Exception
p_Request
- The http request
java.lang.Exception
public static boolean hasMBeanName(javax.management.ObjectName p_On) throws ManagementException
p_On
- Query Mbean name to search
ManagementException
public static java.lang.String getFirstMBeanName(javax.management.ObjectName p_On) throws ManagementException
p_On
- Query Mbean name to search
ManagementException
public static java.util.List getListMBeanName(javax.management.ObjectName p_On) throws ManagementException
p_On
- Query Mbean name to search
ManagementException
public static javax.management.ObjectName getFirstMbean(javax.management.ObjectName p_On) throws ManagementException
ObjectName
Mbean gotten by the query
in the current MbeanServer.
p_On
- Query Mbean name to search
ObjectName
or null if not found
ManagementException
public static java.util.List getListMbean(javax.management.ObjectName p_On) throws ManagementException
ObjectName
Mbean gotten by the query
in the current MbeanServer.
p_On
- Query Mbeans to search
ObjectName
ManagementException
public static java.lang.String extractValueMbeanName(java.lang.String p_Name, java.lang.String p_MBeanName)
p_Name
- Name of propertyp_MBeanName
- Complete Mbean name
public static java.lang.String extractFilename(java.lang.String p_Path)
p_Path
- Complete path (directory and filename)
public static java.util.ArrayList getJarFilesDeployable() throws ManagementException
ManagementException
public static java.util.ArrayList getRarFilesDeployable() throws ManagementException
ManagementException
public static java.util.ArrayList getEarFilesDeployable() throws ManagementException
ManagementException
public static java.util.ArrayList getWarFilesDeployable() throws ManagementException
ManagementException
public static java.util.ArrayList getJarFilesDeployed() throws ManagementException
ManagementException
public static java.util.ArrayList getEarFilesDeployed() throws ManagementException
ManagementException
public static java.util.ArrayList getRarFilesDeployed() throws ManagementException
ManagementException
public static java.util.ArrayList getWarFilesDeployed() throws ManagementException
ManagementException
public static java.util.ArrayList prepareContainersToDisplay(java.util.ArrayList p_Containers, java.lang.String p_ContainerDir, java.lang.String p_EarDir)
p_Containers
- The list of containersp_ContainerDir
- The root container directoryp_EarDir
- The root ear directory or null
public static java.util.ArrayList getMailFilesDeployable() throws ManagementException
ManagementException
public static java.util.ArrayList getMimePartMailFilesDeployable() throws ManagementException
ManagementException
public static java.util.ArrayList getSessionMailFilesDeployable() throws ManagementException
ManagementException
public static java.util.ArrayList getMimePartMailFilesDeployed(WhereAreYou p_WhereAreYou) throws ManagementException
p_WhereAreYou
- The container WhereAreYou
ManagementException
public static java.util.ArrayList getSessionMailFilesDeployed(WhereAreYou p_WhereAreYou) throws ManagementException
p_WhereAreYou
- The container WhereAreYou
ManagementException
public static java.util.ArrayList getMailFilesDeployed(WhereAreYou p_WhereAreYou) throws ManagementException
p_WhereAreYou
- The container WhereAreYou
ManagementException
public static java.util.ArrayList getDatasourceFilesDeployable() throws ManagementException
ManagementException
public static java.util.ArrayList getDatasourceFilesDeployed() throws ManagementException
ManagementException
public static java.util.ArrayList getDatasourceDependences(java.lang.String p_DatasourceName) throws ManagementException, javax.management.MalformedObjectNameException
p_DatasourceName
- The name of the datasource
ManagementException
javax.management.MalformedObjectNameException
public static java.util.ArrayList getMailFactoryDependences(java.lang.String p_MailFactoryName, WhereAreYou p_WhereAreYou) throws ManagementException
p_MailFactoryName
- The name of the mail factoryp_WhereAreYou
- The container WhereAreYou
ManagementException
public static java.util.ArrayList getSessionMailFactoriesDeployed(WhereAreYou p_WhereAreYou) throws ManagementException
p_WhereAreYou
- The container WhereAreYou
ManagementException
public static java.util.ArrayList getMimeMailPartFactoriesDeployed(WhereAreYou p_WhereAreYou) throws ManagementException
p_WhereAreYou
- The container WhereAreYou
ManagementException
public static java.util.ArrayList getSecurityMemoryFactories() throws ManagementException, javax.management.MalformedObjectNameException
ManagementException
javax.management.MalformedObjectNameException
public static java.util.ArrayList getSecurityDatasourceFactories() throws ManagementException, javax.management.MalformedObjectNameException
ManagementException
javax.management.MalformedObjectNameException
public static java.util.ArrayList getSecurityLdapFactories() throws ManagementException, javax.management.MalformedObjectNameException
ManagementException
javax.management.MalformedObjectNameException
public static java.lang.String findSecurityFactorySubType(java.lang.String p_NameFactory) throws ManagementException, javax.management.MalformedObjectNameException
p_NameFactory
- The factory name to find
ManagementException
javax.management.MalformedObjectNameException
public static java.util.ArrayList getUsers(java.lang.String p_Resource) throws ManagementException, javax.management.MalformedObjectNameException
p_Resource
- The resource
ManagementException
javax.management.MalformedObjectNameException
public static java.util.ArrayList getRoles(java.lang.String p_Resource) throws ManagementException, javax.management.MalformedObjectNameException
p_Resource
- The resource
ManagementException
javax.management.MalformedObjectNameException
public static java.util.ArrayList getGroups(java.lang.String p_Resource) throws ManagementException, javax.management.MalformedObjectNameException
p_Resource
- The resource
ManagementException
javax.management.MalformedObjectNameException
public static java.util.ArrayList getRegistryList() throws javax.naming.NamingException
javax.naming.NamingException
public static java.util.ArrayList getQueuesList()
public static java.util.ArrayList getTopicsList()
public static java.util.ArrayList getConnectionFactoriesList(org.apache.struts.util.MessageResources p_Resources)
p_Resources
- The messages
public static java.util.ArrayList getLoggers(org.apache.struts.util.MessageResources p_Resources, WhereAreYou p_WhereAreYou, boolean p_Action) throws ManagementException
p_Resources
- The used message resourcep_WhereAreYou
- The used WhereAreYou instancep_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)
ManagementException
public static java.util.ArrayList getMbeansLists() throws ManagementException
ManagementException
public static java.util.ArrayList[] getFamiliesMbeansLists() throws ManagementException
ManagementException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |