Class AfterAllStrategy
java.lang.Object
org.sentrysoftware.metricshub.engine.strategy.AbstractStrategy
org.sentrysoftware.metricshub.engine.strategy.surrounding.SurroundingStrategy
org.sentrysoftware.metricshub.engine.strategy.surrounding.AfterAllStrategy
Defines a strategy for executing tasks after 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
ConstructorsConstructorDescriptionAfterAllStrategy(@NonNull TelemetryManager telemetryManager, @NonNull Long strategyTime, @NonNull ClientsExecutor clientsExecutor, @NonNull Connector connector, @NonNull ExtensionManager extensionManager) Initializes a new instance ofAfterAllStrategywith 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
-
AfterAllStrategy
public AfterAllStrategy(@NonNull @NonNull TelemetryManager telemetryManager, @NonNull @NonNull Long strategyTime, @NonNull @NonNull ClientsExecutor clientsExecutor, @NonNull @NonNull Connector connector, @NonNull @NonNull ExtensionManager extensionManager) Initializes a new instance ofAfterAllStrategywith 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 afterAll 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 afterAll sources.connector- The specific connector instance where the afterAll sources are defined.extensionManager- The extension manager where all the required extensions are handled.
-