Class JmxCriterion
java.lang.Object
org.metricshub.maven.plugin.connector.producer.model.criteria.AbstractCriterion
org.metricshub.maven.plugin.connector.producer.model.criteria.JmxCriterion
Represents a JMX criterion that checks for specific attributes in a JMX MBean.
-
Constructor Summary
ConstructorsConstructorDescriptionJmxCriterion
(com.fasterxml.jackson.databind.JsonNode criterion) Creates a new JmxCriterion from the given JSON node. -
Method Summary
Modifier and TypeMethodDescriptionGets the object name from the criterion.void
produce
(org.apache.maven.doxia.sink.Sink sink) Produces the JMX criterion output for the given sink.
-
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 classAbstractCriterion
- Parameters:
sink
- The sink to produce the criterion in.
-
getObjectName
Gets the object name from the criterion. E.g. "java.lang:type=Memory"- Returns:
- The object name from the criterion.
-