Class SimpleStrategy
java.lang.Object
org.sentrysoftware.metricshub.engine.strategy.AbstractStrategy
org.sentrysoftware.metricshub.engine.strategy.AbstractAllAtOnceStrategy
org.sentrysoftware.metricshub.engine.strategy.simple.SimpleStrategy
The
SimpleStrategy class represents a simple strategy for executing monitor tasks.
It extends AbstractAllAtOnceStrategy and is responsible for coordinating the execution of tasks for all monitors at once.
The class uses the TelemetryManager to manage monitors and metrics associated with the monitor tasks.
-
Field Summary
Fields inherited from class org.sentrysoftware.metricshub.engine.strategy.AbstractStrategy
CONNECTOR_ID_FORMAT -
Constructor Summary
ConstructorsConstructorDescriptionSimpleStrategy(@NonNull TelemetryManager telemetryManager, @NonNull Long strategyTime, @NonNull ClientsExecutor clientsExecutor, @NonNull ExtensionManager extensionManager) Builder for constructing instances ofSimpleStrategy. -
Method Summary
Methods inherited from class org.sentrysoftware.metricshub.engine.strategy.AbstractAllAtOnceStrategy
runMethods inherited from class org.sentrysoftware.metricshub.engine.strategy.AbstractStrategy
getStrategyTimeoutMethods 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
-
SimpleStrategy
public SimpleStrategy(@NonNull @NonNull TelemetryManager telemetryManager, @NonNull @NonNull Long strategyTime, @NonNull @NonNull ClientsExecutor clientsExecutor, @NonNull @NonNull ExtensionManager extensionManager) Builder for constructing instances ofSimpleStrategy.- Parameters:
telemetryManager- The telemetry manager for managing monitors and metrics.strategyTime- The time at which the strategy is executed.clientsExecutor- The executor for running connector clients.extensionManager- The extension manager where all the required extensions are handled.
-