com.nhncorp.neptune.tabletserver
Class TabletServerInfo
java.lang.Object
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>
| Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
TabletServerInfo
public TabletServerInfo()
TabletServerInfo
public TabletServerInfo(java.lang.String hostName)
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>