public class NodeWiseFailoverClusterPaths extends FailoverClusterPaths
NodeWiseFailoverStrategy
clusterPaths, 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, initialize
protected void initializeClusterPaths()
FailoverClusterPaths
initializeClusterPaths
in class FailoverClusterPaths
FailoverClusterPaths.initialize(ClusterPaths)
protected void createAllClusterPaths(org.apache.curator.framework.CuratorFramework client)
FailoverClusterPaths
createAllClusterPaths
in class FailoverClusterPaths
client
- the curator framework to be used for creationFailoverClusterPaths.createAll(CuratorFramework)
public void createAllEphemeralNodes(org.apache.curator.framework.CuratorFramework client)
FailoverClusterPaths
createAllEphemeralNodes
in class FailoverClusterPaths
client
- CuratorFramework
instancepublic void clearAllClusterPaths(org.apache.curator.framework.CuratorFramework client)
FailoverClusterPaths
clearAllClusterPaths
in class FailoverClusterPaths
client
- the curator framework to be used for clearingFailoverClusterPaths.clearAll(CuratorFramework)
public String getClusterLockZNodePathSuffix(String nodeName)
FailoverClusterPaths
getClusterLockZNodePathSuffix
in class FailoverClusterPaths
nodeName
- the name of the node, group etc.public String getStrategyName()
FailoverClusterPaths
getStrategyName
in class FailoverClusterPaths
public String getActiveNodesZNodePath()
public String getActingAsNodesZNodePath()
public String getRegisteredNodesZNodePath()
Copyright © 2016–2019 AdroitLogic. All rights reserved.