use of org.apache.accumulo.monitor.rest.logs.DeadLoggerList in project accumulo by apache.
the class MasterResource method getDeadLoggers.
/**
* Generates a dead logger list as a JSON object
*
* @return dead logger list
*/
public static DeadLoggerList getDeadLoggers() {
MasterMonitorInfo mmi = getMmi();
if (null == mmi) {
return new DeadLoggerList();
}
DeadLoggerList deadLoggers = new DeadLoggerList();
// Add new dead loggers to the list
for (DeadServer dead : mmi.deadTabletServers) {
deadLoggers.addDeadLogger(new DeadLoggerInformation(dead.server, dead.lastStatus, dead.status));
}
return deadLoggers;
}
Aggregations