Example usage for org.apache.cassandra.config DatabaseDescriptor getConcurrentCompactors

List of usage examples for org.apache.cassandra.config DatabaseDescriptor getConcurrentCompactors

Introduction

In this page you can find the example usage for org.apache.cassandra.config DatabaseDescriptor getConcurrentCompactors.

Prototype

public static int getConcurrentCompactors() 

Source Link

Usage

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

License:Apache License

private void checkJobs(PrintStream out, int jobs) {
    if (jobs > getConcurrentCompactors())
        out.println(String.format(
                "jobs (%d) is bigger than configured concurrent_compactors (%d) on this host, using at most %d threads",
                jobs, DatabaseDescriptor.getConcurrentCompactors(),
                DatabaseDescriptor.getConcurrentCompactors()));
}