java.lang.Object
org.sentrysoftware.metricshub.engine.strategy.AbstractStrategy
org.sentrysoftware.metricshub.engine.strategy.surrounding.SurroundingStrategy
All Implemented Interfaces:
Runnable, IStrategy
Direct Known Subclasses:
AfterAllStrategy, BeforeAllStrategy

public abstract class SurroundingStrategy extends AbstractStrategy
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.

  • 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.