Class ProcessCriterion
java.lang.Object
org.sentrysoftware.maven.metricshub.connector.producer.model.criteria.AbstractCriterion
org.sentrysoftware.maven.metricshub.connector.producer.model.criteria.ProcessCriterion
Represents a criterion for filtering based on a process presence.
- See Also:
-
Constructor Summary
ConstructorDescriptionProcessCriterion
(com.fasterxml.jackson.databind.JsonNode criterion) Constructs ProcessCriterion with the specified JSON criterion. -
Method Summary
Modifier and TypeMethodDescriptionvoid
accept
(ICriterionVisitor visitor) Accepts the given visitor.Gets the command line from the current process criterion, ornull
if not present.
-
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
-
accept
Description copied from class:AbstractCriterion
Accepts the given visitor.- Specified by:
accept
in classAbstractCriterion
- Parameters:
visitor
- The visitor class with its specific business logic.
-
getCommandLine
Gets the command line from the current process criterion, ornull
if not present.- Returns:
- The command line from the criterion, or
null
if not present.
-