Class BookieStateReadOnlyService

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

public class BookieStateReadOnlyService extends 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.
  • Constructor Details

    • BookieStateReadOnlyService

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