Package org.elasticsearch.common.network
Class NetworkModule
org.elasticsearch.common.network.NetworkModule
public final class NetworkModule
extends
A module to handle registering and binding all network related classes.
-
Field Summary
Modifier and TypeFieldDescriptionstatic >
static
static
static >
static >
static
static
static >
-
Constructor Summary
ConstructorDescriptionNetworkModule(Settings settings, boolean transportClient, <NetworkPlugin> plugins, ThreadPool threadPool, BigArrays bigArrays, PageCacheRecycler pageCacheRecycler, CircuitBreakerService circuitBreakerService, NamedWriteableRegistry namedWriteableRegistry, org.elasticsearch.common.xcontent.NamedXContentRegistry xContentRegistry, NetworkService networkService, HttpServerTransport.Dispatcher dispatcher, ClusterSettings clusterSettings)
Creates a network module that custom networking classes can be plugged into. -
Method Summary
Modifier and TypeMethodDescriptionstatic <NamedWriteableRegistry.Entry>
static <org.elasticsearch.common.xcontent.NamedXContentRegistry.Entry>
Returns a compositeTransportInterceptor
containing all registered interceptorsboolean
Methods inherited from class java.lang.
, , , , , , , , , ,
-
Field Details
-
TRANSPORT_TYPE_KEY
public static final TRANSPORT_TYPE_KEY- See Also:
- Constant Field Values
-
HTTP_TYPE_KEY
public static final HTTP_TYPE_KEY- See Also:
- Constant Field Values
-
HTTP_TYPE_DEFAULT_KEY
public static final HTTP_TYPE_DEFAULT_KEY- See Also:
- Constant Field Values
-
TRANSPORT_TYPE_DEFAULT_KEY
public static final TRANSPORT_TYPE_DEFAULT_KEY- See Also:
- Constant Field Values
-
TRANSPORT_DEFAULT_TYPE_SETTING
public static final > TRANSPORT_DEFAULT_TYPE_SETTING -
HTTP_DEFAULT_TYPE_SETTING
public static final > HTTP_DEFAULT_TYPE_SETTING -
HTTP_TYPE_SETTING
public static final > HTTP_TYPE_SETTING -
TRANSPORT_TYPE_SETTING
public static final > TRANSPORT_TYPE_SETTING
-
-
Constructor Details
-
NetworkModule
public NetworkModule(Settings settings, boolean transportClient, <NetworkPlugin> plugins, ThreadPool threadPool, BigArrays bigArrays, PageCacheRecycler pageCacheRecycler, CircuitBreakerService circuitBreakerService, NamedWriteableRegistry namedWriteableRegistry, org.elasticsearch.common.xcontent.NamedXContentRegistry xContentRegistry, NetworkService networkService, HttpServerTransport.Dispatcher dispatcher, ClusterSettings clusterSettings)Creates a network module that custom networking classes can be plugged into.- Parameters:
settings
- The settings for the nodetransportClient
- True if only transport classes should be allowed to be registered, false otherwise.
-
-
Method Details
-
isTransportClient
public boolean isTransportClient() -
getNamedWriteables
-
getNamedXContents
public static <org.elasticsearch.common.xcontent.NamedXContentRegistry.Entry> getNamedXContents() -
getHttpServerTransportSupplier
-
getTransportSupplier
-
getTransportInterceptor
Returns a compositeTransportInterceptor
containing all registered interceptors- See Also:
registerTransportInterceptor(TransportInterceptor)
-