org.wso2.carbon.registry.core.Registry.restore()方法的使用及代码示例

x33g5p2x  于2022-01-28 转载在 其他  
字(1.3k)|赞(0)|评价(0)|浏览(150)

本文整理了Java中org.wso2.carbon.registry.core.Registry.restore方法的一些代码示例,展示了Registry.restore的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Registry.restore方法的具体详情如下:
包路径:org.wso2.carbon.registry.core.Registry
类名称:Registry
方法名:restore

Registry.restore介绍

暂无

代码示例

代码示例来源:origin: org.wso2.carbon.registry/org.wso2.carbon.registry.extensions

@Override
  public void restore(RequestContext requestContext) throws RegistryException {
    if (!CommonUtil.isRestoringLockAvailable()) {
      return;
    }
    CommonUtil.acquireRestoringLock();
    try {
      Registry registry = requestContext.getRegistry();
      Reader reader = requestContext.getDumpingReader();
      String path = requestContext.getResourcePath().getPath();

      ConflictResolutionReader conflictResolutionReader = new ConflictResolutionReader(reader, path, registry);

      registry.restore(path,conflictResolutionReader);
      requestContext.setProcessingComplete(true);
    } finally {
      CommonUtil.releaseRestoringLock();
    }
  }
}

代码示例来源:origin: org.apache.stratos/org.apache.stratos.usage.agent

registry.restore(path, monitoredReader);
size = monitoredReader.getTotalRead();
requestContext.setProcessingComplete(true);

代码示例来源:origin: org.apache.stratos/org.apache.stratos.usage.agent

registry.restore(path, monitoredReader);
size = monitoredReader.getTotalRead();
requestContext.setProcessingComplete(true);

相关文章