(String home, String configXml)
| 39 | private final ConcurrentHashMap<String, MQPartition> queues = new ConcurrentHashMap<>(); |
| 40 | |
| 41 | public MQManager(String home, String configXml) throws RocksDBException { |
| 42 | this.home = home; |
| 43 | this.rocksDatabase = new RocksDatabase(this.home); |
| 44 | var config = Config.load(configXml); |
| 45 | config.parseCustomize(this.mqConfig); |
| 46 | proxyServer = new ProxyServer(config, mqConfig.getRpcTimeout()); |
| 47 | masterService = new Service(config, proxyServer); |
| 48 | masterAgent = new MasterAgent(config, masterService, this::createPartition); |
| 49 | RegisterProtocols(proxyServer); |
| 50 | } |
| 51 | |
| 52 | public String getHome() { |
| 53 | return home; |
nothing calls this directly
no test coverage detected