java.lang.Object
org.sentrysoftware.metricshub.engine.connector.model.monitor.task.source.Source
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
CommandLineSource, CopySource, HttpSource, IpmiSource, SnmpSource, SqlSource, StaticSource, TableJoinSource, TableUnionSource, WbemSource, WmiSource

public abstract class Source extends Object implements Serializable
An abstract class representing a data source in the MetricsHub engine.
See Also:
  • Method Details

    • copy

      public abstract Source copy()
      Creates a copy of the source.
      Returns:
      A new Source instance that is a copy of the original.
    • update

      public abstract void update(UnaryOperator<String> updater)
      Updates the source based on the provided updater function.
      Parameters:
      updater - The updater function to modify the source.
    • accept

      public abstract SourceTable accept(ISourceProcessor sourceProcessor)
      Accepts a source processor to perform processing on the source.
      Parameters:
      sourceProcessor - The source processor to accept.
      Returns:
      A SourceTable representing the processed source.
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • isExecuteForEachEntryOf

      public boolean isExecuteForEachEntryOf()
      Whether the ExecuteForEachEntryOf is present in the Source or not
      Returns:
      true if ExecuteForEachEntryOf is present otherwise false
    • getEntryConcatMethod

      public IEntryConcatMethod getEntryConcatMethod()
      Get the EntryConcatMethod value
      Returns:
      EntryConcatMethod enum value
    • getExecuteForEachEntryOf

      public String getExecuteForEachEntryOf()
      Get the executeForEachEntryOf string value
      Returns:
      String value
    • getSleepExecuteForEachEntryOf

      public Integer getSleepExecuteForEachEntryOf()
      Get the executeForEachEntryOf sleep Integer value
      Returns:
      Integer value