MCPcopy Create free account
hub / github.com/e2wugui/zeze / newDatabase

Method newDatabase

ZezeJava/ZezeJavaTest/src/Dbh2/Dbh2FullTest.java:20–26  ·  view source on GitHub ↗
(Dbh2AgentManager dbh2AgentManager, @SuppressWarnings("SameParameterValue") String dbName)

Source from the content-addressed store, hash-verified

18// 测试整体结构(Dbh2Manager,Master,Agent)
19public class Dbh2FullTest {
20 private static Database newDatabase(Dbh2AgentManager dbh2AgentManager, @SuppressWarnings("SameParameterValue") String dbName) {
21 var databaseConf = new Config.DatabaseConf();
22 databaseConf.setDatabaseType(Config.DbType.Dbh2);
23 databaseConf.setDatabaseUrl("dbh2://127.0.0.1:11000/" + dbName);
24 databaseConf.setName("dbh2");
25 return new Database(null, dbh2AgentManager, databaseConf);
26 }
27
28 private static Future<?> startBench(int keyStart, int keyEnd, Database database, AbstractKVTable table, ByteBuffer value) {
29 return Task.runUnsafe(() -> {

Callers 3

testBenchMethod · 0.95
testFullMethod · 0.95

Calls 3

setDatabaseTypeMethod · 0.95
setDatabaseUrlMethod · 0.95
setNameMethod · 0.95

Tested by

no test coverage detected