Package org.elasticsearch.transport
Class RemoteConnectionStrategy
org.elasticsearch.transport.RemoteConnectionStrategy
- All Implemented Interfaces:
,
,
TransportConnectionListener
- Direct Known Subclasses:
ProxyConnectionStrategy
,SniffConnectionStrategy
public abstract class RemoteConnectionStrategy
extends
implements
-
Field Summary
Modifier and TypeFieldDescriptionprotected
protected RemoteConnectionManager
protected org.apache.logging.log4j.Logger
static Setting.AffixSetting<org.elasticsearch.transport.RemoteConnectionStrategy.ConnectionStrategy>
static >
protected TransportService
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
protected abstract void
> listener)
protected abstract RemoteConnectionInfo.ModeInfo
boolean
isClosed()
static boolean
clusterAlias, <> settings)
static boolean
clusterAlias, Settings settings)
void
onNodeDisconnected(DiscoveryNode node, Transport.Connection connection)
Called once a node connection is closed and unregistered.protected abstract boolean
protected abstract boolean
strategyMustBeRebuilt(Settings newSettings)
protected abstract org.elasticsearch.transport.RemoteConnectionStrategy.ConnectionStrategy
Methods inherited from class java.lang.
, , , , , , , , , ,
Methods 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
public static final > REMOTE_MAX_PENDING_CONNECTION_LISTENERS -
logger
protected final org.apache.logging.log4j.Logger logger -
transportService
-
connectionManager
-
clusterAlias
protected final clusterAlias
-
-
Method Details
-
isConnectionEnabled
-
isConnectionEnabled
public static boolean isConnectionEnabled( clusterAlias, <> settings) -
strategyMustBeRebuilt
-
strategyType
protected abstract org.elasticsearch.transport.RemoteConnectionStrategy.ConnectionStrategy strategyType() -
onNodeDisconnected
Description copied from interface:TransportConnectionListener
Called once a node connection is closed and unregistered.- Specified by:
onNodeDisconnected
in interfaceTransportConnectionListener
-
close
public void close()- Specified by:
in interface
- Specified by:
in interface
-
isClosed
public boolean isClosed() -
shouldOpenMoreConnections
protected abstract boolean shouldOpenMoreConnections() -
connectImpl
protected abstract void connectImpl(> listener) -
getModeInfo
-