@InterfaceAudience.Public @InterfaceStability.Evolving public class HAServiceProtocolHelper extends Object
HAServiceProtocol
RPC calls. This helper
unwraps the RemoteException
to specific exceptions.Constructor and Description |
---|
HAServiceProtocolHelper() |
Modifier and Type | Method and Description |
---|---|
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) |
public static void monitorHealth(HAServiceProtocol svc, org.apache.hadoop.ha.HAServiceProtocol.StateChangeRequestInfo reqInfo) throws IOException
IOException
public static void transitionToActive(HAServiceProtocol svc, org.apache.hadoop.ha.HAServiceProtocol.StateChangeRequestInfo reqInfo) throws IOException
IOException
public static void transitionToStandby(HAServiceProtocol svc, org.apache.hadoop.ha.HAServiceProtocol.StateChangeRequestInfo reqInfo) throws IOException
IOException
Copyright © 2019 Apache Software Foundation. All rights reserved.