|
||||||||||
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.util.ArrayList |
getDatasourceDependences(java.lang.String p_DatasourceName)
Return the list of Datasource dependences 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 Datasource filename 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.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 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.lang.String |
getJonasServerName()
Return the current Jonas server name. |
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()
Return a list of JonasServerItem connected to the same registry. |
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 |
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.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 java.util.ArrayList getListRemoteJonasServerItem() throws java.lang.Exception
java.lang.Exception
public static java.lang.String getJonasServerName() throws java.lang.Exception
java.lang.Exception
public static boolean hasMBeanName(javax.management.ObjectName p_On) throws java.lang.Exception
p_On
- Query Mbean name to search
java.lang.Exception
public static java.lang.String getFirstMBeanName(javax.management.ObjectName p_On) throws java.lang.Exception
p_On
- Query Mbean name to search
java.lang.Exception
public static java.util.List getListMBeanName(javax.management.ObjectName p_On) throws java.lang.Exception
p_On
- Query Mbean name to search
java.lang.Exception
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 java.lang.Exception
java.lang.Exception
public static java.util.ArrayList getRarFilesDeployable() throws java.lang.Exception
java.lang.Exception
public static java.util.ArrayList getEarFilesDeployable() throws java.lang.Exception
java.lang.Exception
public static java.util.ArrayList getWarFilesDeployable() throws java.lang.Exception
java.lang.Exception
public static java.util.ArrayList getJarFilesDeployed() throws java.lang.Exception
java.lang.Exception
public static java.util.ArrayList getEarFilesDeployed() throws java.lang.Exception
java.lang.Exception
public static java.util.ArrayList getRarFilesDeployed() throws java.lang.Exception
java.lang.Exception
public static java.util.ArrayList getWarFilesDeployed() throws java.lang.Exception
java.lang.Exception
public static java.util.ArrayList getDatasourceFilesDeployable() throws java.lang.Exception
java.lang.Exception
public static java.util.ArrayList getDatasourceFilesDeployed() throws java.lang.Exception
java.lang.Exception
public static java.util.ArrayList getDatasourceDependences(java.lang.String p_DatasourceName) throws java.lang.Exception
p_DatasourceName
- The name of the datasource
java.lang.Exception
public static java.util.ArrayList getSecurityMemoryFactories() throws java.lang.Exception
java.lang.Exception
public static java.util.ArrayList getSecurityDatasourceFactories() throws java.lang.Exception
java.lang.Exception
public static java.util.ArrayList getSecurityLdapFactories() throws java.lang.Exception
java.lang.Exception
public static java.util.ArrayList getUsers(java.lang.String p_Resource) throws java.lang.Exception
p_Resource
- The resource
java.lang.Exception
public static java.util.ArrayList getRoles(java.lang.String p_Resource) throws java.lang.Exception
p_Resource
- The resource
java.lang.Exception
public static java.util.ArrayList getGroups(java.lang.String p_Resource) throws java.lang.Exception
p_Resource
- The resource
java.lang.Exception
public static java.util.ArrayList getRegistryList() throws javax.naming.NamingException
javax.naming.NamingException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |