@InterfaceAudience.Public @InterfaceStability.Evolving public interface HAServiceProtocol
| 修飾子とタイプ | フィールドと説明 | 
|---|---|
| static long | versionIDInitial version of the protocol | 
| 修飾子とタイプ | メソッドと説明 | 
|---|---|
| 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. | 
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 happenvoid 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 happenvoid 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 happenorg.apache.hadoop.ha.HAServiceStatus getServiceStatus() throws org.apache.hadoop.security.AccessControlException, IOException
org.apache.hadoop.security.AccessControlException - if access is denied.IOException - if other errors happenHAServiceStatusCopyright © 2016 Apache Software Foundation. All rights reserved.