Package org.elasticsearch.transport
Class RemoteConnectionStrategy
java.lang.Object
org.elasticsearch.transport.RemoteConnectionStrategy
- All Implemented Interfaces:
Closeable,AutoCloseable,TransportConnectionListener
- Direct Known Subclasses:
ProxyConnectionStrategy,SniffConnectionStrategy
public abstract class RemoteConnectionStrategy
extends Object
implements TransportConnectionListener, Closeable
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Stringprotected RemoteConnectionManagerprotected org.apache.logging.log4j.Loggerstatic Setting.AffixSetting<org.elasticsearch.transport.RemoteConnectionStrategy.ConnectionStrategy>protected TransportService -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()protected abstract voidconnectImpl(ActionListener<Void> listener)protected abstract RemoteConnectionInfo.ModeInfobooleanisClosed()static booleanisConnectionEnabled(String clusterAlias, Map<Setting<?>,Object> settings)static booleanisConnectionEnabled(String clusterAlias, Settings settings)voidonNodeDisconnected(DiscoveryNode node, Transport.Connection connection)Called once a node connection is closed and unregistered.protected abstract booleanprotected abstract booleanstrategyMustBeRebuilt(Settings newSettings)protected abstract org.elasticsearch.transport.RemoteConnectionStrategy.ConnectionStrategyMethods 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
-
REMOTE_CONNECTION_MODE
public static final Setting.AffixSetting<org.elasticsearch.transport.RemoteConnectionStrategy.ConnectionStrategy> REMOTE_CONNECTION_MODE -
REMOTE_MAX_PENDING_CONNECTION_LISTENERS
-
logger
protected final org.apache.logging.log4j.Logger logger -
transportService
-
connectionManager
-
clusterAlias
-
-
Method Details
-
isConnectionEnabled
-
isConnectionEnabled
-
strategyMustBeRebuilt
-
strategyType
protected abstract org.elasticsearch.transport.RemoteConnectionStrategy.ConnectionStrategy strategyType() -
onNodeDisconnected
Description copied from interface:TransportConnectionListenerCalled once a node connection is closed and unregistered.- Specified by:
onNodeDisconnectedin interfaceTransportConnectionListener
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-
isClosed
public boolean isClosed() -
shouldOpenMoreConnections
protected abstract boolean shouldOpenMoreConnections() -
connectImpl
-
getModeInfo
-