Class BookieStateService

java.lang.Object
org.apache.bookkeeper.server.http.service.BookieStateService
All Implemented Interfaces:
org.apache.bookkeeper.http.service.HttpEndpointService

public class BookieStateService extends Object implements org.apache.bookkeeper.http.service.HttpEndpointService
HttpEndpointService that exposes the current state of the bookie.

Get the current bookie status:

 
 {
  "running" : true,
  "readOnly" : false,
  "shuttingDown" : false,
  "availableForHighPriorityWrites" : true
 }
 
 
  • Constructor Details

    • BookieStateService

      public BookieStateService(Bookie bookie)
  • Method Details

    • handle

      public org.apache.bookkeeper.http.service.HttpServiceResponse handle(org.apache.bookkeeper.http.service.HttpServiceRequest request) throws Exception
      Specified by:
      handle in interface org.apache.bookkeeper.http.service.HttpEndpointService
      Throws:
      Exception