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
IOException
public void cedeActive(int millisToCede) throws IOException, AccessControlException
org.apache.hadoop.ha.ZKFCProtocol
cedeActive
in interface org.apache.hadoop.ha.ZKFCProtocol
millisToCede
- 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.ZKFCProtocol
ZKFailoverController.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.ZKFCProtocol
IOException
- if graceful failover failsAccessControlException
- if the operation is disallowedpublic void close()
close
in interface Closeable
close
in interface AutoCloseable
public Object getUnderlyingProxyObject()
org.apache.hadoop.ipc.ProtocolTranslator
getUnderlyingProxyObject
in interface org.apache.hadoop.ipc.ProtocolTranslator
Copyright © 2017 Apache Software Foundation. All Rights Reserved.