@Service public class ServerNodeManager extends Object implements org.springframework.beans.factory.InitializingBean
| 构造器和说明 |
|---|
ServerNodeManager() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
afterPropertiesSet()
init listener
|
void |
destroy()
destroy
|
Set<String> |
getMasterNodes()
get master nodes
|
static int |
getMasterSize() |
static int |
getSlot() |
Map<String,Set<String>> |
getWorkerGroupNodes() |
Set<String> |
getWorkerGroupNodes(String workerGroup)
get worker group nodes
|
Map<String,String> |
getWorkerNodeInfo()
get worker node info
|
String |
getWorkerNodeInfo(String workerNode)
get worker node info
|
void |
load()
load nodes from zookeeper
|
public static int getSlot()
public static int getMasterSize()
public void afterPropertiesSet()
throws Exception
afterPropertiesSet 在接口中 org.springframework.beans.factory.InitializingBeanException - if error throws Exceptionpublic void load()
public Set<String> getWorkerGroupNodes(String workerGroup)
workerGroup - workerGrouppublic Map<String,String> getWorkerNodeInfo()
public String getWorkerNodeInfo(String workerNode)
workerNode - worker node@PreDestroy public void destroy()
Copyright © 2022 The Apache Software Foundation. All rights reserved.