Class MockNioTransport.MockSocketChannel
java.lang.Object
org.opensearch.nio.NioChannel
org.opensearch.nio.NioSocketChannel
org.opensearch.transport.nio.MockNioTransport.MockSocketChannel
- All Implemented Interfaces:
Closeable,AutoCloseable,org.opensearch.common.network.CloseableChannel,org.opensearch.transport.TcpChannel
- Enclosing class:
MockNioTransport
protected static class MockNioTransport.MockSocketChannel
extends org.opensearch.nio.NioSocketChannel
implements org.opensearch.transport.TcpChannel
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.opensearch.transport.TcpChannel
org.opensearch.transport.TcpChannel.ChannelStats -
Method Summary
Modifier and TypeMethodDescriptionvoidaddCloseListener(org.opensearch.core.action.ActionListener<Void> listener) voidaddConnectListener(org.opensearch.core.action.ActionListener<Void> listener) voidclose()org.opensearch.transport.TcpChannel.ChannelStatsbooleanvoidsendMessage(org.opensearch.core.common.bytes.BytesReference reference, org.opensearch.core.action.ActionListener<Void> listener) Methods inherited from class org.opensearch.nio.NioSocketChannel
addConnectListener, getContext, getLocalAddress, getRawChannel, getRemoteAddress, setContext, toStringMethods inherited from class org.opensearch.nio.NioChannel
addCloseListener, isOpenMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.opensearch.common.network.CloseableChannel
isOpenMethods inherited from interface org.opensearch.transport.TcpChannel
get, getLocalAddress, getRemoteAddress, sendMessage
-
Method Details
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein interfaceorg.opensearch.common.network.CloseableChannel- Overrides:
closein classorg.opensearch.nio.NioChannel
-
getProfile
- Specified by:
getProfilein interfaceorg.opensearch.transport.TcpChannel
-
isServerChannel
public boolean isServerChannel()- Specified by:
isServerChannelin interfaceorg.opensearch.transport.TcpChannel
-
addCloseListener
- Specified by:
addCloseListenerin interfaceorg.opensearch.common.network.CloseableChannel
-
addConnectListener
- Specified by:
addConnectListenerin interfaceorg.opensearch.transport.TcpChannel
-
getChannelStats
public org.opensearch.transport.TcpChannel.ChannelStats getChannelStats()- Specified by:
getChannelStatsin interfaceorg.opensearch.transport.TcpChannel
-
sendMessage
public void sendMessage(org.opensearch.core.common.bytes.BytesReference reference, org.opensearch.core.action.ActionListener<Void> listener) - Specified by:
sendMessagein interfaceorg.opensearch.transport.TcpChannel
-