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

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

Introduction

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

Prototype

public void setMaximumCompactionThreshold(int threshold);

Source Link

Document

Sets the maximum 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);
}