Class TestEventHandler
java.lang.Object
org.opensearch.nio.EventHandler
org.opensearch.transport.nio.TestEventHandler
public class TestEventHandler
extends org.opensearch.nio.EventHandler
-
Field Summary
Fields inherited from class org.opensearch.nio.EventHandler
exceptionHandler -
Method Summary
Modifier and TypeMethodDescriptionprotected voidacceptChannel(org.opensearch.nio.ServerChannelContext context) protected voidacceptException(org.opensearch.nio.ServerChannelContext context, Exception exception) protected voidactiveException(org.opensearch.nio.ChannelContext<?> context, Exception exception) protected voidcloseException(org.opensearch.nio.ChannelContext<?> context, Exception exception) voidconnectException(org.opensearch.nio.SocketChannelContext context, Exception e) protected voidgenericChannelException(org.opensearch.nio.ChannelContext<?> context, 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(Runnable task) protected voidhandleWrite(org.opensearch.nio.SocketChannelContext context) protected voidreadException(org.opensearch.nio.SocketChannelContext context, Exception exception) protected voidregistrationException(org.opensearch.nio.ChannelContext<?> context, Exception exception) protected voidtaskException(Exception exception) protected voidwriteException(org.opensearch.nio.SocketChannelContext context, Exception exception) Methods inherited from class org.opensearch.nio.EventHandler
postHandling, selectorException, uncaughtException
-
Method Details
-
acceptChannel
- Overrides:
acceptChannelin classorg.opensearch.nio.EventHandler- Throws:
IOException
-
acceptException
protected void acceptException(org.opensearch.nio.ServerChannelContext context, Exception exception) - Overrides:
acceptExceptionin classorg.opensearch.nio.EventHandler
-
handleRegistration
- Overrides:
handleRegistrationin classorg.opensearch.nio.EventHandler- Throws:
IOException
-
registrationException
protected void registrationException(org.opensearch.nio.ChannelContext<?> context, Exception exception) - Overrides:
registrationExceptionin classorg.opensearch.nio.EventHandler
-
handleActive
- Overrides:
handleActivein classorg.opensearch.nio.EventHandler- Throws:
IOException
-
activeException
- Overrides:
activeExceptionin classorg.opensearch.nio.EventHandler
-
handleConnect
- Overrides:
handleConnectin classorg.opensearch.nio.EventHandler- Throws:
IOException
-
connectException
- Overrides:
connectExceptionin classorg.opensearch.nio.EventHandler
-
handleRead
- Overrides:
handleReadin classorg.opensearch.nio.EventHandler- Throws:
IOException
-
readException
- Overrides:
readExceptionin classorg.opensearch.nio.EventHandler
-
handleWrite
- Overrides:
handleWritein classorg.opensearch.nio.EventHandler- Throws:
IOException
-
writeException
- Overrides:
writeExceptionin classorg.opensearch.nio.EventHandler
-
handleTask
- Overrides:
handleTaskin classorg.opensearch.nio.EventHandler
-
taskException
- Overrides:
taskExceptionin classorg.opensearch.nio.EventHandler
-
handleClose
- Overrides:
handleClosein classorg.opensearch.nio.EventHandler- Throws:
IOException
-
closeException
- Overrides:
closeExceptionin classorg.opensearch.nio.EventHandler
-
genericChannelException
protected void genericChannelException(org.opensearch.nio.ChannelContext<?> context, Exception exception) - Overrides:
genericChannelExceptionin classorg.opensearch.nio.EventHandler
-