com.github.ltsopensource.jobtracker.channel
Class ChannelManager

java.lang.Object
  extended by com.github.ltsopensource.jobtracker.channel.ChannelManager

public class ChannelManager
extends Object

Author:
Robert HG (254963746@qq.com) on 7/24/14. 管理channel

Constructor Summary
ChannelManager()
           
 
Method Summary
 ChannelWrapper getChannel(String nodeGroup, com.github.ltsopensource.core.cluster.NodeType nodeType, String identity)
          根据 节点唯一编号得到 channel
 List<ChannelWrapper> getChannels(String nodeGroup, com.github.ltsopensource.core.cluster.NodeType nodeType)
           
 Long getOfflineTimestamp(String identity)
           
 void offerChannel(ChannelWrapper channel)
          添加channel
 void removeChannel(ChannelWrapper channel)
           
 void start()
           
 void stop()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ChannelManager

public ChannelManager()
Method Detail

start

public void start()

stop

public void stop()

getChannels

public List<ChannelWrapper> getChannels(String nodeGroup,
                                        com.github.ltsopensource.core.cluster.NodeType nodeType)

getChannel

public ChannelWrapper getChannel(String nodeGroup,
                                 com.github.ltsopensource.core.cluster.NodeType nodeType,
                                 String identity)
根据 节点唯一编号得到 channel


offerChannel

public void offerChannel(ChannelWrapper channel)
添加channel


getOfflineTimestamp

public Long getOfflineTimestamp(String identity)

removeChannel

public void removeChannel(ChannelWrapper channel)


Copyright © 2017. All rights reserved.