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 void
acceptChannel(org.elasticsearch.nio.ServerChannelContext context)
protected void
acceptException(org.elasticsearch.nio.ServerChannelContext context, Exception exception)
protected void
activeException(org.elasticsearch.nio.ChannelContext<?> context, Exception exception)
protected void
closeException(org.elasticsearch.nio.ChannelContext<?> context, Exception exception)
void
connectException(org.elasticsearch.nio.SocketChannelContext context, Exception e)
protected void
genericChannelException(org.elasticsearch.nio.ChannelContext<?> context, Exception exception)
protected void
handleActive(org.elasticsearch.nio.ChannelContext<?> context)
protected void
handleClose(org.elasticsearch.nio.ChannelContext<?> context)
void
handleConnect(org.elasticsearch.nio.SocketChannelContext context)
protected void
handleRead(org.elasticsearch.nio.SocketChannelContext context)
protected void
handleRegistration(org.elasticsearch.nio.ChannelContext<?> context)
protected void
handleTask(Runnable task)
protected void
handleWrite(org.elasticsearch.nio.SocketChannelContext context)
protected void
readException(org.elasticsearch.nio.SocketChannelContext context, Exception exception)
protected void
registrationException(org.elasticsearch.nio.ChannelContext<?> context, Exception exception)
protected void
taskException(Exception exception)
protected void
writeException(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:
acceptChannel
in classorg.elasticsearch.nio.EventHandler
- Throws:
IOException
-
acceptException
protected void acceptException(org.elasticsearch.nio.ServerChannelContext context, Exception exception)- Overrides:
acceptException
in classorg.elasticsearch.nio.EventHandler
-
handleRegistration
protected void handleRegistration(org.elasticsearch.nio.ChannelContext<?> context) throws IOException- Overrides:
handleRegistration
in classorg.elasticsearch.nio.EventHandler
- Throws:
IOException
-
registrationException
protected void registrationException(org.elasticsearch.nio.ChannelContext<?> context, Exception exception)- Overrides:
registrationException
in classorg.elasticsearch.nio.EventHandler
-
handleActive
- Overrides:
handleActive
in classorg.elasticsearch.nio.EventHandler
- Throws:
IOException
-
activeException
protected void activeException(org.elasticsearch.nio.ChannelContext<?> context, Exception exception)- Overrides:
activeException
in classorg.elasticsearch.nio.EventHandler
-
handleConnect
- Overrides:
handleConnect
in classorg.elasticsearch.nio.EventHandler
- Throws:
IOException
-
connectException
- Overrides:
connectException
in classorg.elasticsearch.nio.EventHandler
-
handleRead
- Overrides:
handleRead
in classorg.elasticsearch.nio.EventHandler
- Throws:
IOException
-
readException
protected void readException(org.elasticsearch.nio.SocketChannelContext context, Exception exception)- Overrides:
readException
in classorg.elasticsearch.nio.EventHandler
-
handleWrite
- Overrides:
handleWrite
in classorg.elasticsearch.nio.EventHandler
- Throws:
IOException
-
writeException
protected void writeException(org.elasticsearch.nio.SocketChannelContext context, Exception exception)- Overrides:
writeException
in classorg.elasticsearch.nio.EventHandler
-
handleTask
- Overrides:
handleTask
in classorg.elasticsearch.nio.EventHandler
-
taskException
- Overrides:
taskException
in classorg.elasticsearch.nio.EventHandler
-
handleClose
- Overrides:
handleClose
in classorg.elasticsearch.nio.EventHandler
- Throws:
IOException
-
closeException
protected void closeException(org.elasticsearch.nio.ChannelContext<?> context, Exception exception)- Overrides:
closeException
in classorg.elasticsearch.nio.EventHandler
-
genericChannelException
protected void genericChannelException(org.elasticsearch.nio.ChannelContext<?> context, Exception exception)- Overrides:
genericChannelException
in classorg.elasticsearch.nio.EventHandler
-