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.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classThe object represent the readOnly state. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.bookkeeper.http.service.HttpServiceResponsehandle(org.apache.bookkeeper.http.service.HttpServiceRequest request)
-
Constructor Details
-
BookieStateReadOnlyService
-
-
Method Details