use of org.apache.accumulo.monitor.rest.tservers.ServerShuttingDownInformation in project accumulo by apache.
the class ManagerResource method getServersShuttingDown.
/**
* Generates a JSON object of a list of servers shutting down
*
* @return servers shutting down list
*/
public static ServersShuttingDown getServersShuttingDown(Monitor monitor) {
ManagerMonitorInfo mmi = monitor.getMmi();
ServersShuttingDown servers = new ServersShuttingDown();
if (mmi == null)
return servers;
// Add new servers to the list
for (String server : mmi.serversShuttingDown) {
servers.addServerShuttingDown(new ServerShuttingDownInformation(server));
}
return servers;
}
Aggregations