Interface HAServiceProtocol


@Public @Evolving public interface HAServiceProtocol
Protocol interface that provides High Availability related primitives to monitor and fail-over the service. This interface could be used by HA frameworks to manage the service.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static enum 
    An HA service may be in active or standby state.
    static enum 
     
    static class 
    org.apache.hadoop.ha.HAServiceProtocol.StateChangeRequestInfo
    Information describing the source for a request to change state.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final long
    Initial version of the protocol
  • Method Summary

    Modifier and Type
    Method
    Description
    org.apache.hadoop.ha.HAServiceStatus
    Return the current status of the service.
    void
    Monitor the health of service.
    void
    transitionToActive(org.apache.hadoop.ha.HAServiceProtocol.StateChangeRequestInfo reqInfo)
    Request service to transition to active state.
    void
    transitionToObserver(org.apache.hadoop.ha.HAServiceProtocol.StateChangeRequestInfo reqInfo)
    Request service to transition to observer state.
    void
    transitionToStandby(org.apache.hadoop.ha.HAServiceProtocol.StateChangeRequestInfo reqInfo)
    Request service to transition to standby state.