Package org.apache.hadoop.ha
Class HAServiceProtocolHelper
java.lang.Object
org.apache.hadoop.ha.HAServiceProtocolHelper
Helper for making
HAServiceProtocol RPC calls. This helper
unwraps the RemoteException to specific exceptions.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidstatic voidstatic voidstatic void
-
Constructor Details
-
HAServiceProtocolHelper
public HAServiceProtocolHelper()
-
-
Method Details
-
monitorHealth
public static void monitorHealth(HAServiceProtocol svc, HAServiceProtocol.StateChangeRequestInfo reqInfo) throws IOException - Throws:
IOException
-
transitionToActive
public static void transitionToActive(HAServiceProtocol svc, HAServiceProtocol.StateChangeRequestInfo reqInfo) throws IOException - Throws:
IOException
-
transitionToStandby
public static void transitionToStandby(HAServiceProtocol svc, HAServiceProtocol.StateChangeRequestInfo reqInfo) throws IOException - Throws:
IOException
-
transitionToObserver
public static void transitionToObserver(HAServiceProtocol svc, HAServiceProtocol.StateChangeRequestInfo reqInfo) throws IOException - Throws:
IOException
-