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 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.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
BookieStateReadOnlyService.ReadOnlyState
The object represent the readOnly state.
-
Constructor Summary
Constructors Constructor Description BookieStateReadOnlyService(Bookie bookie)
-
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)
-
-
-
Constructor Detail
-
BookieStateReadOnlyService
public BookieStateReadOnlyService(Bookie bookie)
-
-