org.apache.hadoop.ha
Class HAServiceProtocolHelper

java.lang.Object
  extended by 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.


Constructor Summary
HAServiceProtocolHelper()
           
 
Method Summary
static void monitorHealth(HAServiceProtocol svc, org.apache.hadoop.ha.HAServiceProtocol.StateChangeRequestInfo reqInfo)
           
static void transitionToActive(HAServiceProtocol svc, org.apache.hadoop.ha.HAServiceProtocol.StateChangeRequestInfo reqInfo)
           
static void transitionToStandby(HAServiceProtocol svc, org.apache.hadoop.ha.HAServiceProtocol.StateChangeRequestInfo reqInfo)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HAServiceProtocolHelper

public HAServiceProtocolHelper()
Method Detail

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.