public class ChannelManager extends Object
Modifier and Type | Method and Description |
---|---|
static ChannelWrapper |
getChannel(String nodeGroup,
com.lts.job.common.cluster.NodeType nodeType,
String identity)
根据 节点唯一编号得到 channel
|
static List<ChannelWrapper> |
getChannels(String nodeGroup,
com.lts.job.common.cluster.NodeType nodeType) |
static void |
offerChannel(ChannelWrapper channel)
添加channel
|
static void |
removeChannel(ChannelWrapper channel) |
public static List<ChannelWrapper> getChannels(String nodeGroup, com.lts.job.common.cluster.NodeType nodeType)
public static ChannelWrapper getChannel(String nodeGroup, com.lts.job.common.cluster.NodeType nodeType, String identity)
nodeGroup
- nodeType
- identity
- public static void offerChannel(ChannelWrapper channel)
channel
- public static void removeChannel(ChannelWrapper channel)
Copyright © 2014. All Rights Reserved.