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 Type Method Description
    protected void acceptChannel​(org.elasticsearch.nio.ServerChannelContext context)  
    protected void acceptException​(org.elasticsearch.nio.ServerChannelContext context, java.lang.Exception exception)  
    protected void activeException​(org.elasticsearch.nio.ChannelContext<?> context, java.lang.Exception exception)  
    protected void closeException​(org.elasticsearch.nio.ChannelContext<?> context, java.lang.Exception exception)  
    void connectException​(org.elasticsearch.nio.SocketChannelContext context, java.lang.Exception e)  
    protected void genericChannelException​(org.elasticsearch.nio.ChannelContext<?> context, java.lang.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​(java.lang.Runnable task)  
    protected void handleWrite​(org.elasticsearch.nio.SocketChannelContext context)  
    protected void readException​(org.elasticsearch.nio.SocketChannelContext context, java.lang.Exception exception)  
    protected void registrationException​(org.elasticsearch.nio.ChannelContext<?> context, java.lang.Exception exception)  
    protected void taskException​(java.lang.Exception exception)  
    protected void writeException​(org.elasticsearch.nio.SocketChannelContext context, java.lang.Exception exception)  

    Methods inherited from class org.elasticsearch.nio.EventHandler

    postHandling, selectorException, uncaughtException

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • acceptChannel

      protected void acceptChannel​(org.elasticsearch.nio.ServerChannelContext context) throws java.io.IOException
      Overrides:
      acceptChannel in class org.elasticsearch.nio.EventHandler
      Throws:
      java.io.IOException
    • acceptException

      protected void acceptException​(org.elasticsearch.nio.ServerChannelContext context, java.lang.Exception exception)
      Overrides:
      acceptException in class org.elasticsearch.nio.EventHandler
    • handleRegistration

      protected void handleRegistration​(org.elasticsearch.nio.ChannelContext<?> context) throws java.io.IOException
      Overrides:
      handleRegistration in class org.elasticsearch.nio.EventHandler
      Throws:
      java.io.IOException
    • registrationException

      protected void registrationException​(org.elasticsearch.nio.ChannelContext<?> context, java.lang.Exception exception)
      Overrides:
      registrationException in class org.elasticsearch.nio.EventHandler
    • handleActive

      protected void handleActive​(org.elasticsearch.nio.ChannelContext<?> context) throws java.io.IOException
      Overrides:
      handleActive in class org.elasticsearch.nio.EventHandler
      Throws:
      java.io.IOException
    • activeException

      protected void activeException​(org.elasticsearch.nio.ChannelContext<?> context, java.lang.Exception exception)
      Overrides:
      activeException in class org.elasticsearch.nio.EventHandler
    • handleConnect

      public void handleConnect​(org.elasticsearch.nio.SocketChannelContext context) throws java.io.IOException
      Overrides:
      handleConnect in class org.elasticsearch.nio.EventHandler
      Throws:
      java.io.IOException
    • connectException

      public void connectException​(org.elasticsearch.nio.SocketChannelContext context, java.lang.Exception e)
      Overrides:
      connectException in class org.elasticsearch.nio.EventHandler
    • handleRead

      protected void handleRead​(org.elasticsearch.nio.SocketChannelContext context) throws java.io.IOException
      Overrides:
      handleRead in class org.elasticsearch.nio.EventHandler
      Throws:
      java.io.IOException
    • readException

      protected void readException​(org.elasticsearch.nio.SocketChannelContext context, java.lang.Exception exception)
      Overrides:
      readException in class org.elasticsearch.nio.EventHandler
    • handleWrite

      protected void handleWrite​(org.elasticsearch.nio.SocketChannelContext context) throws java.io.IOException
      Overrides:
      handleWrite in class org.elasticsearch.nio.EventHandler
      Throws:
      java.io.IOException
    • writeException

      protected void writeException​(org.elasticsearch.nio.SocketChannelContext context, java.lang.Exception exception)
      Overrides:
      writeException in class org.elasticsearch.nio.EventHandler
    • handleTask

      protected void handleTask​(java.lang.Runnable task)
      Overrides:
      handleTask in class org.elasticsearch.nio.EventHandler
    • taskException

      protected void taskException​(java.lang.Exception exception)
      Overrides:
      taskException in class org.elasticsearch.nio.EventHandler
    • handleClose

      protected void handleClose​(org.elasticsearch.nio.ChannelContext<?> context) throws java.io.IOException
      Overrides:
      handleClose in class org.elasticsearch.nio.EventHandler
      Throws:
      java.io.IOException
    • closeException

      protected void closeException​(org.elasticsearch.nio.ChannelContext<?> context, java.lang.Exception exception)
      Overrides:
      closeException in class org.elasticsearch.nio.EventHandler
    • genericChannelException

      protected void genericChannelException​(org.elasticsearch.nio.ChannelContext<?> context, java.lang.Exception exception)
      Overrides:
      genericChannelException in class org.elasticsearch.nio.EventHandler