org.apache.hadoop.ha
Class HAServiceProtocolHelper
java.lang.Object
org.apache.hadoop.ha.HAServiceProtocolHelper
@InterfaceAudience.Public
@InterfaceStability.Evolving
public class HAServiceProtocolHelper
- extends Object
Helper for making HAServiceProtocol
RPC calls. This helper
unwraps the RemoteException
to specific exceptions.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HAServiceProtocolHelper
public HAServiceProtocolHelper()
monitorHealth
public static void monitorHealth(HAServiceProtocol svc,
org.apache.hadoop.ha.HAServiceProtocol.StateChangeRequestInfo reqInfo)
throws IOException
- Throws:
IOException
transitionToActive
public static void transitionToActive(HAServiceProtocol svc,
org.apache.hadoop.ha.HAServiceProtocol.StateChangeRequestInfo reqInfo)
throws IOException
- Throws:
IOException
transitionToStandby
public static void transitionToStandby(HAServiceProtocol svc,
org.apache.hadoop.ha.HAServiceProtocol.StateChangeRequestInfo reqInfo)
throws IOException
- Throws:
IOException
Copyright © 2014 Apache Software Foundation. All Rights Reserved.