Example usage for org.apache.cassandra.db ColumnFamilyStoreMBean setMinimumCompactionThreshold

List of usage examples for org.apache.cassandra.db ColumnFamilyStoreMBean setMinimumCompactionThreshold

Introduction

In this page you can find the example usage for org.apache.cassandra.db ColumnFamilyStoreMBean setMinimumCompactionThreshold.

Prototype

public void setMinimumCompactionThreshold(int threshold);

Source Link

Document

Sets the minimum number of sstables in queue before compaction kicks off

Usage

From source file:org.kit.tecs.NodeProbe.java

License:Apache License

public void setCompactionThreshold(String ks, String cf, int minimumCompactionThreshold,
        int maximumCompactionThreshold) {
    ColumnFamilyStoreMBean cfsProxy = getCfsProxy(ks, cf);
    cfsProxy.setMinimumCompactionThreshold(minimumCompactionThreshold);
    cfsProxy.setMaximumCompactionThreshold(maximumCompactionThreshold);
}