Class AbstractStrategy

java.lang.Object
org.sentrysoftware.metricshub.engine.strategy.AbstractStrategy
All Implemented Interfaces:
Runnable, IStrategy
Direct Known Subclasses:
AbstractAllAtOnceStrategy, CollectStrategy, DetectionStrategy, PrepareCollectStrategy, ProtocolHealthCheckStrategy, SurroundingStrategy

public abstract class AbstractStrategy extends Object implements IStrategy
Abstract class representing a strategy for handling connectors and their sources and computes.
  • Field Details

    • CONNECTOR_ID_FORMAT

      public static final String CONNECTOR_ID_FORMAT
      Format for string value like: connector_connector-id
      See Also:
  • Constructor Details

    • AbstractStrategy

      public AbstractStrategy()
  • Method Details

    • getStrategyTimeout

      public long getStrategyTimeout()
      Description copied from interface: IStrategy
      Get the timeout of the strategy.
      Specified by:
      getStrategyTimeout in interface IStrategy
      Returns:
      long value representing the timeout in seconds.
    • isMonitorFiltered

      public boolean isMonitorFiltered(String monitorType)
      Return true if the monitor type is to be filtered and not processed.
      Parameters:
      monitorType - The monitor type to check.
      Returns:
      boolean value.