Class BookieStateReadOnlyService

  • All Implemented Interfaces:

    public class BookieStateReadOnlyService
    extends java.lang.Object
    implements org.apache.bookkeeper.http.service.HttpEndpointService
    HttpEndpointService that handles readOnly state related http requests. The GET method will get the current readOnly state of the bookie. The PUT method will change the current readOnly state of the bookie if the desired state is different from the current. The request body could be {"readOnly":true/false}. The current or the updated state will be included in the 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

      • BookieStateReadOnlyService

        public BookieStateReadOnlyService​(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