use of com.tencent.angel.master.app.InternalErrorEvent in project angel by Tencent.
the class PSAgentManager method psAgentFalied.
@SuppressWarnings("unchecked")
private void psAgentFalied(PSAgentManagerEvent event) {
failedPSAgentMap.put(event.getPsAgentId(), psAgentMap.get(event.getPsAgentId()));
List<String> diagnostics = context.getPSAgentManager().getPsAgent(event.getPsAgentId()).getDiagnostics();
StringBuilder diagnostic = new StringBuilder("");
for (String diagItem : diagnostics) {
diagnostic.append(diagItem).append("\n");
}
context.getEventHandler().handle(new InternalErrorEvent(context.getApplicationId(), diagnostic.toString()));
}
Aggregations