org.apache.cassandra.db
Class CompactionManager
java.lang.Object
org.apache.cassandra.db.CompactionManager
- All Implemented Interfaces:
- CompactionManagerMBean
public class CompactionManager
- extends java.lang.Object
- implements CompactionManagerMBean
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MBEAN_OBJECT_NAME
public static final java.lang.String MBEAN_OBJECT_NAME
- See Also:
- Constant Field Values
instance
public static final CompactionManager instance
CompactionManager
public CompactionManager()
submitMinorIfNeeded
public java.util.concurrent.Future<java.lang.Integer> submitMinorIfNeeded(ColumnFamilyStore cfs)
- Call this whenever a compaction might be needed on the given columnfamily.
It's okay to over-call (within reason) since the compactions are single-threaded,
and if a call is unnecessary, it will just be no-oped in the bucketing phase.
submitCleanup
public java.util.concurrent.Future<java.lang.Object> submitCleanup(ColumnFamilyStore cfStore)
submitAnticompaction
public java.util.concurrent.Future<java.util.List<SSTableReader>> submitAnticompaction(ColumnFamilyStore cfStore,
java.util.Collection<Range> ranges,
java.net.InetAddress target)
submitMajor
public java.util.concurrent.Future submitMajor(ColumnFamilyStore cfStore)
submitMajor
public java.util.concurrent.Future submitMajor(ColumnFamilyStore cfStore,
long skip,
int gcBefore)
submitValidation
public java.util.concurrent.Future submitValidation(ColumnFamilyStore cfStore,
AntiEntropyService.Validator validator)
disableAutoCompaction
public void disableAutoCompaction()
submitIndexBuild
public java.util.concurrent.Future submitIndexBuild(ColumnFamilyStore cfs,
Table.IndexBuilder builder)
submitSSTableBuild
public java.util.concurrent.Future<SSTableReader> submitSSTableBuild(Descriptor desc)
checkAllColumnFamilies
public void checkAllColumnFamilies()
throws java.io.IOException
- Throws:
java.io.IOException
getColumnFamilyInProgress
public java.lang.String getColumnFamilyInProgress()
- Specified by:
getColumnFamilyInProgress
in interface CompactionManagerMBean
- Returns:
- the columnfamily currently being compacted; null if none
getBytesTotalInProgress
public java.lang.Long getBytesTotalInProgress()
- Specified by:
getBytesTotalInProgress
in interface CompactionManagerMBean
- Returns:
- the total (data, not including index and filter) bytes being compacted; null if none
getBytesCompacted
public java.lang.Long getBytesCompacted()
- Specified by:
getBytesCompacted
in interface CompactionManagerMBean
- Returns:
- the progress on the current compaction; null if none
getPendingTasks
public int getPendingTasks()
- Specified by:
getPendingTasks
in interface CompactionManagerMBean
- Returns:
- estimated number of compactions remaining to perform
getCompletedTasks
public long getCompletedTasks()
- Specified by:
getCompletedTasks
in interface CompactionManagerMBean
- Returns:
- number of completed compactions since server [re]start
Copyright © 2010 The Apache Software Foundation