@LimitedPrivate("HDFS")
public abstract class ZKFailoverController
extends java.lang.Object
| Modifier and Type | Field | Description |
|---|---|---|
protected Configuration |
conf |
|
protected HAServiceTarget |
localTarget |
|
protected ZKFCRpcServer |
rpcServer |
|
protected static java.lang.String |
USAGE |
|
static java.lang.String |
ZK_ACL_KEY |
|
static java.lang.String |
ZK_AUTH_KEY |
|
static java.lang.String |
ZK_QUORUM_KEY |
|
protected static java.lang.String[] |
ZKFC_CONF_KEYS |
All of the conf keys used by the ZKFC.
|
| Modifier | Constructor | Description |
|---|---|---|
protected |
ZKFailoverController(Configuration conf,
HAServiceTarget localTarget) |
| Modifier and Type | Method | Description |
|---|---|---|
protected abstract void |
checkRpcAdminAccess() |
|
protected abstract HAServiceTarget |
dataToTarget(byte[] data) |
|
protected abstract java.util.List<HAServiceTarget> |
getAllOtherNodes() |
|
ActiveStandbyElector |
getElectorForTests() |
|
protected HealthMonitor.State |
getLastHealthState() |
|
HAServiceTarget |
getLocalTarget() |
|
protected abstract PolicyProvider |
getPolicyProvider() |
|
protected abstract java.net.InetSocketAddress |
getRpcAddressToBindTo() |
|
protected abstract java.lang.String |
getScopeInsideParentNode() |
Return the name of a znode inside the configured parent znode in which
the ZKFC will do all of its work.
|
HAServiceProtocol.HAServiceState |
getServiceState() |
|
protected void |
initRPC() |
|
protected abstract boolean |
isSSLEnabled() |
|
protected abstract void |
loginAsFCUser() |
|
int |
run(java.lang.String[] args) |
|
protected void |
setLastHealthState(HealthMonitor.State newState) |
|
protected void |
startRPC() |
|
protected abstract byte[] |
targetToData(HAServiceTarget target) |
public static final java.lang.String ZK_QUORUM_KEY
public static final java.lang.String ZK_ACL_KEY
public static final java.lang.String ZK_AUTH_KEY
protected static final java.lang.String[] ZKFC_CONF_KEYS
protected static final java.lang.String USAGE
protected Configuration conf
protected final HAServiceTarget localTarget
protected ZKFCRpcServer rpcServer
protected ZKFailoverController(Configuration conf, HAServiceTarget localTarget)
protected abstract byte[] targetToData(HAServiceTarget target)
protected abstract HAServiceTarget dataToTarget(byte[] data)
protected abstract void loginAsFCUser()
throws java.io.IOException
java.io.IOExceptionprotected abstract void checkRpcAdminAccess()
throws AccessControlException,
java.io.IOException
AccessControlExceptionjava.io.IOExceptionprotected abstract java.net.InetSocketAddress getRpcAddressToBindTo()
protected abstract PolicyProvider getPolicyProvider()
protected abstract java.util.List<HAServiceTarget> getAllOtherNodes()
protected abstract boolean isSSLEnabled()
protected abstract java.lang.String getScopeInsideParentNode()
public HAServiceTarget getLocalTarget()
@VisibleForTesting public HAServiceProtocol.HAServiceState getServiceState()
public int run(java.lang.String[] args)
throws java.lang.Exception
java.lang.Exceptionprotected void initRPC()
throws java.io.IOException
java.io.IOExceptionprotected void startRPC()
throws java.io.IOException
java.io.IOExceptionprotected HealthMonitor.State getLastHealthState()
protected void setLastHealthState(HealthMonitor.State newState)
@VisibleForTesting public ActiveStandbyElector getElectorForTests()
Copyright © 2008–2025 Apache Software Foundation. All rights reserved.