move cql and cqld3 stub warnings to active logic

This commit is contained in:
Jonathan Shook 2022-01-10 22:24:42 -06:00
parent c27630e5a6
commit 9560f3193e
2 changed files with 14 additions and 0 deletions

View File

@ -1,5 +1,7 @@
package io.nosqlbench.adapter.cqld4;
import io.nosqlbench.adapter.cqld4.optypes.Cqld4BaseOp;
import io.nosqlbench.engine.api.activityimpl.OpMapper;
import io.nosqlbench.engine.api.activityimpl.uniform.DriverAdapter;
import io.nosqlbench.nb.annotations.Service;
import org.apache.logging.log4j.LogManager;
@ -11,6 +13,11 @@ public class CqlDriverAdapterStub extends Cqld4DriverAdapter {
public CqlDriverAdapterStub() {
super();
}
@Override
public OpMapper<Cqld4BaseOp> getOpMapper() {
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.");
return super.getOpMapper();
}
}

View File

@ -1,5 +1,7 @@
package io.nosqlbench.adapter.cqld4;
import io.nosqlbench.adapter.cqld4.optypes.Cqld4BaseOp;
import io.nosqlbench.engine.api.activityimpl.OpMapper;
import io.nosqlbench.engine.api.activityimpl.uniform.DriverAdapter;
import io.nosqlbench.nb.annotations.Service;
import org.apache.logging.log4j.LogManager;
@ -11,6 +13,11 @@ public class Cqld3DriverAdapterStub extends Cqld4DriverAdapter {
public Cqld3DriverAdapterStub() {
super();
}
@Override
public OpMapper<Cqld4BaseOp> getOpMapper() {
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.");
return super.getOpMapper();
}
}