Package org.elasticsearch.plugins
Interface NetworkPlugin
-
public interface NetworkPlugin
Plugin for extending network and transport related classes
-
-
Method Summary
Modifier and Type Method Description default java.util.Map<java.lang.String,java.util.function.Supplier<HttpServerTransport>>
getHttpTransports(Settings settings, ThreadPool threadPool, BigArrays bigArrays, CircuitBreakerService circuitBreakerService, NamedWriteableRegistry namedWriteableRegistry, NamedXContentRegistry xContentRegistry, NetworkService networkService, HttpServerTransport.Dispatcher dispatcher)
Returns a map ofHttpServerTransport
suppliers.default java.util.List<TransportInterceptor>
getTransportInterceptors(NamedWriteableRegistry namedWriteableRegistry, ThreadContext threadContext)
Returns a list ofTransportInterceptor
instances that are used to intercept incoming and outgoing transport (inter-node) requests.default java.util.Map<java.lang.String,java.util.function.Supplier<Transport>>
getTransports(Settings settings, ThreadPool threadPool, PageCacheRecycler pageCacheRecycler, CircuitBreakerService circuitBreakerService, NamedWriteableRegistry namedWriteableRegistry, NetworkService networkService)
Returns a map ofTransport
suppliers.
-
-
-
Method Detail
-
getTransportInterceptors
default java.util.List<TransportInterceptor> getTransportInterceptors(NamedWriteableRegistry namedWriteableRegistry, ThreadContext threadContext)
Returns a list ofTransportInterceptor
instances that are used to intercept incoming and outgoing transport (inter-node) requests. This must not returnnull
- Parameters:
namedWriteableRegistry
- registry of all named writeables registeredthreadContext
- aThreadContext
of the current nodes or clientsThreadPool
that can be used to set additional headers in the interceptors
-
getTransports
default java.util.Map<java.lang.String,java.util.function.Supplier<Transport>> getTransports(Settings settings, ThreadPool threadPool, PageCacheRecycler pageCacheRecycler, CircuitBreakerService circuitBreakerService, NamedWriteableRegistry namedWriteableRegistry, NetworkService networkService)
Returns a map ofTransport
suppliers. SeeNetworkModule.TRANSPORT_TYPE_KEY
to configure a specific implementation.
-
getHttpTransports
default java.util.Map<java.lang.String,java.util.function.Supplier<HttpServerTransport>> getHttpTransports(Settings settings, ThreadPool threadPool, BigArrays bigArrays, CircuitBreakerService circuitBreakerService, NamedWriteableRegistry namedWriteableRegistry, NamedXContentRegistry xContentRegistry, NetworkService networkService, HttpServerTransport.Dispatcher dispatcher)
Returns a map ofHttpServerTransport
suppliers. SeeNetworkModule.HTTP_TYPE_SETTING
to configure a specific implementation.
-
-