public class IndexSummaryManager extends java.lang.Object implements IndexSummaryManagerMBean
| Modifier and Type | Field and Description |
|---|---|
static IndexSummaryManager |
instance |
static java.lang.String |
MBEAN_NAME |
| Modifier and Type | Method and Description |
|---|---|
double |
getAverageIndexInterval() |
java.util.Map<java.lang.String,java.lang.Integer> |
getIndexIntervals()
Returns a map of SSTable filenames to their current effective index interval.
|
long |
getMemoryPoolCapacityInMB() |
double |
getMemoryPoolSizeInMB()
Returns the actual space consumed by index summaries for all sstables.
|
int |
getResizeIntervalInMinutes() |
void |
redistributeSummaries() |
static java.util.List<SSTableReader> |
redistributeSummaries(IndexSummaryRedistribution redistribution)
Attempts to fairly distribute a fixed pool of memory for index summaries across a set of SSTables based on
their recent read rates.
|
void |
setMemoryPoolCapacityInMB(long memoryPoolCapacityInMB) |
void |
setResizeIntervalInMinutes(int resizeIntervalInMinutes) |
public static final java.lang.String MBEAN_NAME
public static final IndexSummaryManager instance
public int getResizeIntervalInMinutes()
getResizeIntervalInMinutes in interface IndexSummaryManagerMBeanpublic void setResizeIntervalInMinutes(int resizeIntervalInMinutes)
setResizeIntervalInMinutes in interface IndexSummaryManagerMBeanpublic long getMemoryPoolCapacityInMB()
getMemoryPoolCapacityInMB in interface IndexSummaryManagerMBeanpublic java.util.Map<java.lang.String,java.lang.Integer> getIndexIntervals()
IndexSummaryManagerMBeangetIndexIntervals in interface IndexSummaryManagerMBeanpublic double getAverageIndexInterval()
getAverageIndexInterval in interface IndexSummaryManagerMBeanpublic void setMemoryPoolCapacityInMB(long memoryPoolCapacityInMB)
setMemoryPoolCapacityInMB in interface IndexSummaryManagerMBeanpublic double getMemoryPoolSizeInMB()
getMemoryPoolSizeInMB in interface IndexSummaryManagerMBeanpublic void redistributeSummaries()
throws java.io.IOException
redistributeSummaries in interface IndexSummaryManagerMBeanjava.io.IOExceptionpublic static java.util.List<SSTableReader> redistributeSummaries(IndexSummaryRedistribution redistribution) throws java.io.IOException
redistribution - encapsulating the transactions containing the sstables we are to redistribute the
memory pool across and a size (in bytes) that the total index summary space usage
should stay close to or under, if possiblejava.io.IOExceptionCopyright © 2018 The Apache Software Foundation