com.nhncorp.neptune.tablet
Class TabletReport

java.lang.Object
  extended by com.nhncorp.neptune.tablet.TabletReport
All Implemented Interfaces:
NWritable

public class TabletReport
extends java.lang.Object
implements NWritable

Tablet의 상태 정보(ValueObject)

Author:
김형준

Constructor Summary
TabletReport()
           
 
Method Summary
 long[] getColumnIndexSize()
           
 int[] getColumnMapFileCount()
           
 int[] getColumnMapFileSize()
           
 int[] getMemoryTabletDataCount()
           
 int getMemoryTabletSize()
           
 java.lang.String[] getRunningActions()
           
 long getServerFreeMemory()
           
 long getServerMaxMemory()
           
 long getServerTotalMemory()
           
 TabletInfo getTabletInfo()
           
 java.lang.String[] getWaitingActions()
           
 void print()
           
 void print(java.io.Writer writer)
           
 void readFields(java.io.DataInput in)
          Reads the fields of this object from in.
 void setColumnIndexSize(long[] columnIndexSize)
           
 void setColumnMapFileCount(int[] columnMapFileCount)
           
 void setColumnMapFileSize(int[] columnMapFileSize)
           
 void setMemoryTabletDataCount(int[] memoryTabletDataCount)
           
 void setMemoryTabletSize(int memoryTabletSize)
           
 void setRunningActions(java.lang.String[] runningActions)
           
 void setServerFreeMemory(long serverFreeMemory)
           
 void setServerMaxMemory(long serverMaxMemory)
           
 void setServerTotalMemory(long serverTotalMemory)
           
 void setTabletInfo(TabletInfo tabletInfo)
           
 void setWaitingActions(java.lang.String[] waitingActions)
           
 long sumMapFileIndexSize()
           
 long sumMapFileSize()
           
 void write(java.io.DataOutput out)
          Writes the fields of this object to out.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TabletReport

public TabletReport()
Method Detail

getServerFreeMemory

public long getServerFreeMemory()
Returns:
the serverFreeMemory

getColumnIndexSize

public long[] getColumnIndexSize()

setColumnIndexSize

public void setColumnIndexSize(long[] columnIndexSize)

setServerFreeMemory

public void setServerFreeMemory(long serverFreeMemory)
Parameters:
serverFreeMemory - the serverFreeMemory to set

getServerMaxMemory

public long getServerMaxMemory()
Returns:
the serverMaxMemory

setServerMaxMemory

public void setServerMaxMemory(long serverMaxMemory)
Parameters:
serverMaxMemory - the serverMaxMemory to set

getMemoryTabletDataCount

public int[] getMemoryTabletDataCount()
Returns:
the memoryTabletDataCount

setMemoryTabletDataCount

public void setMemoryTabletDataCount(int[] memoryTabletDataCount)
Parameters:
memoryTabletDataCount - the memoryTabletDataCount to set

getMemoryTabletSize

public int getMemoryTabletSize()
Returns:
the memoryTabletSize

getColumnMapFileCount

public int[] getColumnMapFileCount()
Returns:
the columnMapFileCount

setColumnMapFileCount

public void setColumnMapFileCount(int[] columnMapFileCount)
Parameters:
columnMapFileCount - the columnMapFileCount to set

getColumnMapFileSize

public int[] getColumnMapFileSize()
Returns:
the columnMapFileSize

setColumnMapFileSize

public void setColumnMapFileSize(int[] columnMapFileSize)
Parameters:
columnMapFileSize - the columnMapFileSize to set

getRunningActions

public java.lang.String[] getRunningActions()
Returns:
the runningActions

setRunningActions

public void setRunningActions(java.lang.String[] runningActions)
Parameters:
runningActions - the runningActions to set

getTabletInfo

public TabletInfo getTabletInfo()
Returns:
the tabletInfo

setTabletInfo

public void setTabletInfo(TabletInfo tabletInfo)
Parameters:
tabletInfo - the tabletInfo to set

getWaitingActions

public java.lang.String[] getWaitingActions()
Returns:
the waitingActions

setWaitingActions

public void setWaitingActions(java.lang.String[] waitingActions)
Parameters:
waitingActions - the waitingActions to set

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

setMemoryTabletSize

public void setMemoryTabletSize(int memoryTabletSize)
Parameters:
memoryTabletSize - the memoryTabletSize to set

print

public void print()

print

public void print(java.io.Writer writer)
           throws java.io.IOException
Throws:
java.io.IOException

getServerTotalMemory

public long getServerTotalMemory()
Returns:
the serverTotalMemory

setServerTotalMemory

public void setServerTotalMemory(long serverTotalMemory)
Parameters:
serverTotalMemory - the serverTotalMemory to set

sumMapFileSize

public long sumMapFileSize()

sumMapFileIndexSize

public long sumMapFileIndexSize()