Package org.opensearch.transport
Class ProxyConnectionStrategy
java.lang.Object
org.opensearch.transport.RemoteConnectionStrategy
org.opensearch.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 class
ProxyConnectionStrategy.ProxyModeInfo
-
Field Summary
Fields Modifier and Type Field Description static Setting.AffixSetting<java.lang.String>
PROXY_ADDRESS
The remote address for the proxy.static Setting.AffixSetting<java.lang.Integer>
REMOTE_SOCKET_CONNECTIONS
The maximum number of socket connections that will be established to a remote cluster.static Setting.AffixSetting<java.lang.String>
SERVER_NAME
A configurable server_name attributeFields inherited from class org.opensearch.transport.RemoteConnectionStrategy
clusterAlias, connectionManager, logger, REMOTE_CONNECTION_MODE, REMOTE_MAX_PENDING_CONNECTION_LISTENERS, transportService
-
Method Summary
Modifier and Type Method Description protected void
connectImpl(ActionListener<java.lang.Void> listener)
RemoteConnectionInfo.ModeInfo
getModeInfo()
protected boolean
shouldOpenMoreConnections()
protected boolean
strategyMustBeRebuilt(Settings newSettings)
protected org.opensearch.transport.RemoteConnectionStrategy.ConnectionStrategy
strategyType()
Methods inherited from class org.opensearch.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.opensearch.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:
shouldOpenMoreConnections
in classRemoteConnectionStrategy
-
strategyMustBeRebuilt
- Specified by:
strategyMustBeRebuilt
in classRemoteConnectionStrategy
-
strategyType
protected org.opensearch.transport.RemoteConnectionStrategy.ConnectionStrategy strategyType()- Specified by:
strategyType
in classRemoteConnectionStrategy
-
connectImpl
- Specified by:
connectImpl
in classRemoteConnectionStrategy
-
getModeInfo
- Specified by:
getModeInfo
in classRemoteConnectionStrategy
-