Java Code Examples for org.apache.cassandra.config.DatabaseDescriptor#getIndexSummaryResizeIntervalInMinutes()

The following examples show how to use org.apache.cassandra.config.DatabaseDescriptor#getIndexSummaryResizeIntervalInMinutes() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: IndexSummaryManager.java    From stratio-cassandra with Apache License 2.0 5 votes vote down vote up
private IndexSummaryManager()
{
    executor = new DebuggableScheduledThreadPoolExecutor(1, "IndexSummaryManager", Thread.MIN_PRIORITY);

    long indexSummarySizeInMB = DatabaseDescriptor.getIndexSummaryCapacityInMB();
    int interval = DatabaseDescriptor.getIndexSummaryResizeIntervalInMinutes();
    logger.info("Initializing index summary manager with a memory pool size of {} MB and a resize interval of {} minutes",
                indexSummarySizeInMB, interval);

    setMemoryPoolCapacityInMB(DatabaseDescriptor.getIndexSummaryCapacityInMB());
    setResizeIntervalInMinutes(DatabaseDescriptor.getIndexSummaryResizeIntervalInMinutes());
}