java.io.Closeable, java.lang.AutoCloseable, LifecycleComponent, Releasable, Transportpublic class MockTcpTransport extends TcpTransport
| Modifier and Type | Class | Description |
|---|---|---|
class |
MockTcpTransport.MockChannel |
TcpTransport.HttpOnTransportException, TcpTransport.NodeChannels, TcpTransport.ProfileSettings, TcpTransport.ScheduledPingTransport.Connection| Modifier and Type | Field | Description |
|---|---|---|
static ConnectionProfile |
LIGHT_PROFILE |
A pre-built light connection profile that shares a single connection across all
types.
|
deprecationLogger, logger, settingslifecycleBIND_HOST, BIND_HOST_PROFILE, compress, CONNECTIONS_PER_NODE_BULK, CONNECTIONS_PER_NODE_PING, CONNECTIONS_PER_NODE_RECOVERY, CONNECTIONS_PER_NODE_REG, CONNECTIONS_PER_NODE_STATE, DEFAULT_FEATURES_SETTING, DEFAULT_PROFILE, defaultConnectionProfile, FEATURE_PREFIX, HOST, networkService, PING_DATA_SIZE, PING_SCHEDULE, PORT, PORT_PROFILE, profileSettings, PUBLISH_HOST, PUBLISH_HOST_PROFILE, PUBLISH_PORT, PUBLISH_PORT_PROFILE, scheduledPing, TCP_CONNECT_TIMEOUT, TCP_KEEP_ALIVE, TCP_KEEP_ALIVE_PROFILE, TCP_NO_DELAY, TCP_NO_DELAY_PROFILE, TCP_RECEIVE_BUFFER_SIZE, TCP_RECEIVE_BUFFER_SIZE_PROFILE, TCP_REUSE_ADDRESS, TCP_REUSE_ADDRESS_PROFILE, TCP_SEND_BUFFER_SIZE, TCP_SEND_BUFFER_SIZE_PROFILE, threadPool, TRANSPORT_CLIENT_BOSS_THREAD_NAME_PREFIX, TRANSPORT_SERVER_WORKER_THREAD_NAME_PREFIXTRANSPORT_TCP_COMPRESS| Constructor | Description |
|---|---|
MockTcpTransport(Settings settings,
ThreadPool threadPool,
BigArrays bigArrays,
CircuitBreakerService circuitBreakerService,
NamedWriteableRegistry namedWriteableRegistry,
NetworkService networkService) |
|
MockTcpTransport(Settings settings,
ThreadPool threadPool,
BigArrays bigArrays,
CircuitBreakerService circuitBreakerService,
NamedWriteableRegistry namedWriteableRegistry,
NetworkService networkService,
Version mockVersion) |
| Modifier and Type | Method | Description |
|---|---|---|
protected MockTcpTransport.MockChannel |
bind(java.lang.String name,
java.net.InetSocketAddress address) |
|
protected void |
doStart() |
|
protected Version |
getCurrentVersion() |
|
protected MockTcpTransport.MockChannel |
initiateChannel(DiscoveryNode node,
TimeValue connectTimeout,
ActionListener<java.lang.Void> connectListener) |
|
protected ConnectionProfile |
resolveConnectionProfile(ConnectionProfile connectionProfile) |
|
protected void |
stopInternal() |
logDeprecatedSetting, logRemovedSetting, nodeNameaddLifecycleListener, close, lifecycleState, removeLifecycleListener, start, stopaddLifecycleListener, lifecycleState, removeLifecycleListener, start, stopclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcloseaddressesFromString, bindServer, bindToPort, boundAddress, canCompress, connectToNode, disconnectFromNode, doClose, doStop, ensureOpen, executeHandshake, getConnection, getInFlightRequestBreaker, getLocalAddresses, getProfileSettings, getStats, handleRequest, messageReceived, newRequestId, nodeConnected, onException, openConnection, profileBoundAddresses, resolvePublishPort, sendErrorResponse, sendResponse, serverAcceptedChannel, setTransportService, validateMessageHeader, validateRequestpublic static final ConnectionProfile LIGHT_PROFILE
public MockTcpTransport(Settings settings, ThreadPool threadPool, BigArrays bigArrays, CircuitBreakerService circuitBreakerService, NamedWriteableRegistry namedWriteableRegistry, NetworkService networkService)
public MockTcpTransport(Settings settings, ThreadPool threadPool, BigArrays bigArrays, CircuitBreakerService circuitBreakerService, NamedWriteableRegistry namedWriteableRegistry, NetworkService networkService, Version mockVersion)
protected MockTcpTransport.MockChannel bind(java.lang.String name, java.net.InetSocketAddress address) throws java.io.IOException
bind in class TcpTransportjava.io.IOExceptionprotected MockTcpTransport.MockChannel initiateChannel(DiscoveryNode node, TimeValue connectTimeout, ActionListener<java.lang.Void> connectListener) throws java.io.IOException
initiateChannel in class TcpTransportjava.io.IOExceptionprotected ConnectionProfile resolveConnectionProfile(ConnectionProfile connectionProfile)
resolveConnectionProfile in class TcpTransportprotected void doStart()
doStart in class TcpTransportprotected void stopInternal()
stopInternal in class TcpTransportprotected Version getCurrentVersion()
getCurrentVersion in class TcpTransport