Class ProcessCriterion
java.lang.Object
org.metricshub.maven.plugin.connector.producer.model.criteria.AbstractCriterion
org.metricshub.maven.plugin.connector.producer.model.criteria.ProcessCriterion
Represents a criterion for filtering based on a process presence.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionProcessCriterion(com.fasterxml.jackson.databind.JsonNode criterion) Constructs ProcessCriterion with the specified JSON criterion. -
Method Summary
Modifier and TypeMethodDescriptionGets the command line from the current process criterion, ornullif not present.voidproduce(org.apache.maven.doxia.sink.Sink sink) Produces the criterion to the specified sink.
-
Constructor Details
-
ProcessCriterion
public ProcessCriterion(com.fasterxml.jackson.databind.JsonNode criterion) Constructs ProcessCriterion with the specified JSON criterion.- Parameters:
criterion- The JSON criterion for process check.
-
-
Method Details
-
getCommandLine
Gets the command line from the current process criterion, ornullif not present.- Returns:
- The command line from the criterion, or
nullif not present.
-
produce
public void produce(org.apache.maven.doxia.sink.Sink sink) Produces the criterion to the specified sink.- Specified by:
producein classAbstractCriterion- Parameters:
sink- The sink to produce the criterion to.
-