本文整理了Java中org.wso2.carbon.registry.core.Registry.restore
方法的一些代码示例,展示了Registry.restore
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Registry.restore
方法的具体详情如下:
包路径:org.wso2.carbon.registry.core.Registry
类名称: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);
内容来源于网络,如有侵权,请联系作者删除!