org.apache.cassandra.db
Interface CompactionManagerMBean

All Known Implementing Classes:
CompactionManager

public interface CompactionManagerMBean


Method Summary
 void forceUserDefinedCompaction(java.lang.String ksname, java.lang.String dataFiles)
          Triggers the compaction of user specified sstables.
 java.lang.Long getBytesCompacted()
           
 java.lang.Long getBytesTotalInProgress()
           
 java.lang.String getColumnFamilyInProgress()
           
 java.lang.String getCompactionType()
           
 long getCompletedTasks()
           
 int getPendingTasks()
           
 

Method Detail

getColumnFamilyInProgress

java.lang.String getColumnFamilyInProgress()
Returns:
the columnfamily currently being compacted; null if none

getBytesTotalInProgress

java.lang.Long getBytesTotalInProgress()
Returns:
the total (data, not including index and filter) bytes being compacted; null if none

getBytesCompacted

java.lang.Long getBytesCompacted()
Returns:
the progress on the current compaction; null if none

getCompactionType

java.lang.String getCompactionType()
Returns:
the type of compaction operation currently in progress; null if none

getPendingTasks

int getPendingTasks()
Returns:
estimated number of compactions remaining to perform

getCompletedTasks

long getCompletedTasks()
Returns:
number of completed compactions since server [re]start

forceUserDefinedCompaction

void forceUserDefinedCompaction(java.lang.String ksname,
                                java.lang.String dataFiles)
Triggers the compaction of user specified sstables.

Parameters:
ksname - the keyspace for the sstables to compact
dataFiles - a comma separated list of sstable filename to compact


Copyright © 2011 The Apache Software Foundation