Class AutomaticDetection
java.lang.Object
org.sentrysoftware.metricshub.engine.strategy.detection.AbstractConnectorProcessor
org.sentrysoftware.metricshub.engine.strategy.detection.AutomaticDetection
The
AutomaticDetection class represents a strategy for automatically detecting connectors based on predefined criteria.
It extends the AbstractConnectorProcessor class and implements the connector detection logic.
The automatic detection process involves filtering connectors based on various criteria such as device kind, connection type,
accepted sources, and exclusion tags. The results of the detection are stored in ConnectorTestResult objects.
The detection process includes device kind filtering, connection type filtering, and accepted sources filtering. It also checks if auto-detection is disabled for connectors.
-
Constructor Summary
ConstructorsConstructorDescriptionAutomaticDetection(@NonNull TelemetryManager telemetryManager, @NonNull ClientsExecutor clientsExecutor, @NonNull Set<String> connectorIds, @NonNull ExtensionManager extensionManager) Constructs a newAutomaticDetectioninstance 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
-
AutomaticDetection
public AutomaticDetection(@NonNull @NonNull TelemetryManager telemetryManager, @NonNull @NonNull ClientsExecutor clientsExecutor, @NonNull @NonNull Set<String> connectorIds, @NonNull @NonNull ExtensionManager extensionManager) Constructs a newAutomaticDetectioninstance 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 automatic detection.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
-