Package org.elasticsearch.transport
Class SniffConnectionStrategy
org.elasticsearch.transport.RemoteConnectionStrategy
org.elasticsearch.transport.SniffConnectionStrategy
- All Implemented Interfaces:
,
,
TransportConnectionListener
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionstatic <>>
A list of initial seed nodes to discover eligible nodes from the remote clusterstatic >
A proxy address for the remote cluster.static >
The maximum number of connections that will be established to a remote cluster.static >
The maximum number of node connections that will be established to a remote cluster.static <>>
static >
static >
static <>>
static >
Fields inherited from class org.elasticsearch.transport.RemoteConnectionStrategy
clusterAlias, connectionManager, logger, REMOTE_CONNECTION_MODE, REMOTE_MAX_PENDING_CONNECTION_LISTENERS, transportService
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
> listener)
protected RemoteConnectionInfo.ModeInfo
protected boolean
protected boolean
strategyMustBeRebuilt(Settings newSettings)
protected org.elasticsearch.transport.RemoteConnectionStrategy.ConnectionStrategy
Methods inherited from class org.elasticsearch.transport.RemoteConnectionStrategy
close, isClosed, isConnectionEnabled, isConnectionEnabled, onNodeDisconnected
Methods inherited from class java.lang.
, , , , , , , , , ,
Methods inherited from interface org.elasticsearch.transport.TransportConnectionListener
onConnectionClosed, onConnectionOpened, onNodeConnected
-
Field Details
-
SEARCH_REMOTE_CLUSTERS_SEEDS
public static final <>> SEARCH_REMOTE_CLUSTERS_SEEDS -
SEARCH_REMOTE_CLUSTER_SEEDS_UPGRADER
public static final <>> SEARCH_REMOTE_CLUSTER_SEEDS_UPGRADER -
REMOTE_CLUSTER_SEEDS
public static final <>> REMOTE_CLUSTER_SEEDSA list of initial seed nodes to discover eligible nodes from the remote cluster -
SEARCH_REMOTE_CLUSTERS_PROXY
public static final > SEARCH_REMOTE_CLUSTERS_PROXY -
REMOTE_CLUSTERS_PROXY
public static final > REMOTE_CLUSTERS_PROXYA proxy address for the remote cluster. By default this is not set, meaning that Elasticsearch will connect directly to the nodes in the remote cluster using their publish addresses. If this setting is set to an IP address or hostname then Elasticsearch will connect to the nodes in the remote cluster using this address instead. Use of this setting is not recommended and it is deliberately undocumented as it does not work well with all proxies. -
SEARCH_REMOTE_CONNECTIONS_PER_CLUSTER
public static final > SEARCH_REMOTE_CONNECTIONS_PER_CLUSTER -
REMOTE_CONNECTIONS_PER_CLUSTER
public static final > REMOTE_CONNECTIONS_PER_CLUSTERThe maximum number of connections that will be established to a remote cluster. For instance if there is only a single seed node, other nodes will be discovered up to the given number of nodes in this setting. The default is 3. -
REMOTE_NODE_CONNECTIONS
public static final > REMOTE_NODE_CONNECTIONSThe maximum number of node connections that will be established to a remote cluster. For instance if there is only a single seed node, other nodes will be discovered up to the given number of nodes in this setting. The default is 3. -
SEARCH_REMOTE_CLUSTERS_PROXY_UPGRADER
public static final > SEARCH_REMOTE_CLUSTERS_PROXY_UPGRADER
-
-
Method Details
-
shouldOpenMoreConnections
protected boolean shouldOpenMoreConnections()- Specified by:
shouldOpenMoreConnections
in classRemoteConnectionStrategy
-
strategyMustBeRebuilt
- Specified by:
strategyMustBeRebuilt
in classRemoteConnectionStrategy
-
strategyType
protected org.elasticsearch.transport.RemoteConnectionStrategy.ConnectionStrategy strategyType()- Specified by:
strategyType
in classRemoteConnectionStrategy
-
connectImpl
protected void connectImpl(> listener)- Specified by:
connectImpl
in classRemoteConnectionStrategy
-
getModeInfo
- Specified by:
getModeInfo
in classRemoteConnectionStrategy
-