use of herddb.jdbc.BasicHerdDBDataSource in project herddb by diennea.
the class BaseBench method startServer.
@Before
public void startServer() throws Exception {
makeServerConfiguration();
threadpool = Executors.newFixedThreadPool(numThreads);
server = new Server(serverConfiguration);
server.start();
server.waitForStandaloneBoot();
client = new HDBClient(new ClientConfiguration(folder.newFolder().toPath()));
client.setClientSideMetadataProvider(new StaticClientSideMetadataProvider(server));
dataSource = new BasicHerdDBDataSource(client);
}
Aggregations