com.github.ltsopensource.jobtracker.channel
Class ChannelWrapper
java.lang.Object
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)
|
ChannelWrapper
public ChannelWrapper(com.github.ltsopensource.remoting.Channel channel,
com.github.ltsopensource.core.cluster.NodeType nodeType,
String nodeGroup,
String identity)
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.