use of org.apache.storm.generated.SupervisorInfo in project storm by apache.
the class Nimbus method basicSupervisorDetailsMap.
private static Map<String, SupervisorDetails> basicSupervisorDetailsMap(IStormClusterState state) {
Map<String, SupervisorDetails> ret = new HashMap<>();
for (Entry<String, SupervisorInfo> entry : state.allSupervisorInfo().entrySet()) {
String id = entry.getKey();
SupervisorInfo info = entry.getValue();
ret.put(id, new SupervisorDetails(id, info.get_hostname(), info.get_scheduler_meta(), null, info.get_resources_map()));
}
return ret;
}
Aggregations