use of herddb.cluster.BookKeeperDataStorageManager in project herddb by diennea.
the class BookKeeperDataStorageManagerRestartTest method buildDBManager.
protected DBManager buildDBManager(String nodeId, Path metadataPath, Path dataPath, Path logsPath, Path tmoDir) {
ZookeeperMetadataStorageManager man = new ZookeeperMetadataStorageManager(testEnv.getAddress(), testEnv.getTimeout(), testEnv.getPath());
ServerConfiguration serverConfiguration = newServerConfigurationWithAutoPort();
BookkeeperCommitLogManager logManager = new BookkeeperCommitLogManager(man, serverConfiguration, NullStatsLogger.INSTANCE);
BookKeeperDataStorageManager dataManager = new BookKeeperDataStorageManager(nodeId, tmoDir, man, logManager);
return new DBManager(nodeId, man, dataManager, logManager, tmoDir, null);
}
Aggregations