java.lang.Object
org.sentrysoftware.metricshub.engine.connector.model.identity.criterion.Criterion
org.sentrysoftware.metricshub.engine.connector.model.identity.criterion.ProcessCriterion
All Implemented Interfaces:
Serializable

public class ProcessCriterion extends Criterion
Represents a process detection criterion. This criterion allows the detection of processes based on their command line.
See Also:
  • Constructor Details

    • ProcessCriterion

      public ProcessCriterion(String type, boolean forceSerialization, @NonNull @NonNull String commandLine)
      Builder for constructing instances of ProcessCriterion.
      Parameters:
      type - Type of the criterion.
      forceSerialization - Flag indicating whether serialization should be forced.
      commandLine - The command line associated with the process criterion.
  • Method Details

    • accept

      public CriterionTestResult accept(ICriterionProcessor criterionProcessor)
      Description copied from class: Criterion
      Accepts the given criterion processor for evaluation.
      Specified by:
      accept in class Criterion
      Parameters:
      criterionProcessor - The criterion processor to accept.
      Returns:
      The result of the criterion test.