Class AbstractConnectorProcessor
java.lang.Object
org.sentrysoftware.metricshub.engine.strategy.detection.AbstractConnectorProcessor
- Direct Known Subclasses:
AutomaticDetection,ConnectorSelection
Abstract base class for processing and detecting connectors based on specific criteria.
Implementations of this class define the logic for running detection jobs and processing connector criteria.
This class provides methods for running detection criteria sequentially or simultaneously and filtering connectors based on criteria results. It also includes utilities for updating supersedes information and handling last resort connectors.
Connector detection involves evaluating criteria defined in the Detection object associated with a Connector.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract List<ConnectorTestResult> run()Run the Detection job and returns the detectedConnectorTestResultrunAllConnectorsDetectionCriteria(@NonNull Stream<Connector> connectors, @NonNull HostConfiguration hostConfiguration) Run all detection criteria of theConnectoron theHostConfigurationrunConnectorDetectionCriteria(Connector connector, String hostname) Run the detection using the criteria defined in the given connector.
-
Constructor Details
-
AbstractConnectorProcessor
public AbstractConnectorProcessor()
-
-
Method Details
-
run
Run the Detection job and returns the detectedConnectorTestResult- Returns:
- The
ListofConnectorTestResult
-
runAllConnectorsDetectionCriteria
public Stream<ConnectorTestResult> runAllConnectorsDetectionCriteria(@NonNull @NonNull Stream<Connector> connectors, @NonNull @NonNull HostConfiguration hostConfiguration) Run all detection criteria of theConnectoron theHostConfiguration- Parameters:
connectors- The stream of connectors to run detection on.hostConfiguration- The host configuration providing information about the host.- Returns:
- A stream of
ConnectorTestResults representing the results of connector detection.
-
runConnectorDetectionCriteria
Run the detection using the criteria defined in the given connector.- Parameters:
connector- The connector we wish to testhostname- The hostname of the host device- Returns:
ConnectorTestResultinstance which tells if the connector test succeeded or not.
-