(Dbh2AgentManager dbh2AgentManager, @SuppressWarnings("SameParameterValue") String dbName)
| 18 | // 测试整体结构(Dbh2Manager,Master,Agent) |
| 19 | public 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(() -> { |
no test coverage detected