@InterfaceAudience.Private @InterfaceStability.Evolving public interface ZKFCProtocol
| Modifier and Type | Field and Description |
|---|---|
static long |
versionID
Initial version of the protocol
|
| 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 |
gracefulFailover()
Request that this node try to become active through a graceful failover.
|
static final long versionID
void cedeActive(int millisToCede)
throws IOException,
AccessControlException
millisToCede - period for which the node should not attempt to
become activeIOException - if the operation failsAccessControlException - if the operation is disallowedvoid gracefulFailover()
throws 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.IOException - if graceful failover failsAccessControlException - if the operation is disallowedCopyright © 2013 Apache Software Foundation. All rights reserved.