|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
@InterfaceAudience.Public @InterfaceStability.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.
| Field Summary | |
|---|---|
static long |
versionID
Initial version of the protocol |
| Method Summary | |
|---|---|
org.apache.hadoop.ha.HAServiceStatus |
getServiceStatus()
Return the current status of the service. |
void |
monitorHealth()
Monitor the health of service. |
void |
transitionToActive(org.apache.hadoop.ha.HAServiceProtocol.StateChangeRequestInfo reqInfo)
Request service to transition to active state. |
void |
transitionToStandby(org.apache.hadoop.ha.HAServiceProtocol.StateChangeRequestInfo reqInfo)
Request service to transition to standby state. |
| Field Detail |
|---|
static final long versionID
| Method Detail |
|---|
void monitorHealth()
throws HealthCheckFailedException,
org.apache.hadoop.security.AccessControlException,
IOException
HealthCheckFailedException.
The definition of service not healthy is left to the service.
Note that when health check of an Active service fails,
failover to standby may be done.
HealthCheckFailedException - if the health check of a service fails.
org.apache.hadoop.security.AccessControlException - if access is denied.
IOException - if other errors happen
void transitionToActive(org.apache.hadoop.ha.HAServiceProtocol.StateChangeRequestInfo reqInfo)
throws ServiceFailedException,
org.apache.hadoop.security.AccessControlException,
IOException
ServiceFailedException - if transition from standby to active fails.
org.apache.hadoop.security.AccessControlException - if access is denied.
IOException - if other errors happen
void transitionToStandby(org.apache.hadoop.ha.HAServiceProtocol.StateChangeRequestInfo reqInfo)
throws ServiceFailedException,
org.apache.hadoop.security.AccessControlException,
IOException
ServiceFailedException - if transition from active to standby fails.
org.apache.hadoop.security.AccessControlException - if access is denied.
IOException - if other errors happen
org.apache.hadoop.ha.HAServiceStatus getServiceStatus()
throws org.apache.hadoop.security.AccessControlException,
IOException
HAServiceStatus
org.apache.hadoop.security.AccessControlException - if access is denied.
IOException - if other errors happen
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||