Class BookieStateService

  • All Implemented Interfaces:
    org.apache.bookkeeper.http.service.HttpEndpointService

    public class BookieStateService
    extends java.lang.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
     }
     
     
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  BookieStateService.BookieState
      POJO definition for the bookie state response.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.apache.bookkeeper.http.service.HttpServiceResponse handle​(org.apache.bookkeeper.http.service.HttpServiceRequest request)  
      • Methods inherited from class java.lang.Object

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

      • BookieStateService

        public BookieStateService​(Bookie bookie)
    • Method Detail

      • handle

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