@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);
}
BrooklynRestAdmin.java 文件源码
java
阅读 19
收藏 0
点赞 0
评论 0
项目:apache-brooklyn-service-broker
作者:
评论列表
文章目录