stub for cql and cqld3 routes to cqld4 with warning

This commit is contained in:
Jonathan Shook 2022-01-05 15:33:53 -06:00
parent 843cbcbf44
commit 0d8f6f7308
2 changed files with 32 additions and 0 deletions

View File

@ -0,0 +1,16 @@
package io.nosqlbench.adapter.cqld4;
import io.nosqlbench.engine.api.activityimpl.uniform.DriverAdapter;
import io.nosqlbench.nb.annotations.Service;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
@Service(value = DriverAdapter.class, selector = "cql")
public class CqlDriverAdapterStub extends Cqld4DriverAdapter {
private final static Logger logger = LogManager.getLogger(CqlDriverAdapterStub.class);
public CqlDriverAdapterStub() {
super();
logger.warn("This version of NoSQLBench uses the DataStax Java Driver version 4 for all CQL workloads. In this preview version, advanced testing features present in the previous cql and cqld3 drivers are being back-ported. If you need those features, please use only the release artifacts. To suppress this message, use driver=cqld4. This warning will be removed in a future version when all features are completely back-ported.");
}
}

View File

@ -0,0 +1,16 @@
package io.nosqlbench.adapter.cqld4;
import io.nosqlbench.engine.api.activityimpl.uniform.DriverAdapter;
import io.nosqlbench.nb.annotations.Service;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
@Service(value = DriverAdapter.class, selector = "cqld3")
public class Cqld3DriverAdapterStub extends Cqld4DriverAdapter {
private final static Logger logger = LogManager.getLogger(Cqld3DriverAdapterStub.class);
public Cqld3DriverAdapterStub() {
super();
logger.warn("This version of NoSQLBench uses the DataStax Java Driver version 4 for all CQL workloads. In this preview version, advanced testing features present in the previous cql and cqld3 drivers are being back-ported. If you need those features, please use only the release artifacts. To suppress this message, use driver=cqld4. This warning will be removed in a future version when all features are completely back-ported.");
}
}