Package com.dianping.cat.service

Examples of com.dianping.cat.service.ModelPeriod


    return response;
  }

  @Override
  public boolean isEligable(ModelRequest request) {
    ModelPeriod period = request.getPeriod();

    return !period.isHistorical();
  }
View Full Code Here


    detail.visitProblemReport(report);
    model.setDetailStatistics(detail);
  }

  private ProblemReport showHourlyReport(Model model, Payload payload) {
    ModelPeriod period = payload.getPeriod();
    if (period.isFuture()) {
      model.setLongDate(payload.getCurrentDate());
    } else {
      model.setLongDate(payload.getDate());
    }

    if (period.isCurrent() || period.isFuture()) {
      Calendar cal = Calendar.getInstance();
      int minute = cal.get(Calendar.MINUTE);

      model.setLastMinute(minute);
    } else {
View Full Code Here

TOP

Related Classes of com.dianping.cat.service.ModelPeriod

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.