Class TcpListener

  • All Implemented Interfaces:
    Listener

    public class TcpListener
    extends java.lang.Object
    implements Listener
    • Constructor Summary

      Constructors 
      Constructor Description
      TcpListener​(java.lang.String name, TcpParser parser, com.codahale.metrics.MetricRegistry metrics)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getHost()  
      java.lang.String getName()  
      int getPort()  
      void setHost​(java.lang.String host)  
      void setPort​(int port)  
      void start()  
      void stop()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • TcpListener

        public TcpListener​(java.lang.String name,
                           TcpParser parser,
                           com.codahale.metrics.MetricRegistry metrics)
    • Method Detail

      • start

        public void start()
                   throws java.lang.InterruptedException
        Specified by:
        start in interface Listener
        Throws:
        java.lang.InterruptedException
      • stop

        public void stop()
                  throws java.lang.InterruptedException
        Specified by:
        stop in interface Listener
        Throws:
        java.lang.InterruptedException
      • getName

        public java.lang.String getName()
        Specified by:
        getName in interface Listener
      • getHost

        public java.lang.String getHost()
      • setHost

        public void setHost​(java.lang.String host)
      • getPort

        public int getPort()
      • setPort

        public void setPort​(int port)