ZKFCProtocol@LimitedPrivate("HDFS")
@Evolving
public class ZKFCRpcServer
extends java.lang.Object
implements ZKFCProtocol
versionID| Modifier and Type | Method | Description |
|---|---|---|
void |
cedeActive(int millisToCede) |
Request that this service yield from the active node election for the
specified time period.
|
java.net.InetSocketAddress |
getAddress() |
|
void |
gracefulFailover() |
Request that this node try to become active through a graceful failover.
|
public java.net.InetSocketAddress getAddress()
public void cedeActive(int millisToCede)
throws java.io.IOException,
AccessControlException
ZKFCProtocolcedeActive in interface ZKFCProtocolmillisToCede - period for which the node should not attempt to
become activejava.io.IOException - if the operation failsAccessControlException - if the operation is disallowedpublic void gracefulFailover()
throws java.io.IOException,
AccessControlException
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 ZKFCProtocoljava.io.IOException - if graceful failover failsAccessControlException - if the operation is disallowedCopyright © 2008–2025 Apache Software Foundation. All rights reserved.