Class AutoRecoveryStatusService
- java.lang.Object
-
- org.apache.bookkeeper.server.http.service.AutoRecoveryStatusService
-
- All Implemented Interfaces:
org.apache.bookkeeper.http.service.HttpEndpointService
public class AutoRecoveryStatusService extends java.lang.Object implements org.apache.bookkeeper.http.service.HttpEndpointService
HttpEndpointService that handles Autorecovery status related http requests. The GET method returns the current status of Autorecovery. The output would be like {"enabled" : true}.The PUT method requires a parameter 'enabled', and enables Autorecovery if its value is 'true', and disables Autorecovery otherwise. The behaviour is idempotent if Autorecovery status is already the same as desired. The output would be the current status after the action.
-
-
Field Summary
Fields Modifier and Type Field Description protected ServerConfiguration
conf
-
Constructor Summary
Constructors Constructor Description AutoRecoveryStatusService(ServerConfiguration conf)
-
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)
-
-
-
Field Detail
-
conf
protected final ServerConfiguration conf
-
-
Constructor Detail
-
AutoRecoveryStatusService
public AutoRecoveryStatusService(ServerConfiguration conf)
-
-