Search in sources :

Example 1 with H2DaoProvider

use of com.facebook.presto.resourceGroups.db.H2DaoProvider in project presto by prestodb.

the class TestQueues method getDao.

private static H2ResourceGroupsDao getDao(String url) {
    DbResourceGroupConfig dbResourceGroupConfig = new DbResourceGroupConfig().setConfigDbUrl(url);
    H2ResourceGroupsDao dao = new H2DaoProvider(dbResourceGroupConfig).get();
    dao.createResourceGroupsTable();
    dao.createSelectorsTable();
    dao.createResourceGroupsGlobalPropertiesTable();
    return dao;
}
Also used : DbResourceGroupConfig(com.facebook.presto.resourceGroups.db.DbResourceGroupConfig) H2DaoProvider(com.facebook.presto.resourceGroups.db.H2DaoProvider) H2ResourceGroupsDao(com.facebook.presto.resourceGroups.db.H2ResourceGroupsDao)

Aggregations

DbResourceGroupConfig (com.facebook.presto.resourceGroups.db.DbResourceGroupConfig)1 H2DaoProvider (com.facebook.presto.resourceGroups.db.H2DaoProvider)1 H2ResourceGroupsDao (com.facebook.presto.resourceGroups.db.H2ResourceGroupsDao)1