log ato output

master
yixian 4 years ago
parent 2161d3ca1d
commit dca34577c2

@ -239,6 +239,7 @@ public class ATOReportServiceImpl implements ATOReportService {
}
public static class Progress {
private static final Logger logger = LoggerFactory.getLogger(ATOReportService.class);
private String currentMonth;
private Map<Integer, Boolean> clientsStatus;
private final String server;
@ -255,6 +256,7 @@ public class ATOReportServiceImpl implements ATOReportService {
public void setMonth(DateTime start, List<Integer> clients) {
currentMonth = start.toString("yyyy-MM");
clientsStatus = clients.stream().collect(ConcurrentHashMap::new, (map, cid) -> map.put(cid, false), Map::putAll);
status = "Exporting";
}
public String getFileid() {
@ -276,6 +278,7 @@ public class ATOReportServiceImpl implements ATOReportService {
public void setFinished() {
this.finished = true;
setStatus("Finished!");
}
public String getStatus() {
@ -300,6 +303,7 @@ public class ATOReportServiceImpl implements ATOReportService {
}
public Progress setStatus(String status) {
logger.info("ATO export status:{}", status);
this.status = status;
return this;
}

Loading…
Cancel
Save