use of com.vip.saturn.job.console.domain.SaturnJunkData in project Saturn by vipshop.
the class SaturnJunkDataController method getJunkData.
@ResponseBody
@RequestMapping(value = "getJunkdata", method = RequestMethod.GET)
public RequestResult getJunkData(HttpServletRequest request, String newZkClusterKey) {
RequestResult requestResult = new RequestResult();
try {
List<SaturnJunkData> junkData = saturnJunkDataService.getJunkData(newZkClusterKey);
requestResult.setSuccess(true);
requestResult.setObj(junkData);
} catch (Throwable t) {
requestResult.setSuccess(false);
if (t instanceof SaturnJobConsoleException) {
requestResult.setMessage(t.getMessage());
} else {
requestResult.setMessage(t.toString());
}
LOGGER.error(t.getMessage(), t);
}
return requestResult;
}
Aggregations