org.apache.cassandra.db
Interface ColumnFamilyStoreMBean

All Known Implementing Classes:
ColumnFamilyStore

public interface ColumnFamilyStoreMBean

The MBean interface for ColumnFamilyStore


Method Summary
 java.lang.Object forceFlush()
          Triggers an immediate memtable flush.
 void forceMajorCompaction()
          force a major compaction of this column family
 java.lang.String getColumnFamilyName()
           
 long getLiveDiskSpaceUsed()
           
 int getLiveSSTableCount()
           
 long getMaxRowCompactedSize()
          return the size of the largest compacted row
 long getMeanRowCompactedSize()
          return the mean size of the rows compacted
 int getMemtableColumnsCount()
          Returns the total number of columns present in the memtable.
 int getMemtableDataSize()
          Returns the total amount of data stored in the memtable, including column related overhead.
 int getMemtableSwitchCount()
          Returns the number of times that a flush has resulted in the memtable being switched out.
 long getMinRowCompactedSize()
          return the size of the smallest compacted row
 int getPendingTasks()
           
 long getReadCount()
           
 double getRecentReadLatencyMicros()
           
 double getRecentWriteLatencyMicros()
           
 long getTotalDiskSpaceUsed()
           
 long getTotalReadLatencyMicros()
           
 long getTotalWriteLatencyMicros()
           
 long getWriteCount()
           
 void invalidateRowCache()
          invalidate the row cache; for use after bulk loading via BinaryMemtable
 

Method Detail

getColumnFamilyName

java.lang.String getColumnFamilyName()
Returns:
the name of the column family

getMemtableDataSize

int getMemtableDataSize()
Returns the total amount of data stored in the memtable, including column related overhead.

Returns:
The size in bytes.

getMemtableColumnsCount

int getMemtableColumnsCount()
Returns the total number of columns present in the memtable.

Returns:
The number of columns.

getMemtableSwitchCount

int getMemtableSwitchCount()
Returns the number of times that a flush has resulted in the memtable being switched out.

Returns:
the number of memtable switches

forceFlush

java.lang.Object forceFlush()
                            throws java.io.IOException
Triggers an immediate memtable flush.

Throws:
java.io.IOException

getReadCount

long getReadCount()
Returns:
the number of read operations on this column family

getTotalReadLatencyMicros

long getTotalReadLatencyMicros()
Returns:
total read latency (divide by getReadCount() for average)

getRecentReadLatencyMicros

double getRecentReadLatencyMicros()
Returns:
average latency per read operation since the last call

getWriteCount

long getWriteCount()
Returns:
the number of write operations on this column family

getTotalWriteLatencyMicros

long getTotalWriteLatencyMicros()
Returns:
total write latency (divide by getReadCount() for average)

getRecentWriteLatencyMicros

double getRecentWriteLatencyMicros()
Returns:
average latency per write operation since the last call

getPendingTasks

int getPendingTasks()
Returns:
the estimated number of tasks pending for this column family

getLiveSSTableCount

int getLiveSSTableCount()
Returns:
the number of SSTables on disk for this CF

getLiveDiskSpaceUsed

long getLiveDiskSpaceUsed()
Returns:
disk space used by SSTables belonging to this CF

getTotalDiskSpaceUsed

long getTotalDiskSpaceUsed()
Returns:
total disk space used by SSTables belonging to this CF, including obsolete ones waiting to be GC'd

forceMajorCompaction

void forceMajorCompaction()
force a major compaction of this column family


invalidateRowCache

void invalidateRowCache()
invalidate the row cache; for use after bulk loading via BinaryMemtable


getMinRowCompactedSize

long getMinRowCompactedSize()
return the size of the smallest compacted row

Returns:

getMaxRowCompactedSize

long getMaxRowCompactedSize()
return the size of the largest compacted row

Returns:

getMeanRowCompactedSize

long getMeanRowCompactedSize()
return the mean size of the rows compacted

Returns:


Copyright © 2010 The Apache Software Foundation