Package org.opensearch.transport.nio
Class TestEventHandler
java.lang.Object
org.opensearch.nio.EventHandler
org.opensearch.transport.nio.TestEventHandler
public class TestEventHandler
extends org.opensearch.nio.EventHandler
-
Field Summary
-
Method Summary
Modifier and Type Method Description protected voidacceptChannel(org.opensearch.nio.ServerChannelContext context)protected voidacceptException(org.opensearch.nio.ServerChannelContext context, java.lang.Exception exception)protected voidactiveException(org.opensearch.nio.ChannelContext<?> context, java.lang.Exception exception)protected voidcloseException(org.opensearch.nio.ChannelContext<?> context, java.lang.Exception exception)voidconnectException(org.opensearch.nio.SocketChannelContext context, java.lang.Exception e)protected voidgenericChannelException(org.opensearch.nio.ChannelContext<?> context, java.lang.Exception exception)protected voidhandleActive(org.opensearch.nio.ChannelContext<?> context)protected voidhandleClose(org.opensearch.nio.ChannelContext<?> context)voidhandleConnect(org.opensearch.nio.SocketChannelContext context)protected voidhandleRead(org.opensearch.nio.SocketChannelContext context)protected voidhandleRegistration(org.opensearch.nio.ChannelContext<?> context)protected voidhandleTask(java.lang.Runnable task)protected voidhandleWrite(org.opensearch.nio.SocketChannelContext context)protected voidreadException(org.opensearch.nio.SocketChannelContext context, java.lang.Exception exception)protected voidregistrationException(org.opensearch.nio.ChannelContext<?> context, java.lang.Exception exception)protected voidtaskException(java.lang.Exception exception)protected voidwriteException(org.opensearch.nio.SocketChannelContext context, java.lang.Exception exception)
-
Method Details
-
acceptChannel
protected void acceptChannel(org.opensearch.nio.ServerChannelContext context) throws java.io.IOException- Overrides:
acceptChannelin classorg.opensearch.nio.EventHandler- Throws:
java.io.IOException
-
acceptException
protected void acceptException(org.opensearch.nio.ServerChannelContext context, java.lang.Exception exception)- Overrides:
acceptExceptionin classorg.opensearch.nio.EventHandler
-
handleRegistration
protected void handleRegistration(org.opensearch.nio.ChannelContext<?> context) throws java.io.IOException- Overrides:
handleRegistrationin classorg.opensearch.nio.EventHandler- Throws:
java.io.IOException
-
registrationException
protected void registrationException(org.opensearch.nio.ChannelContext<?> context, java.lang.Exception exception)- Overrides:
registrationExceptionin classorg.opensearch.nio.EventHandler
-
handleActive
protected void handleActive(org.opensearch.nio.ChannelContext<?> context) throws java.io.IOException- Overrides:
handleActivein classorg.opensearch.nio.EventHandler- Throws:
java.io.IOException
-
activeException
protected void activeException(org.opensearch.nio.ChannelContext<?> context, java.lang.Exception exception)- Overrides:
activeExceptionin classorg.opensearch.nio.EventHandler
-
handleConnect
public void handleConnect(org.opensearch.nio.SocketChannelContext context) throws java.io.IOException- Overrides:
handleConnectin classorg.opensearch.nio.EventHandler- Throws:
java.io.IOException
-
connectException
public void connectException(org.opensearch.nio.SocketChannelContext context, java.lang.Exception e)- Overrides:
connectExceptionin classorg.opensearch.nio.EventHandler
-
handleRead
protected void handleRead(org.opensearch.nio.SocketChannelContext context) throws java.io.IOException- Overrides:
handleReadin classorg.opensearch.nio.EventHandler- Throws:
java.io.IOException
-
readException
protected void readException(org.opensearch.nio.SocketChannelContext context, java.lang.Exception exception)- Overrides:
readExceptionin classorg.opensearch.nio.EventHandler
-
handleWrite
protected void handleWrite(org.opensearch.nio.SocketChannelContext context) throws java.io.IOException- Overrides:
handleWritein classorg.opensearch.nio.EventHandler- Throws:
java.io.IOException
-
writeException
protected void writeException(org.opensearch.nio.SocketChannelContext context, java.lang.Exception exception)- Overrides:
writeExceptionin classorg.opensearch.nio.EventHandler
-
handleTask
protected void handleTask(java.lang.Runnable task)- Overrides:
handleTaskin classorg.opensearch.nio.EventHandler
-
taskException
protected void taskException(java.lang.Exception exception)- Overrides:
taskExceptionin classorg.opensearch.nio.EventHandler
-
handleClose
protected void handleClose(org.opensearch.nio.ChannelContext<?> context) throws java.io.IOException- Overrides:
handleClosein classorg.opensearch.nio.EventHandler- Throws:
java.io.IOException
-
closeException
protected void closeException(org.opensearch.nio.ChannelContext<?> context, java.lang.Exception exception)- Overrides:
closeExceptionin classorg.opensearch.nio.EventHandler
-
genericChannelException
protected void genericChannelException(org.opensearch.nio.ChannelContext<?> context, java.lang.Exception exception)- Overrides:
genericChannelExceptionin classorg.opensearch.nio.EventHandler
-