Class ConnectorSelection
java.lang.Object
org.sentrysoftware.metricshub.engine.strategy.detection.AbstractConnectorProcessor
org.sentrysoftware.metricshub.engine.strategy.detection.ConnectorSelection
The
ConnectorSelection class represents a strategy for selecting specific connectors based on predefined criteria.
It extends the AbstractConnectorProcessor class and implements the connector selection logic.
The connector selection process involves filtering connectors based on case-sensitive and case-insensitive lists of selected connectors.
The results of the selection are stored in ConnectorTestResult objects.
The class checks the host configuration and connector store availability before proceeding with the selection. It utilizes the configured lists of selected connectors, considering both case-sensitive and case-insensitive sets.
-
Constructor Summary
ConstructorsConstructorDescriptionConnectorSelection(@NonNull TelemetryManager telemetryManager, @NonNull ClientsExecutor clientsExecutor, @NonNull Set<String> connectorIds, @NonNull ExtensionManager extensionManager) Constructs a newConnectorSelectioninstance using the provided telemetry manager and clients executor. -
Method Summary
Modifier and TypeMethodDescriptionrun()Run the Detection job and returns the detectedConnectorTestResultMethods inherited from class org.sentrysoftware.metricshub.engine.strategy.detection.AbstractConnectorProcessor
runAllConnectorsDetectionCriteria, runConnectorDetectionCriteria
-
Constructor Details
-
ConnectorSelection
public ConnectorSelection(@NonNull @NonNull TelemetryManager telemetryManager, @NonNull @NonNull ClientsExecutor clientsExecutor, @NonNull @NonNull Set<String> connectorIds, @NonNull @NonNull ExtensionManager extensionManager) Constructs a newConnectorSelectioninstance using the provided telemetry manager and clients executor.- Parameters:
telemetryManager- The telemetry manager responsible for managing telemetry-related operations.clientsExecutor- The executor for managing clients used in the strategy.connectorIds- The set of connector identifiers that represent the connectors involved in the connector selection.extensionManager- The extension manager where all the required extensions are handled.
-
-
Method Details
-
run
Description copied from class:AbstractConnectorProcessorRun the Detection job and returns the detectedConnectorTestResult- Specified by:
runin classAbstractConnectorProcessor- Returns:
- The
ListofConnectorTestResult
-