Class BeforeAllStrategy
java.lang.Object
org.sentrysoftware.metricshub.engine.strategy.AbstractStrategy
org.sentrysoftware.metricshub.engine.strategy.surrounding.SurroundingStrategy
org.sentrysoftware.metricshub.engine.strategy.surrounding.BeforeAllStrategy
Defines a strategy for executing tasks before all source references have been processed.
Inherits behavior from
SurroundingStrategy and provides a custom builder.-
Field Summary
Fields inherited from class org.sentrysoftware.metricshub.engine.strategy.AbstractStrategy
CONNECTOR_ID_FORMAT -
Constructor Summary
ConstructorsConstructorDescriptionBeforeAllStrategy(@NonNull TelemetryManager telemetryManager, @NonNull Long strategyTime, @NonNull ClientsExecutor clientsExecutor, @NonNull Connector connector, @NonNull ExtensionManager extensionManager) Initializes a new instance ofBeforeAllStrategywith the necessary components for executing the strategy. -
Method Summary
Methods inherited from class org.sentrysoftware.metricshub.engine.strategy.surrounding.SurroundingStrategy
runMethods inherited from class org.sentrysoftware.metricshub.engine.strategy.AbstractStrategy
getStrategyTimeout, isMonitorFilteredMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.sentrysoftware.metricshub.engine.strategy.IStrategy
getStrategyTime
-
Constructor Details
-
BeforeAllStrategy
public BeforeAllStrategy(@NonNull @NonNull TelemetryManager telemetryManager, @NonNull @NonNull Long strategyTime, @NonNull @NonNull ClientsExecutor clientsExecutor, @NonNull @NonNull Connector connector, @NonNull @NonNull ExtensionManager extensionManager) Initializes a new instance ofBeforeAllStrategywith the necessary components for executing the strategy. This constructor sets up the strategy with a telemetry manager, strategy execution time, a clients executor, and a specific connector to process beforeAll sources.- Parameters:
telemetryManager- The telemetry manager responsible for managing telemetry data (monitors and metrics).strategyTime- The execution time of the strategy, used for timing purpose.clientsExecutor- An executor service for handling client operations within the beforeAll sources.connector- The specific connector instance where the beforeAll sources are defined.extensionManager- The extension manager where all the required extensions are handled.
-