Interface IStrategy

All Superinterfaces:
Runnable
All Known Implementing Classes:
AbstractAllAtOnceStrategy, AbstractStrategy, CollectStrategy, DetectionStrategy, DiscoveryStrategy, PrepareCollectStrategy, PreSourcesStrategy, ProtocolHealthCheckStrategy, SimpleStrategy

public interface IStrategy extends Runnable
Interface for defining a strategy to be executed in the MetricsHub engine.
  • Method Summary

    Modifier and Type
    Method
    Description
    Provide the current time from which the strategy starts.
    long
    Get the timeout of the strategy.

    Methods inherited from interface java.lang.Runnable

    run
  • Method Details

    • getStrategyTimeout

      long getStrategyTimeout()
      Get the timeout of the strategy.
      Returns:
      long value representing the timeout in seconds.
    • getStrategyTime

      Long getStrategyTime()
      Provide the current time from which the strategy starts.
      Returns:
      Long value representing the start time of the strategy.