BrooklynRestAdmin.java 文件源码

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

项目:apache-brooklyn-service-broker 作者:
@Async
public Future<Map<String, Object>> getConfigAsMap(String application, String entity, String key) {
    Object object;
    try {
        object = getRestApi().getEntityConfigApi().get(application, entity, key, false);
    } catch (Exception e) {
        LOG.error("Unable to get config with key={}", key);
        return new AsyncResult<>(null);
    }

    if (object == null || !(object instanceof Map)) {
        LOG.error("Unable to get Map with key={}", key);
        return new AsyncResult<>(null);
    }
    Map<String, Object> map = (Map<String, Object>) object;
    return new AsyncResult<>(map);
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号