com.nhncorp.neptune.tabletserver
Class TabletServerInfo

java.lang.Object
  extended by com.nhncorp.neptune.tabletserver.TabletServerInfo
All Implemented Interfaces:
NWritable, java.lang.Comparable<TabletServerInfo>

public class TabletServerInfo
extends java.lang.Object
implements NWritable, java.lang.Comparable<TabletServerInfo>


Nested Class Summary
static class TabletServerInfo.TabletServerInfoComparator
           
 
Constructor Summary
TabletServerInfo()
           
TabletServerInfo(java.lang.String hostName)
           
 
Method Summary
 void addNumOfTablets()
           
 int compareTo(TabletServerInfo o)
           
 boolean equals(java.lang.Object obj)
           
 java.lang.String getHostName()
           
 long getLastHeartbeatTime()
           
 int getNumOfTablets()
           
 int hashCode()
           
 void readFields(java.io.DataInput in)
          Reads the fields of this object from in.
 void setLastHeartbeatTime(long lastHeartbeatTime)
           
 void setNumOfTablets(int numOfTablets)
           
 void subtractNumOfTablets()
           
 java.lang.String toString()
           
 void write(java.io.DataOutput out)
          Writes the fields of this object to out.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TabletServerInfo

public TabletServerInfo()

TabletServerInfo

public TabletServerInfo(java.lang.String hostName)
Method Detail

getLastHeartbeatTime

public long getLastHeartbeatTime()

setLastHeartbeatTime

public void setLastHeartbeatTime(long lastHeartbeatTime)

getHostName

public java.lang.String getHostName()

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

readFields

public void readFields(java.io.DataInput in)
                throws java.io.IOException
Description copied from interface: NWritable
Reads the fields of this object from in. For efficiency, implementations should attempt to re-use storage in the existing object where possible.

Specified by:
readFields in interface NWritable
Throws:
java.io.IOException

write

public void write(java.io.DataOutput out)
           throws java.io.IOException
Description copied from interface: NWritable
Writes the fields of this object to out.

Specified by:
write in interface NWritable
Throws:
java.io.IOException

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getNumOfTablets

public int getNumOfTablets()

setNumOfTablets

public void setNumOfTablets(int numOfTablets)

addNumOfTablets

public void addNumOfTablets()

subtractNumOfTablets

public void subtractNumOfTablets()

compareTo

public int compareTo(TabletServerInfo o)
Specified by:
compareTo in interface java.lang.Comparable<TabletServerInfo>