Class BookieNettyServer


  • class BookieNettyServer
    extends java.lang.Object
    Netty server for serving bookie requests.
    • Field Detail

      • maxFrameSize

        final int maxFrameSize
      • eventLoopGroup

        final io.netty.channel.EventLoopGroup eventLoopGroup
      • acceptorGroup

        final io.netty.channel.EventLoopGroup acceptorGroup
      • jvmEventLoopGroup

        final io.netty.channel.EventLoopGroup jvmEventLoopGroup
      • isRunning

        final java.util.concurrent.atomic.AtomicBoolean isRunning
      • isClosed

        final java.util.concurrent.atomic.AtomicBoolean isClosed
      • suspensionLock

        final java.lang.Object suspensionLock
      • suspended

        volatile boolean suspended
      • allChannels

        io.netty.channel.group.ChannelGroup allChannels
      • bindAddress

        final java.net.InetSocketAddress bindAddress
      • registry

        final com.google.protobuf.ExtensionRegistry registry
    • Constructor Detail

      • BookieNettyServer

        BookieNettyServer​(ServerConfiguration conf,
                          RequestProcessor processor,
                          io.netty.buffer.ByteBufAllocator allocator)
                   throws java.io.IOException,
                          org.apache.zookeeper.KeeperException,
                          java.lang.InterruptedException,
                          BookieException
        Throws:
        java.io.IOException
        org.apache.zookeeper.KeeperException
        java.lang.InterruptedException
        BookieException
    • Method Detail

      • isRunning

        boolean isRunning()
      • suspendProcessing

        void suspendProcessing()
      • resumeProcessing

        void resumeProcessing()
      • start

        void start()
            throws java.lang.InterruptedException
        Throws:
        java.lang.InterruptedException
      • shutdown

        void shutdown()