Package | Description |
---|---|
com.lts.job.common.cluster | |
com.lts.job.common.listener | |
com.lts.job.common.registry | |
com.lts.job.common.remoting |
Modifier and Type | Class and Description |
---|---|
class |
AbstractClientNode<T extends Node> |
class |
AbstractJobNode<T extends Node> |
class |
AbstractServerNode<T extends Node> |
Modifier and Type | Field and Description |
---|---|
protected T |
AbstractJobNode.node |
Modifier and Type | Method and Description |
---|---|
static <T extends Node> |
NodeFactory.create(Class<T> clazz) |
static <T extends Node> |
NodeFactory.create(Class<T> clazz,
JobNodeConfig config) |
Modifier and Type | Method and Description |
---|---|
static Node |
MasterElector.getMaster() |
static Node |
PathUtils.parse(String fullPath) |
Modifier and Type | Method and Description |
---|---|
static List<Node> |
NodeManager.getNodeList(NodeType nodeType) |
Modifier and Type | Method and Description |
---|---|
static void |
NodeManager.addNode(Node node) |
static void |
MasterElector.addNode(Node newNode) |
static String |
PathUtils.getPath(Node node) |
static void |
NodeManager.removeNode(Node node) |
static void |
MasterElector.removeNode(Node removedNode) |
Modifier and Type | Method and Description |
---|---|
static void |
MasterElector.addNodes(List<Node> nodes) |
Modifier and Type | Method and Description |
---|---|
void |
NodeChangeListener.addNode(Node node)
添加节点
|
void |
MasterNodeElectionListener.addNode(Node node) |
void |
MasterNodeChangeListener.change(Node master,
boolean isMaster)
master 为 master节点
isMaster 表示当前节点是不是master节点
|
void |
NodeChangeListener.removeNode(Node node)
删除节点
|
void |
MasterNodeElectionListener.removeNode(Node node) |
Modifier and Type | Method and Description |
---|---|
void |
NodeChangeListener.addNodes(List<Node> nodes)
批量添加节点
|
void |
MasterNodeElectionListener.addNodes(List<Node> nodes) |
Modifier and Type | Method and Description |
---|---|
protected void |
NodeRegistry.doSubscribe(Node node) |
protected void |
NodeRegistry.doUnSubscribe(Node node) |
void |
Registry.register(Node node)
节点注册
|
void |
NodeRegistry.register(Node node) |
void |
Registry.unregister(Node node)
节点 取消注册
|
void |
NodeRegistry.unregister(Node node) |
Modifier and Type | Method and Description |
---|---|
Node |
RemotingClientDelegate.getStickyJobTrackerNode() |
Copyright © 2014. All Rights Reserved.