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