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 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 Details

  • Constructor Details

  • 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