Search in sources :

Example 1 with BookKeeperDataStorageManager

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);
}
Also used : BookKeeperDataStorageManager(herddb.cluster.BookKeeperDataStorageManager) DBManager(herddb.core.DBManager) ZookeeperMetadataStorageManager(herddb.cluster.ZookeeperMetadataStorageManager) ServerConfiguration(herddb.server.ServerConfiguration) BookkeeperCommitLogManager(herddb.cluster.BookkeeperCommitLogManager)

Aggregations

BookKeeperDataStorageManager (herddb.cluster.BookKeeperDataStorageManager)1 BookkeeperCommitLogManager (herddb.cluster.BookkeeperCommitLogManager)1 ZookeeperMetadataStorageManager (herddb.cluster.ZookeeperMetadataStorageManager)1 DBManager (herddb.core.DBManager)1 ServerConfiguration (herddb.server.ServerConfiguration)1