Package org.elasticsearch.plugins
Interface NetworkPlugin
public interface NetworkPlugin
Plugin for extending network and transport related classes
-
Method Summary
Modifier and TypeMethodDescriptiondefault Map<String,Supplier<HttpServerTransport>>
getHttpTransports(Settings settings, ThreadPool threadPool, BigArrays bigArrays, PageCacheRecycler pageCacheRecycler, CircuitBreakerService circuitBreakerService, org.elasticsearch.common.xcontent.NamedXContentRegistry xContentRegistry, NetworkService networkService, HttpServerTransport.Dispatcher dispatcher, ClusterSettings clusterSettings)
Returns a map ofHttpServerTransport
suppliers.default List<TransportInterceptor>
getTransportInterceptors(NamedWriteableRegistry namedWriteableRegistry, ThreadContext threadContext)
Returns a list ofTransportInterceptor
instances that are used to intercept incoming and outgoing transport (inter-node) requests.getTransports(Settings settings, ThreadPool threadPool, PageCacheRecycler pageCacheRecycler, CircuitBreakerService circuitBreakerService, NamedWriteableRegistry namedWriteableRegistry, NetworkService networkService)
Returns a map ofTransport
suppliers.
-
Method Details
-
getTransportInterceptors
default 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 Map<String,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 Map<String,Supplier<HttpServerTransport>> getHttpTransports(Settings settings, ThreadPool threadPool, BigArrays bigArrays, PageCacheRecycler pageCacheRecycler, CircuitBreakerService circuitBreakerService, org.elasticsearch.common.xcontent.NamedXContentRegistry xContentRegistry, NetworkService networkService, HttpServerTransport.Dispatcher dispatcher, ClusterSettings clusterSettings)Returns a map ofHttpServerTransport
suppliers. SeeNetworkModule.HTTP_TYPE_SETTING
to configure a specific implementation.
-