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

public class WmiSource extends Source
Represents a source that retrieves data using Windows Management Instrumentation (WMI).
See Also:
  • Constructor Details

    • WmiSource

      public WmiSource(String type, List<Compute> computes, boolean forceSerialization, @NonNull @NonNull String query, String namespace, String key, ExecuteForEachEntryOf executeForEachEntryOf)
      Builder for creating instances of WmiSource.
      Parameters:
      type - The type of the source.
      computes - List of computations to be applied to the source.
      forceSerialization - Flag indicating whether to force serialization.
      query - The WMI query used to retrieve data.
      namespace - The WMI namespace for the query.
      key - The key associated with the source.
      executeForEachEntryOf - The execution context for each entry of the source.
  • Method Details

    • copy

      public WmiSource 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.