ZKFCRpcServer@Private
@Evolving
public interface ZKFCProtocol
| Modifier and Type | Field | Description |
|---|---|---|
static long |
versionID |
Initial version of the protocol
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
cedeActive(int millisToCede) |
Request that this service yield from the active node election for the
specified time period.
|
void |
gracefulFailover() |
Request that this node try to become active through a graceful failover.
|
static final long versionID
void cedeActive(int millisToCede)
throws java.io.IOException,
AccessControlException
millisToCede - period for which the node should not attempt to
become activejava.io.IOException - if the operation failsAccessControlException - if the operation is disallowedvoid gracefulFailover()
throws java.io.IOException,
AccessControlException
ZKFailoverController.gracefulFailoverToYou() for the
implementation details.
If the node fails to successfully coordinate the failover, throws an
exception indicating the reason for failure.java.io.IOException - if graceful failover failsAccessControlException - if the operation is disallowedCopyright © 2008–2025 Apache Software Foundation. All rights reserved.