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

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

Introduction

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

Prototype

public void setCompactionThresholds(int minThreshold, int maxThreshold);

Source Link

Document

Sets the maximum and maximum number of SSTables in queue before compaction kicks off

Usage

From source file:com.wenyu.utils.ClusterToolNodeProbe.java

License:Apache License

/**
 * Set the compaction threshold//  ww w. j a  v a  2s. c o m
 *
 * @param minimumCompactionThreshold minimum compaction threshold
 * @param maximumCompactionThreshold maximum compaction threshold
 */
public void setCompactionThreshold(String ks, String cf, int minimumCompactionThreshold,
        int maximumCompactionThreshold) {
    ColumnFamilyStoreMBean cfsProxy = getCfsProxy(ks, cf);
    cfsProxy.setCompactionThresholds(minimumCompactionThreshold, maximumCompactionThreshold);
}