public class NodeWiseFailoverClusterPaths extends FailoverClusterPaths
NodeWiseFailoverStrategyclusterPaths, failoverZNodePath, failoverZNodeRoot, strategiesZNodePath, strategiesZNodeRoot, strategyZNodePath, strategyZNodeRoot| Constructor and Description |
|---|
NodeWiseFailoverClusterPaths() |
| Modifier and Type | Method and Description |
|---|---|
void |
clearAllClusterPaths(org.apache.curator.framework.CuratorFramework client)
Clears all cluster paths
|
protected void |
createAllClusterPaths(org.apache.curator.framework.CuratorFramework client)
Creates all cluster paths
|
void |
createAllEphemeralNodes(org.apache.curator.framework.CuratorFramework client)
This method will be called whenever a connection reconnection happens.
|
String |
getActingAsNodesZNodePath() |
String |
getActingAsNodeZNodePath(String nodeName) |
String |
getActiveNodesZNodePath() |
String |
getClusterLockZNodePathSuffix(String nodeName)
Get the path, on which a cluster lock to be taken whenever a distributed lock has to be acquired to start failover.
|
String |
getNodeActiveZNodePath(String nodeName) |
String |
getRegisteredNodesZNodePath() |
String |
getStrategyName()
Get the name of the strategy to which this cluster path pattern is binded to
|
protected void |
initializeClusterPaths()
Initializes the cluster paths
|
clearAll, createAll, getClusterPaths, getFailoverZNodePath, getFailoverZNodeRoot, getStrategiesZNodePath, getStrategiesZNodeRoot, getStrategyZNodePath, getStrategyZNodeRoot, initializeprotected void initializeClusterPaths()
FailoverClusterPathsinitializeClusterPaths in class FailoverClusterPathsFailoverClusterPaths.initialize(ClusterPaths)protected void createAllClusterPaths(org.apache.curator.framework.CuratorFramework client)
FailoverClusterPathscreateAllClusterPaths in class FailoverClusterPathsclient - the curator framework to be used for creationFailoverClusterPaths.createAll(CuratorFramework)public void createAllEphemeralNodes(org.apache.curator.framework.CuratorFramework client)
FailoverClusterPathscreateAllEphemeralNodes in class FailoverClusterPathsclient - CuratorFramework instancepublic void clearAllClusterPaths(org.apache.curator.framework.CuratorFramework client)
FailoverClusterPathsclearAllClusterPaths in class FailoverClusterPathsclient - the curator framework to be used for clearingFailoverClusterPaths.clearAll(CuratorFramework)public String getClusterLockZNodePathSuffix(String nodeName)
FailoverClusterPathsgetClusterLockZNodePathSuffix in class FailoverClusterPathsnodeName - the name of the node, group etc.public String getStrategyName()
FailoverClusterPathsgetStrategyName in class FailoverClusterPathspublic String getActiveNodesZNodePath()
public String getActingAsNodesZNodePath()
public String getRegisteredNodesZNodePath()
Copyright © 2016–2019 AdroitLogic. All rights reserved.