Package org.apache.bookkeeper.proto
Class BookieNettyServer
- java.lang.Object
- 
- org.apache.bookkeeper.proto.BookieNettyServer
 
- 
 class BookieNettyServer extends java.lang.ObjectNetty server for serving bookie requests.
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description (package private) classBookieNettyServer.BookieSideConnectionPeerContextHandler
 - 
Field SummaryFields Modifier and Type Field Description (package private) io.netty.channel.group.ChannelGroupallChannels(package private) BookieAuthProvider.FactoryauthProviderFactory(package private) java.net.InetSocketAddressbindAddress(package private) BookieSocketAddressbookieAddress(package private) BookieIdbookieId(package private) ServerConfigurationconf(package private) io.netty.channel.EventLoopGroupeventLoopGroup(package private) java.util.concurrent.atomic.AtomicBooleanisClosed(package private) java.util.concurrent.atomic.AtomicBooleanisRunning(package private) io.netty.channel.EventLoopGroupjvmEventLoopGroup(package private) intmaxFrameSize(package private) com.google.protobuf.ExtensionRegistryregistry(package private) RequestProcessorrequestProcessor(package private) booleansuspended(package private) java.lang.ObjectsuspensionLock
 - 
Constructor SummaryConstructors Constructor Description BookieNettyServer(ServerConfiguration conf, RequestProcessor processor, io.netty.buffer.ByteBufAllocator allocator)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) booleanisRunning()(package private) voidresumeProcessing()BookieNettyServersetRequestProcessor(RequestProcessor processor)(package private) voidshutdown()(package private) voidstart()(package private) voidsuspendProcessing()
 
- 
- 
- 
Field Detail- 
maxFrameSizefinal int maxFrameSize 
 - 
conffinal ServerConfiguration conf 
 - 
eventLoopGroupfinal io.netty.channel.EventLoopGroup eventLoopGroup 
 - 
jvmEventLoopGroupfinal io.netty.channel.EventLoopGroup jvmEventLoopGroup 
 - 
requestProcessorRequestProcessor requestProcessor 
 - 
isRunningfinal java.util.concurrent.atomic.AtomicBoolean isRunning 
 - 
isClosedfinal java.util.concurrent.atomic.AtomicBoolean isClosed 
 - 
suspensionLockfinal java.lang.Object suspensionLock 
 - 
suspendedvolatile boolean suspended 
 - 
allChannelsio.netty.channel.group.ChannelGroup allChannels 
 - 
bookieAddressfinal BookieSocketAddress bookieAddress 
 - 
bookieIdfinal BookieId bookieId 
 - 
bindAddressfinal java.net.InetSocketAddress bindAddress 
 - 
authProviderFactoryfinal BookieAuthProvider.Factory authProviderFactory 
 - 
registryfinal com.google.protobuf.ExtensionRegistry registry 
 
- 
 - 
Constructor Detail- 
BookieNettyServerBookieNettyServer(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- 
setRequestProcessorpublic BookieNettyServer setRequestProcessor(RequestProcessor processor) 
 - 
isRunningboolean isRunning() 
 - 
suspendProcessingvoid suspendProcessing() 
 - 
resumeProcessingvoid resumeProcessing() 
 - 
startvoid start() throws java.lang.InterruptedException- Throws:
- java.lang.InterruptedException
 
 - 
shutdownvoid shutdown() 
 
- 
 
-