java.lang.Object
org.sentrysoftware.metricshub.engine.connector.model.monitor.task.source.Source
org.sentrysoftware.metricshub.engine.connector.model.monitor.task.source.CopySource
All Implemented Interfaces:
Serializable

public class CopySource extends Source
Represents a source task that copies data from another source.
See Also:
  • Constructor Details

    • CopySource

      public CopySource(String type, List<Compute> computes, boolean forceSerialization, @NonNull @NonNull String from, String key, ExecuteForEachEntryOf executeForEachEntryOf)
      Constructs a new CopySource instance with the provided attributes.
      Parameters:
      type - the type of the source
      computes - the list of compute operations to be applied
      forceSerialization - flag indicating whether serialization should be forced
      from - the source from which data is copied
      key - the key associated with the source
      executeForEachEntryOf - the execute-for-each-entry-of information
  • Method Details

    • copy

      public CopySource copy()
      Description copied from class: Source
      Creates a copy of the source.
      Specified by:
      copy in class Source
      Returns:
      A new Source instance that is a copy of the original.
    • update

      public void update(UnaryOperator<String> updater)
      Description copied from class: Source
      Updates the source based on the provided updater function.
      Specified by:
      update in class Source
      Parameters:
      updater - The updater function to modify the source.
    • toString

      public String toString()
      Overrides:
      toString in class Source
    • accept

      public SourceTable accept(ISourceProcessor sourceProcessor)
      Description copied from class: Source
      Accepts a source processor to perform processing on the source.
      Specified by:
      accept in class Source
      Parameters:
      sourceProcessor - The source processor to accept.
      Returns:
      A SourceTable representing the processed source.