Record Class StorageProviderServices

java.lang.Object
java.lang.Record
org.elasticsearch.xpack.esql.datasources.spi.StorageProviderServices
Record Components:
settings - node settings
executor - general-purpose executor for SPI coordination and async-I/O plugin callbacks (e.g. the HTTP client); the GENERIC pool. NOT the file-read path — blocking reads run on the esql_worker pool via OperatorFactoryRegistry#fileReadExecutor, bounded by the per-scheme permit semaphore in StorageProviderRegistry
environment - node Environment; null in tests that do not supply one
resourceWatcherService - node ResourceWatcherService; null in tests that do not supply one

public record StorageProviderServices(Settings settings, ExecutorService executor, Environment environment, ResourceWatcherService resourceWatcherService) extends Record
Node-level services threaded into DataSourcePlugin.storageProviders(StorageProviderServices).

Exists so that a DataSourcePlugin can build storage providers that need node context (e.g. resolving operator-managed token symlinks under ${ES_PATH_CONF} or watching them for rotation) without smuggling that context across the two distinct plugin instances ESQL creates: the node Plugin instance receives createComponents, while a separate reflectively built SPI-discovery instance is the one whose storageProviders actually runs.

  • Constructor Details

  • Method Details

    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • settings

      public Settings settings()
      Returns the value of the settings record component.
      Returns:
      the value of the settings record component
    • executor

      public ExecutorService executor()
      Returns the value of the executor record component.
      Returns:
      the value of the executor record component
    • environment

      @Nullable public Environment environment()
      Returns the value of the environment record component.
      Returns:
      the value of the environment record component
    • resourceWatcherService

      @Nullable public ResourceWatcherService resourceWatcherService()
      Returns the value of the resourceWatcherService record component.
      Returns:
      the value of the resourceWatcherService record component