use of com.microsoft.azuretools.core.mvp.ui.base.NodeContent in project azure-tools-for-java by Microsoft.
the class RedisCacheModulePresenter method onModuleRefresh.
/**
* Called from view when the view needs refresh.
*/
public void onModuleRefresh() {
final HashMap<String, ArrayList<NodeContent>> nodeMap = new HashMap<>();
final HashMap<String, RedisCaches> redisCachesMap = azureRedisMvpModel.getRedisCaches();
for (final String sid : redisCachesMap.keySet()) {
final ArrayList<NodeContent> nodeContentList = new ArrayList<>();
for (final RedisCache redisCache : redisCachesMap.get(sid).list()) {
nodeContentList.add(new NodeContent(redisCache.id(), redisCache.name(), redisCache.provisioningState()));
}
nodeMap.put(sid, nodeContentList);
}
getMvpView().showNode(nodeMap);
}
Aggregations