Class CommandLineCriterionProcessor
java.lang.Object
org.sentrysoftware.metricshub.extension.oscommand.CommandLineCriterionProcessor
Processes command-line criteria to evaluate operating system command queries against specified expectations.
This class facilitates the execution of local or remote OS commands, evaluates the results, and generates
criterion test results based on the expected outcomes.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprocess(CommandLineCriterion commandLineCriterion, TelemetryManager telemetryManager) Processes a givenCommandLineCriterion, executes the corresponding OS command, and evaluates the command's output against the expected result.
-
Constructor Details
-
CommandLineCriterionProcessor
public CommandLineCriterionProcessor()
-
-
Method Details
-
process
public CriterionTestResult process(CommandLineCriterion commandLineCriterion, TelemetryManager telemetryManager) Processes a givenCommandLineCriterion, executes the corresponding OS command, and evaluates the command's output against the expected result.- Parameters:
commandLineCriterion- TheCommandLineCriterionto process.telemetryManager- The telemetry manager providing access to host configuration.- Returns:
CriterionTestResultinstance.
-