@InterfaceAudience.Private public class DFSZKFailoverController extends ZKFailoverController
conf, localTarget, rpcServer, USAGE, ZK_ACL_KEY, ZK_AUTH_KEY, ZK_QUORUM_KEY, ZKFC_CONF_KEYS| Modifier and Type | Method and Description |
|---|---|
protected void |
checkRpcAdminAccess() |
static DFSZKFailoverController |
create(Configuration conf) |
protected HAServiceTarget |
dataToTarget(byte[] data) |
protected PolicyProvider |
getPolicyProvider() |
protected InetSocketAddress |
getRpcAddressToBindTo() |
protected String |
getScopeInsideParentNode()
Return the name of a znode inside the configured parent znode in which
the ZKFC will do all of its work.
|
protected void |
initRPC() |
void |
loginAsFCUser() |
static void |
main(String[] args) |
protected byte[] |
targetToData(HAServiceTarget target) |
getLocalTarget, run, startRPCprotected HAServiceTarget dataToTarget(byte[] data)
dataToTarget in class ZKFailoverControllerprotected byte[] targetToData(HAServiceTarget target)
targetToData in class ZKFailoverControllerprotected InetSocketAddress getRpcAddressToBindTo()
getRpcAddressToBindTo in class ZKFailoverControllerprotected PolicyProvider getPolicyProvider()
getPolicyProvider in class ZKFailoverControllerpublic static DFSZKFailoverController create(Configuration conf)
protected void initRPC()
throws IOException
initRPC in class ZKFailoverControllerIOExceptionpublic void loginAsFCUser()
throws IOException
loginAsFCUser in class ZKFailoverControllerIOExceptionprotected String getScopeInsideParentNode()
ZKFailoverControllergetScopeInsideParentNode in class ZKFailoverControllerprotected void checkRpcAdminAccess()
throws IOException,
AccessControlException
checkRpcAdminAccess in class ZKFailoverControllerIOExceptionAccessControlExceptionCopyright © 2013 Apache Software Foundation. All rights reserved.