java.lang.Object
org.metricshub.maven.plugin.connector.producer.model.criteria.AbstractCriterion
org.metricshub.maven.plugin.connector.producer.model.criteria.JmxCriterion

public class JmxCriterion extends AbstractCriterion
Represents a JMX criterion that checks for specific attributes in a JMX MBean.
  • Constructor Summary

    Constructors
    Constructor
    Description
    JmxCriterion(com.fasterxml.jackson.databind.JsonNode criterion)
    Creates a new JmxCriterion from the given JSON node.
  • Method Summary

    Modifier and Type
    Method
    Description
    Gets the object name from the criterion.
    void
    produce(org.apache.maven.doxia.sink.Sink sink)
    Produces the JMX criterion output for the given sink.

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • JmxCriterion

      public JmxCriterion(com.fasterxml.jackson.databind.JsonNode criterion)
      Creates a new JmxCriterion from the given JSON node.
      Parameters:
      criterion - The JSON node representing the JMX criterion.
  • Method Details

    • produce

      public void produce(org.apache.maven.doxia.sink.Sink sink)
      Produces the JMX criterion output for the given sink.
      Specified by:
      produce in class AbstractCriterion
      Parameters:
      sink - The sink to produce the criterion in.
    • getObjectName

      public String getObjectName()
      Gets the object name from the criterion. E.g. "java.lang:type=Memory"
      Returns:
      The object name from the criterion.