HAServiceStatus (Apache Hadoop Common 3.5.0 API)
Description: declaration: package: org.apache.hadoop.ha, class: HAServiceStatus

Package org.apache.hadoop.ha

# Class HAServiceStatus

java.lang.Object
org.apache.hadoop.ha.HAServiceStatus

@Private public class HAServiceStatus extends Object

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `HAServiceStatus(HAServiceProtocol.HAServiceState state)`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `String`
  `getNotReadyReason()`
  `HAServiceProtocol.HAServiceState`
  `getState()`
  `boolean`
  `isReadyToBecomeActive()`
  `HAServiceStatus`
  `setNotReadyToBecomeActive(String reason)`
  `HAServiceStatus`
  `setReadyToBecomeActive()`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### HAServiceStatus

    public HAServiceStatus(HAServiceProtocol.HAServiceState state)

- ## Method Details

  - ### getState

    public HAServiceProtocol.HAServiceState getState()

  - ### setReadyToBecomeActive

    public HAServiceStatus setReadyToBecomeActive()

  - ### setNotReadyToBecomeActive

    public HAServiceStatus setNotReadyToBecomeActive(String reason)

  - ### isReadyToBecomeActive

    public boolean isReadyToBecomeActive()

  - ### getNotReadyReason

    public String getNotReadyReason()