com.github.ltsopensource.jobtracker.channel
Class ChannelWrapper

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

public class ChannelWrapper
extends Object

Author:
Robert HG (254963746@qq.com) on 7/24/14. 对channel的包装

Constructor Summary
ChannelWrapper(com.github.ltsopensource.remoting.Channel channel, com.github.ltsopensource.core.cluster.NodeType nodeType, String nodeGroup, String identity)
           
 
Method Summary
 boolean equals(Object o)
           
 com.github.ltsopensource.remoting.Channel getChannel()
           
 String getIdentity()
           
 String getNodeGroup()
           
 com.github.ltsopensource.core.cluster.NodeType getNodeType()
           
 int hashCode()
           
 boolean isClosed()
           
 boolean isOpen()
           
 void setChannel(com.github.ltsopensource.remoting.Channel channel)
           
 void setIdentity(String identity)
           
 void setNodeGroup(String nodeGroup)
           
 void setNodeType(com.github.ltsopensource.core.cluster.NodeType nodeType)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ChannelWrapper

public ChannelWrapper(com.github.ltsopensource.remoting.Channel channel,
                      com.github.ltsopensource.core.cluster.NodeType nodeType,
                      String nodeGroup,
                      String identity)
Method Detail

getChannel

public com.github.ltsopensource.remoting.Channel getChannel()

setChannel

public void setChannel(com.github.ltsopensource.remoting.Channel channel)

getNodeType

public com.github.ltsopensource.core.cluster.NodeType getNodeType()

setNodeType

public void setNodeType(com.github.ltsopensource.core.cluster.NodeType nodeType)

getNodeGroup

public String getNodeGroup()

setNodeGroup

public void setNodeGroup(String nodeGroup)

getIdentity

public String getIdentity()

setIdentity

public void setIdentity(String identity)

isOpen

public boolean isOpen()

isClosed

public boolean isClosed()

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2017. All rights reserved.