Search in sources :

Example 1 with BatchH2DAO

use of org.apache.skywalking.apm.collector.storage.h2.base.dao.BatchH2DAO in project incubator-skywalking by apache.

the class StorageModuleH2Provider method prepare.

@Override
public void prepare(Properties config) throws ServiceNotProvidedException {
    String url = config.getProperty(URL);
    String userName = config.getProperty(USER_NAME);
    String password = config.getProperty(PASSWORD);
    h2Client = new H2Client(url, userName, password);
    this.registerServiceImplementation(IBatchDAO.class, new BatchH2DAO(h2Client));
    registerCacheDAO();
    registerRegisterDAO();
    registerPersistenceDAO();
    registerUiDAO();
    registerAlarmDAO();
}
Also used : H2Client(org.apache.skywalking.apm.collector.client.h2.H2Client) BatchH2DAO(org.apache.skywalking.apm.collector.storage.h2.base.dao.BatchH2DAO)

Aggregations

H2Client (org.apache.skywalking.apm.collector.client.h2.H2Client)1 BatchH2DAO (org.apache.skywalking.apm.collector.storage.h2.base.dao.BatchH2DAO)1