Details

      Description

      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.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  brian.stansberry Brian Stansberry
                  Reporter:
                  ips Ian Springer
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  2 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: