Search in sources :

Example 1 with BasicHerdDBDataSource

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);
}
Also used : StaticClientSideMetadataProvider(herddb.server.StaticClientSideMetadataProvider) HDBClient(herddb.client.HDBClient) Server(herddb.server.Server) BasicHerdDBDataSource(herddb.jdbc.BasicHerdDBDataSource) ClientConfiguration(herddb.client.ClientConfiguration) Before(org.junit.Before)

Aggregations

ClientConfiguration (herddb.client.ClientConfiguration)1 HDBClient (herddb.client.HDBClient)1 BasicHerdDBDataSource (herddb.jdbc.BasicHerdDBDataSource)1 Server (herddb.server.Server)1 StaticClientSideMetadataProvider (herddb.server.StaticClientSideMetadataProvider)1 Before (org.junit.Before)1