Uploaded image for project: 'Application Server 3  4  5 and 6'
  1. Application Server 3 4 5 and 6
  2. JBAS-6620 JON/Open Console Issues
  3. JBAS-6808

expose cluster partition name via some ManagedObject

XMLWordPrintable

      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.

              bstansbe@redhat.com Brian Stansberry
              ips_jira Ian Springer (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: