@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,
HAServiceProtocol.StateChangeRequestInfo reqInfo) |
static void |
transitionToActive(HAServiceProtocol svc,
HAServiceProtocol.StateChangeRequestInfo reqInfo) |
static void |
transitionToStandby(HAServiceProtocol svc,
HAServiceProtocol.StateChangeRequestInfo reqInfo) |
public static void monitorHealth(HAServiceProtocol svc, HAServiceProtocol.StateChangeRequestInfo reqInfo) throws IOException
IOException
public static void transitionToActive(HAServiceProtocol svc, HAServiceProtocol.StateChangeRequestInfo reqInfo) throws IOException
IOException
public static void transitionToStandby(HAServiceProtocol svc, HAServiceProtocol.StateChangeRequestInfo reqInfo) throws IOException
IOException
Copyright © 2017 Apache Software Foundation. All Rights Reserved.