[
https://jira.jboss.org/jira/browse/JBAS-6808?page=com.atlassian.jira.plug...
]
Ian Springer updated JBAS-6808:
-------------------------------
Fix Version/s: JBossAS-5.2.0.Beta1
Affects Version/s: JBossAS-5.1.0.GA
expose cluster partition name via some ManagedObject
----------------------------------------------------
Key: JBAS-6808
URL:
https://jira.jboss.org/jira/browse/JBAS-6808
Project: JBoss Application Server
Issue Type: Sub-task
Security Level: Public(Everyone can see)
Components: ProfileService
Affects Versions: JBossAS-5.1.0.GA
Reporter: Ian Springer
Assignee: Scott M Stark
Fix For: JBossAS-5.2.0.Beta1
In the as4 plugin, we exposed the following trait:
<metric property="partitionName" dataType="trait"
displayType="summary"
description="the name of the cluster partition this app server
instance belongs to"/>
which we obtained via JMX as follows:
private String getPartitionName() {
ObjectNameQueryUtility queryUtility = new ObjectNameQueryUtility(
"jboss:partitionName=%partitionName%,service=DistributedReplicantManager");
try {
List<EmsBean> mBeans =
loadConnection().queryBeans(queryUtility.getTranslatedQuery());
if (mBeans.size() == 1) {
if
(queryUtility.setMatchedKeyValues(mBeans.get(0).getBeanName().getKeyProperties())) {
return
queryUtility.getVariableValues().get("partitionName");
}
}
} catch (Exception e) {
log.error("Could not load partition name as connection could not be
loaded");
}
return null;
}
We need this value exposed via some ManagedObject so we can provide the same trait in the
as5 plugin.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira