com.github.ltsopensource.jobtracker.domain
Class TaskTrackerNode

java.lang.Object
  extended by com.github.ltsopensource.jobtracker.domain.TaskTrackerNode

public class TaskTrackerNode
extends Object

TaskTracker状态对象


Field Summary
 AtomicInteger availableThread
           
 ChannelWrapper channel
           
 String identity
           
 String nodeGroup
           
 Long timestamp
           
 
Constructor Summary
TaskTrackerNode(String identity)
           
TaskTrackerNode(String nodeGroup, int availableThread, String identity, ChannelWrapper channel)
           
TaskTrackerNode(String identity, String nodeGroup)
           
 
Method Summary
 boolean equals(Object o)
           
 AtomicInteger getAvailableThread()
           
 ChannelWrapper getChannel()
           
 String getIdentity()
           
 String getNodeGroup()
           
 Long getTimestamp()
           
 int hashCode()
           
 void setAvailableThread(int availableThread)
           
 void setChannel(ChannelWrapper channel)
           
 void setIdentity(String identity)
           
 void setNodeGroup(String nodeGroup)
           
 void setTimestamp(Long timestamp)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

nodeGroup

public String nodeGroup

availableThread

public AtomicInteger availableThread

identity

public String identity

channel

public ChannelWrapper channel

timestamp

public Long timestamp
Constructor Detail

TaskTrackerNode

public TaskTrackerNode(String nodeGroup,
                       int availableThread,
                       String identity,
                       ChannelWrapper channel)

TaskTrackerNode

public TaskTrackerNode(String identity)

TaskTrackerNode

public TaskTrackerNode(String identity,
                       String nodeGroup)
Method Detail

getNodeGroup

public String getNodeGroup()

setNodeGroup

public void setNodeGroup(String nodeGroup)

getAvailableThread

public AtomicInteger getAvailableThread()

setAvailableThread

public void setAvailableThread(int availableThread)

getIdentity

public String getIdentity()

setIdentity

public void setIdentity(String identity)

getChannel

public ChannelWrapper getChannel()

setChannel

public void setChannel(ChannelWrapper channel)

getTimestamp

public Long getTimestamp()

setTimestamp

public void setTimestamp(Long timestamp)

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.