Package org.elasticsearch.transport
Class ProxyConnectionStrategy
org.elasticsearch.transport.RemoteConnectionStrategy
org.elasticsearch.transport.ProxyConnectionStrategy
- All Implemented Interfaces:
,
,
TransportConnectionListener
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionstatic >
The remote address for the proxy.static >
The maximum number of socket connections that will be established to a remote cluster.static >
A configurable server_name attributeFields 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 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
-
PROXY_ADDRESS
public static final > PROXY_ADDRESSThe remote address for the proxy. The connections will be opened to the configured address. -
REMOTE_SOCKET_CONNECTIONS
public static final > REMOTE_SOCKET_CONNECTIONSThe maximum number of socket connections that will be established to a remote cluster. The default is 18. -
SERVER_NAME
public static final > SERVER_NAMEA configurable server_name attribute
-
-
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
-