Package org.elasticsearch.transport.nio
Class TestEventHandler
- java.lang.Object
-
- org.elasticsearch.nio.EventHandler
-
- org.elasticsearch.transport.nio.TestEventHandler
-
public class TestEventHandler extends EventHandler
-
-
Field Summary
-
Fields inherited from class org.elasticsearch.nio.EventHandler
exceptionHandler
-
-
Method Summary
Modifier and Type Method Description protected void
acceptChannel(ServerChannelContext context)
protected void
acceptException(ServerChannelContext context, java.lang.Exception exception)
protected void
closeException(ChannelContext<?> context, java.lang.Exception exception)
void
connectException(SocketChannelContext context, java.lang.Exception e)
protected void
genericChannelException(ChannelContext<?> context, java.lang.Exception exception)
protected void
handleClose(ChannelContext<?> context)
void
handleConnect(SocketChannelContext context)
protected void
handleRead(SocketChannelContext context)
protected void
handleRegistration(ChannelContext<?> context)
protected void
handleTask(java.lang.Runnable task)
protected void
handleWrite(SocketChannelContext context)
protected void
readException(SocketChannelContext context, java.lang.Exception exception)
protected void
registrationException(ChannelContext<?> context, java.lang.Exception exception)
protected void
taskException(java.lang.Exception exception)
protected void
writeException(SocketChannelContext context, java.lang.Exception exception)
-
Methods inherited from class org.elasticsearch.nio.EventHandler
postHandling, selectorException, uncaughtException
-
-
-
-
Method Detail
-
acceptChannel
protected void acceptChannel(ServerChannelContext context) throws java.io.IOException
- Overrides:
acceptChannel
in classEventHandler
- Throws:
java.io.IOException
-
acceptException
protected void acceptException(ServerChannelContext context, java.lang.Exception exception)
- Overrides:
acceptException
in classEventHandler
-
handleRegistration
protected void handleRegistration(ChannelContext<?> context) throws java.io.IOException
- Overrides:
handleRegistration
in classEventHandler
- Throws:
java.io.IOException
-
registrationException
protected void registrationException(ChannelContext<?> context, java.lang.Exception exception)
- Overrides:
registrationException
in classEventHandler
-
handleConnect
public void handleConnect(SocketChannelContext context) throws java.io.IOException
- Overrides:
handleConnect
in classEventHandler
- Throws:
java.io.IOException
-
connectException
public void connectException(SocketChannelContext context, java.lang.Exception e)
- Overrides:
connectException
in classEventHandler
-
handleRead
protected void handleRead(SocketChannelContext context) throws java.io.IOException
- Overrides:
handleRead
in classEventHandler
- Throws:
java.io.IOException
-
readException
protected void readException(SocketChannelContext context, java.lang.Exception exception)
- Overrides:
readException
in classEventHandler
-
handleWrite
protected void handleWrite(SocketChannelContext context) throws java.io.IOException
- Overrides:
handleWrite
in classEventHandler
- Throws:
java.io.IOException
-
writeException
protected void writeException(SocketChannelContext context, java.lang.Exception exception)
- Overrides:
writeException
in classEventHandler
-
handleTask
protected void handleTask(java.lang.Runnable task)
- Overrides:
handleTask
in classEventHandler
-
taskException
protected void taskException(java.lang.Exception exception)
- Overrides:
taskException
in classEventHandler
-
handleClose
protected void handleClose(ChannelContext<?> context) throws java.io.IOException
- Overrides:
handleClose
in classEventHandler
- Throws:
java.io.IOException
-
closeException
protected void closeException(ChannelContext<?> context, java.lang.Exception exception)
- Overrides:
closeException
in classEventHandler
-
genericChannelException
protected void genericChannelException(ChannelContext<?> context, java.lang.Exception exception)
- Overrides:
genericChannelException
in classEventHandler
-
-