Class CommandLineCriterion
java.lang.Object
org.sentrysoftware.metricshub.engine.connector.model.identity.criterion.Criterion
org.sentrysoftware.metricshub.engine.connector.model.identity.criterion.CommandLineCriterion
- All Implemented Interfaces:
Serializable
Represents an operating system command detection criterion.
This criterion allows the execution of operating system commands and checks the result against an expected value.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCommandLineCriterion(String type, boolean forceSerialization, @NonNull String commandLine, String errorMessage, String expectedResult, Boolean executeLocally, Long timeout) Builder for constructing instances ofCommandLineCriterion. -
Method Summary
Modifier and TypeMethodDescriptionaccept(ICriterionProcessor criterionProcessor) Accepts the given criterion processor for evaluation.toString()
-
Constructor Details
-
CommandLineCriterion
public CommandLineCriterion(String type, boolean forceSerialization, @NonNull @NonNull String commandLine, String errorMessage, String expectedResult, Boolean executeLocally, Long timeout) Builder for constructing instances ofCommandLineCriterion.- Parameters:
type- Type of the criterion.forceSerialization- Flag indicating whether serialization should be forced.commandLine- The command line to be executed.errorMessage- An optional error message.expectedResult- The expected result of the command.executeLocally- Indicates whether to execute the command locally.timeout- The timeout for command execution.
-
-
Method Details