Class AbstractStrategy
java.lang.Object
org.sentrysoftware.metricshub.engine.strategy.AbstractStrategy
- Direct Known Subclasses:
AbstractAllAtOnceStrategy,CollectStrategy,DetectionStrategy,PrepareCollectStrategy,ProtocolHealthCheckStrategy,SurroundingStrategy
Abstract class representing a strategy for handling connectors and their sources and computes.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringFormat for string value like: connector_connector-id -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlongGet the timeout of the strategy.booleanisMonitorFiltered(String monitorType) Return true if the monitor type is to be filtered and not processed.Methods 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
-
Field Details
-
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:IStrategyGet the timeout of the strategy.- Specified by:
getStrategyTimeoutin interfaceIStrategy- Returns:
- long value representing the timeout in seconds.
-
isMonitorFiltered
Return true if the monitor type is to be filtered and not processed.- Parameters:
monitorType- The monitor type to check.- Returns:
- boolean value.
-