Uploaded image for project: 'JBoss Transaction Manager'
  1. JBoss Transaction Manager
  2. JBTM-2306

Tooling does not display the type of a heuristic

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Minor
    • 5.0.4
    • 5.0.3
    • Tooling
    • None

    Description

      The new JMX based tooling for browsing abstract records does not display the particular type of a heuristic when it's available.

      There is a comment in the javadoc for AbstractRecord which seems to indicate that the particular kind of heuristic may be available:

      	/**
      	 * If this abstract record caused a heuristic then it should return an
      	 * object which implements <code>HeuristicInformation</code>
      	 *
      	 * @return <code>Object</code> to be used to order.
      	 */
      	public abstract Object value ();
      

      HeuristicInformation contains a method getHeuristicType() which looks like it may report the particular kind of heuristic.:

      public interface HeuristicInformation {
          /**
           * The type of heuristic.
           * @return the heuristic type
           */
          public int getHeuristicType();
      

      This JIRA is asking for value() object to be consulted to see if it contains an instance of HeuristicInformation and if so to report it in the JBX MBean corresponding to the AR.

      Note that such a change would only affect 3rd party implementers of ARs (since our own code does not set this field).

      Attachments

        Issue Links

          Activity

            People

              rhn-engineering-mmusgrov Michael Musgrove
              rhn-engineering-mmusgrov Michael Musgrove
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: