Class SurroundingStrategy
java.lang.Object
org.sentrysoftware.metricshub.engine.strategy.AbstractStrategy
org.sentrysoftware.metricshub.engine.strategy.surrounding.SurroundingStrategy
- Direct Known Subclasses:
AfterAllStrategy,BeforeAllStrategy
Strategy for executing tasks that surround the core processing of sources, such as "beforeAll"
and "afterAll" operations. Inherits from
AbstractStrategy and manages source execution
for a given Connector.
Leverages Lombok's Slf4j for logging, Data for auto-generating getters and setters,
and EqualsAndHashCode to ensure proper equality and hash code generation.
-
Field Summary
Fields inherited from class org.sentrysoftware.metricshub.engine.strategy.AbstractStrategy
CONNECTOR_ID_FORMAT -
Method Summary
Methods 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
-
Method Details
-
run
public void run()Executes the surrounding sources (E.g. beforeAll, afterAll) for the configured connector. This method logs relevant information and processes sources in a specific order based on their dependencies.If no sources are available for processing, the method logs this information and returns early.
-