Package org.elasticsearch.common.network
Class NetworkModule
java.lang.Object
org.elasticsearch.common.network.NetworkModule
A module to handle registering and binding all network related classes.
-
Field Summary
-
Constructor Summary
ConstructorDescriptionNetworkModule(Settings settings, boolean transportClient, List<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 List<NamedWriteableRegistry.Entry>
static List<org.elasticsearch.common.xcontent.NamedXContentRegistry.Entry>
Returns a compositeTransportInterceptor
containing all registered interceptorsboolean
-
Field Details
-
TRANSPORT_TYPE_KEY
- See Also:
- Constant Field Values
-
HTTP_TYPE_KEY
- See Also:
- Constant Field Values
-
HTTP_TYPE_DEFAULT_KEY
- See Also:
- Constant Field Values
-
TRANSPORT_TYPE_DEFAULT_KEY
- See Also:
- Constant Field Values
-
TRANSPORT_DEFAULT_TYPE_SETTING
-
HTTP_DEFAULT_TYPE_SETTING
-
HTTP_TYPE_SETTING
-
TRANSPORT_TYPE_SETTING
-
-
Constructor Details
-
NetworkModule
public NetworkModule(Settings settings, boolean transportClient, List<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 List<org.elasticsearch.common.xcontent.NamedXContentRegistry.Entry> getNamedXContents() -
getHttpServerTransportSupplier
-
getTransportSupplier
-
getTransportInterceptor
Returns a compositeTransportInterceptor
containing all registered interceptors- See Also:
registerTransportInterceptor(TransportInterceptor)
-