恢复Xodus数据库

时间:2019-07-26 14:37:14

标签: java xodus

这是我的代码,用于从ZIP备份中“还原” Xodus数据库:

      InputStream inputStream = entity.getStream();
      CountingInputStream countingInputStream = new CountingInputStream(inputStream);
      LOG.info("Processing backup upload - octet stream - " + countingInputStream.getCount() + " bytes");
      PersistentEntityStore store = manager.getPersistentEntityStore(xodusRoot, appId);
      ZipUtil.unpack(countingInputStream, new File(store.getLocation()));

但是,要使整个Xodus流程都需要查询的实体类型需要重新启动

我在考虑是否有办法还原Xodus并触发更新。

0 个答案:

没有答案