Package com.iisigroup.cap.formatter

Examples of com.iisigroup.cap.formatter.DurationFormatter


    Page<Map<String, Object>> page = batchSrv.findExecutionsPage(search);
    Map<String, IFormatter> fmt = new HashMap<String, IFormatter>();
    fmt.put("startDate", new ADDateFormatter());
    fmt.put("START_TIME", new ADDateTimeFormatter("HH:mm:ss"));
    fmt.put("duration", new DurationFormatter("START_TIME", "END_TIME",
        "HH:mm:ss.SSS"));
    return new MapGridResult(page.getContent(), page.getTotalRow(), fmt);
  }// ;
View Full Code Here


    AjaxFormResult result = new AjaxFormResult();
    result.set("jobParams", jobParams);
    result.set("JOB_NAME", (String) map.get("JOB_NAME"));
    result.set("START_TIME",
        new ADDateTimeFormatter().reformat(map.get("START_TIME")));
    result.set("duration", new DurationFormatter("START_TIME", "END_TIME",
        "HH:mm:ss.SSS").reformat(map));
    result.set("jobStatus", (String) map.get("STATUS"));
    result.set("EXIT_CODE", (String) map.get("EXIT_CODE"));
    result.set("JOB_EXECUTION_ID",
        String.valueOf(map.get("JOB_EXECUTION_ID")));
View Full Code Here

  @HandlerType(HandlerTypeEnum.GRID)
  public MapGridResult stepsQuery(ISearch search, IRequest request) {
    String executionId = request.get("jobExeId");
    List<Map<String, Object>> list = batchSrv.findSteps(executionId);
    Map<String, IFormatter> fmt = new HashMap<String, IFormatter>();
    fmt.put("duration", new DurationFormatter("START_TIME", "END_TIME",
        "HH:mm:ss.SSS"));
    return new MapGridResult(list, list.size(), fmt);
  }// ;
View Full Code Here

TOP

Related Classes of com.iisigroup.cap.formatter.DurationFormatter

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.