)
public static void getErrorLoggersList(HandlerContext handlerCtx){
String instanceName = (String )handlerCtx.getInputValue("instanceName");
String ts = (String )handlerCtx.getInputValue("timeStamp");
Long timeStamp = Long.parseLong(ts);
Logging logging = getLoggingBean(instanceName);
List result = new ArrayList();
if (logging == null ){
handlerCtx.setOutputValue("result", result);
handlerCtx.setOutputValue("hasResults", false);
handlerCtx.setOutputValue("hasSevereChart", false);
handlerCtx.setOutputValue("hasWarningChart", false);
return;
}
Map<String, Integer> warningMap = logging.getErrorDistribution(timeStamp, ""+Level.WARNING);
Map<String, Integer> severeMap = logging.getErrorDistribution(timeStamp, ""+Level.SEVERE);
Map<String, Integer[]> combinedMap = new HashMap();
String demo = (String )handlerCtx.getInputValue("demo");
// combine date from both map