v = _graphManager.addVertex(new UndirectedSparseVertex(), ((Host)n).getName());
}
v.setUserDatum("host", (Host)n, UserData.CLONE);
} catch (UniqueLabelException ule) {}
} else if (n instanceof ErrorMapper) {
ErrorMapper err = (ErrorMapper)n;
if (_statusErrorsTypeDisplayed[err.getType()] == 0) {
MapperEvent me = new MapperEvent(this);
me.setMapperType(MapperActionType.DisplayError);
me.setParams(err);
fireMapperActionRequested(me);
_statusErrorsTypeDisplayed[err.getType()] = 1;
}
} else if (n instanceof ObjectHostGroup) {
_graphManager.addHostGroup((ObjectHostGroup)n);
}
}
String[] verts;
int i = 0;
v = null;
for (Object n: l) {
if (n instanceof Host) {
verts = ((Host)n).getParentsString().split(",");
LinkedList <Object>lparents = new LinkedList<Object>();
v = _graphManager.getVertex(((Host)n).getName());
// get temporary list of svcextinfo for this host.
svcextinfolist = getExtInfoMap().get(((Host)n).getName());
if (svcextinfolist != null) {
for (ServiceExtInfo sei : svcextinfolist) {
_graphManager.addServiceExtInfo(sei);
}
svcextinfolist.clear(); // clear the list of svcextinfo's
getExtInfoMap().remove(((Host)n).getName()); // remove the host referece in the list
}
for (i = 0; i < verts.length; i++) {
try {
_graphManager.addEdge(verts[i].trim(), ((Host)n).getName());
} catch (GraphException ge) {
MapperEvent me = new MapperEvent(this);
me.setMapperType(MapperActionType.DisplayError);
ErrorMapper em = new ErrorMapper(ge.getMessage());
me.setParams(em);
fireMapperActionRequested(me);
}
lparents.add(_graphManager.getVertex(verts[i].trim()));
}