Record Class StorageProviderServices
java.lang.Object
java.lang.Record
org.elasticsearch.xpack.esql.datasources.spi.StorageProviderServices
- Record Components:
settings- node settingsexecutor- general-purpose executor for SPI coordination and async-I/O plugin callbacks (e.g. the HTTP client); theGENERICpool. NOT the file-read path — blocking reads run on theesql_workerpool viaOperatorFactoryRegistry#fileReadExecutor, bounded by the per-scheme permit semaphore inStorageProviderRegistryenvironment- nodeEnvironment;nullin tests that do not supply oneresourceWatcherService- nodeResourceWatcherService;nullin 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 Summary
ConstructorsConstructorDescriptionStorageProviderServices(Settings settings, ExecutorService executor, Environment environment, ResourceWatcherService resourceWatcherService) Creates an instance of aStorageProviderServicesrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theenvironmentrecord component.final booleanIndicates whether some other object is "equal to" this one.executor()Returns the value of theexecutorrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of theresourceWatcherServicerecord component.settings()Returns the value of thesettingsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
StorageProviderServices
public StorageProviderServices(Settings settings, ExecutorService executor, @Nullable Environment environment, @Nullable ResourceWatcherService resourceWatcherService) Creates an instance of aStorageProviderServicesrecord class.- Parameters:
settings- the value for thesettingsrecord componentexecutor- the value for theexecutorrecord componentenvironment- the value for theenvironmentrecord componentresourceWatcherService- the value for theresourceWatcherServicerecord component
-
-
Method Details
-
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. -
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. -
equals
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 withObjects::equals(Object,Object). -
settings
Returns the value of thesettingsrecord component.- Returns:
- the value of the
settingsrecord component
-
executor
Returns the value of theexecutorrecord component.- Returns:
- the value of the
executorrecord component
-
environment
Returns the value of theenvironmentrecord component.- Returns:
- the value of the
environmentrecord component
-
resourceWatcherService
Returns the value of theresourceWatcherServicerecord component.- Returns:
- the value of the
resourceWatcherServicerecord component
-