All Implemented Interfaces:
Serializable

public class SnmpGetCriterion extends SnmpCriterion
Represents an SNMP GET criterion used for detection.
See Also:
  • Constructor Details

    • SnmpGetCriterion

      public SnmpGetCriterion(String type, boolean forceSerialization, @NonNull @NonNull String oid, String expectedResult)
      Constructs an SNMP GET criterion with the specified type, forceSerialization flag, OID, and expected result.
      Parameters:
      type - The type of the SNMP GET criterion.
      forceSerialization - A flag indicating whether serialization should be forced.
      oid - The SNMP OID (Object Identifier) for the GET operation.
      expectedResult - The expected result for the GET operation, or null if no specific result is expected.
  • 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.