Package org.elasticsearch.transport
Class SniffConnectionStrategy
java.lang.Object
org.elasticsearch.transport.RemoteConnectionStrategy
org.elasticsearch.transport.SniffConnectionStrategy
- All Implemented Interfaces:
Closeable
,AutoCloseable
,TransportConnectionListener
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionstatic final Setting.AffixSetting<List<String>>
A list of initial seed nodes to discover eligible nodes from the remote clusterstatic final Setting.AffixSetting<String>
A proxy address for the remote cluster.The maximum number of connections that will be established to a remote cluster.static final Setting.AffixSetting<Integer>
The maximum number of node connections that will be established to a remote cluster.static final SettingUpgrader<List<String>>
static final Setting.AffixSetting<String>
static final SettingUpgrader<String>
static final Setting.AffixSetting<List<String>>
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
connectImpl
(ActionListener<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.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.elasticsearch.transport.TransportConnectionListener
onConnectionClosed, onConnectionOpened, onNodeConnected
-
Field Details
-
SEARCH_REMOTE_CLUSTERS_SEEDS
-
SEARCH_REMOTE_CLUSTER_SEEDS_UPGRADER
-
REMOTE_CLUSTER_SEEDS
A list of initial seed nodes to discover eligible nodes from the remote cluster -
SEARCH_REMOTE_CLUSTERS_PROXY
-
REMOTE_CLUSTERS_PROXY
A 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
-
REMOTE_CONNECTIONS_PER_CLUSTER
The 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
The 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
-
-
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
- Specified by:
connectImpl
in classRemoteConnectionStrategy
-
getModeInfo
- Specified by:
getModeInfo
in classRemoteConnectionStrategy
-