@InterfaceAudience.LimitedPrivate(value="HDFS") @InterfaceStability.Evolving public class ZKFCRpcServer extends Object implements ZKFCProtocol
versionID
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.
|
InetSocketAddress |
getAddress() |
void |
gracefulFailover()
Request that this node try to become active through a graceful failover.
|
public InetSocketAddress getAddress()
public void cedeActive(int millisToCede) throws IOException, AccessControlException
ZKFCProtocol
cedeActive
in interface 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
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 ZKFCProtocol
IOException
- if graceful failover failsAccessControlException
- if the operation is disallowedCopyright © 2013 Apache Software Foundation. All rights reserved.