@Component public class MasterRegistryClient extends Object
single instance
| 构造器和说明 |
|---|
MasterRegistryClient() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
closeRegistry() |
void |
deregister() |
void |
failoverMaster(String masterHost)
failover master
failover process instance and associated task instance
|
String |
getFailoverLockPath(NodeType nodeType,
String host)
get failover lock path
|
String |
getLocalAddress()
get local address
|
String |
getMasterPath()
get master path
|
void |
handleConnectionState(org.apache.dolphinscheduler.registry.api.ConnectionState state) |
void |
init() |
void |
registry()
registry
|
void |
removeMasterNodePath(String path,
NodeType nodeType,
boolean failover)
remove master node path
|
void |
removeWorkerNodePath(String path,
NodeType nodeType,
boolean failover)
remove worker node path
|
void |
setRegistryStoppable(IStoppable stoppable) |
void |
start() |
public void init()
public void start()
public void setRegistryStoppable(IStoppable stoppable)
public void closeRegistry()
public void removeMasterNodePath(String path, NodeType nodeType, boolean failover)
path - node pathnodeType - node typefailover - is failoverpublic void removeWorkerNodePath(String path, NodeType nodeType, boolean failover)
path - node pathnodeType - node typefailover - is failoverpublic String getFailoverLockPath(NodeType nodeType, String host)
nodeType - zookeeper node typepublic void failoverMaster(String masterHost)
failover process instance and associated task instance
masterHost - master hostpublic void registry()
public void handleConnectionState(org.apache.dolphinscheduler.registry.api.ConnectionState state)
public void deregister()
public String getMasterPath()
public String getLocalAddress()
Copyright © 2022 The Apache Software Foundation. All rights reserved.