Package org.elasticsearch.transport
Class ProxyConnectionStrategy
java.lang.Object
org.elasticsearch.transport.RemoteConnectionStrategy
org.elasticsearch.transport.ProxyConnectionStrategy
- All Implemented Interfaces:
java.io.Closeable,java.lang.AutoCloseable,TransportConnectionListener
public class ProxyConnectionStrategy extends RemoteConnectionStrategy
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classProxyConnectionStrategy.ProxyModeInfo -
Field Summary
Fields Modifier and Type Field Description static Setting.AffixSetting<java.lang.String>PROXY_ADDRESSThe remote address for the proxy.static Setting.AffixSetting<java.lang.Integer>REMOTE_SOCKET_CONNECTIONSThe maximum number of socket connections that will be established to a remote cluster.static Setting.AffixSetting<java.lang.String>SERVER_NAMEA 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 Type Method Description protected voidconnectImpl(ActionListener<java.lang.Void> listener)RemoteConnectionInfo.ModeInfogetModeInfo()protected booleanshouldOpenMoreConnections()protected booleanstrategyMustBeRebuilt(Settings newSettings)protected org.elasticsearch.transport.RemoteConnectionStrategy.ConnectionStrategystrategyType()Methods inherited from class org.elasticsearch.transport.RemoteConnectionStrategy
close, isClosed, isConnectionEnabled, isConnectionEnabled, onNodeDisconnectedMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.elasticsearch.transport.TransportConnectionListener
onConnectionClosed, onConnectionOpened, onNodeConnected
-
Field Details
-
PROXY_ADDRESS
The remote address for the proxy. The connections will be opened to the configured address. -
REMOTE_SOCKET_CONNECTIONS
The maximum number of socket connections that will be established to a remote cluster. The default is 18. -
SERVER_NAME
A configurable server_name attribute
-
-
Method Details
-
shouldOpenMoreConnections
protected boolean shouldOpenMoreConnections()- Specified by:
shouldOpenMoreConnectionsin classRemoteConnectionStrategy
-
strategyMustBeRebuilt
- Specified by:
strategyMustBeRebuiltin classRemoteConnectionStrategy
-
strategyType
protected org.elasticsearch.transport.RemoteConnectionStrategy.ConnectionStrategy strategyType()- Specified by:
strategyTypein classRemoteConnectionStrategy
-
connectImpl
- Specified by:
connectImplin classRemoteConnectionStrategy
-
getModeInfo
- Specified by:
getModeInfoin classRemoteConnectionStrategy
-