public class ZKFCProtocolClientSideTranslatorPB extends Object implements org.apache.hadoop.ha.ZKFCProtocol, Closeable, org.apache.hadoop.ipc.ProtocolTranslator
| Constructor and Description |
|---|
ZKFCProtocolClientSideTranslatorPB(InetSocketAddress addr,
Configuration conf,
SocketFactory socketFactory,
int timeout) |
| Modifier and Type | Method and Description |
|---|---|
void |
cedeActive(int millisToCede)
Request that this service yield from the active node election for the
specified time period.
|
void |
close() |
Object |
getUnderlyingProxyObject()
Return the proxy object underlying this protocol translator.
|
void |
gracefulFailover()
Request that this node try to become active through a graceful failover.
|
public ZKFCProtocolClientSideTranslatorPB(InetSocketAddress addr, Configuration conf, SocketFactory socketFactory, int timeout) throws IOException
IOExceptionpublic void cedeActive(int millisToCede)
throws IOException,
AccessControlException
org.apache.hadoop.ha.ZKFCProtocolcedeActive in interface org.apache.hadoop.ha.ZKFCProtocolmillisToCede - period for which the node should not attempt to
become activeIOException - if the operation failsAccessControlException - if the operation is disallowedpublic void gracefulFailover()
throws IOException,
AccessControlException
org.apache.hadoop.ha.ZKFCProtocolZKFailoverController.gracefulFailoverToYou() for the
implementation details.
If the node fails to successfully coordinate the failover, throws an
exception indicating the reason for failure.gracefulFailover in interface org.apache.hadoop.ha.ZKFCProtocolIOException - if graceful failover failsAccessControlException - if the operation is disallowedpublic void close()
close in interface Closeableclose in interface AutoCloseablepublic Object getUnderlyingProxyObject()
org.apache.hadoop.ipc.ProtocolTranslatorgetUnderlyingProxyObject in interface org.apache.hadoop.ipc.ProtocolTranslatorCopyright © 2019 Apache Software Foundation. All Rights Reserved.