java.lang.Object
org.sentrysoftware.maven.metricshub.connector.producer.model.criteria.AbstractCriterion
org.sentrysoftware.maven.metricshub.connector.producer.model.criteria.ProcessCriterion

public class ProcessCriterion extends AbstractCriterion
Represents a criterion for filtering based on a process presence.
See Also:
  • 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

      public void accept(ICriterionVisitor visitor)
      Description copied from class: AbstractCriterion
      Accepts the given visitor.
      Specified by:
      accept in class AbstractCriterion
      Parameters:
      visitor - The visitor class with its specific business logic.
    • getCommandLine

      public String getCommandLine()
      Gets the command line from the current process criterion, or null if not present.
      Returns:
      The command line from the criterion, or null if not present.