MissingInstanceHandlingStrategy.java 文件源码

java
阅读 19 收藏 0 点赞 0 评论 0

项目:hashsdn-controller 作者:
@Override
void handleMissingInstance(Map<String, AttributeConfigElement> configuration, ConfigTransactionClient ta,
        String module, String instance, ServiceRegistryWrapper services) throws ConfigHandlingException {
    try {
        ObjectName on = ta.createModule(module, instance);
        LOG.trace("New instance for {} {} created under name {}", module, instance, on);
    } catch (InstanceAlreadyExistsException e1) {
        throw new ConfigHandlingException(String.format("Unable to create instance for %s : %s.", module, instance),
                DocumentedException.ErrorType.APPLICATION,
                DocumentedException.ErrorTag.OPERATION_FAILED,
                DocumentedException.ErrorSeverity.ERROR);
    }
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号