mirror of
https://github.com/nosqlbench/nosqlbench.git
synced 2025-02-25 18:55:28 -06:00
all adapters loading indirectly
This commit is contained in:
@@ -71,12 +71,4 @@ public class TcpClientDriverAdapter extends BaseDriverAdapter<TcpClientOp, TcpCl
|
||||
return adap.getSyntheticOpTemplates(opsDocList, cfg);
|
||||
}
|
||||
|
||||
@Service(value = DriverAdapterLoader.class,selector = "tcpclient")
|
||||
public static class Loader implements DriverAdapterLoader {
|
||||
@Override
|
||||
public TcpClientDriverAdapter load(NBComponent parent, NBLabels childLabels) {
|
||||
return new TcpClientDriverAdapter(parent,childLabels);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,14 @@
|
||||
package io.nosqlbench.adapter.tcpclient;
|
||||
|
||||
import io.nosqlbench.adapter.diag.DriverAdapterLoader;
|
||||
import io.nosqlbench.api.labels.NBLabels;
|
||||
import io.nosqlbench.components.NBComponent;
|
||||
import io.nosqlbench.nb.annotations.Service;
|
||||
|
||||
@Service(value = DriverAdapterLoader.class, selector = "tcpclient")
|
||||
public class TcpClientDriverAdapterLoader implements DriverAdapterLoader {
|
||||
@Override
|
||||
public TcpClientDriverAdapter load(NBComponent parent, NBLabels childLabels) {
|
||||
return new TcpClientDriverAdapter(parent, childLabels);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user