예제 #1
0
  public RequestPerformanceMonitor fromDTO(
      RequestPerformanceMonitorDTO requestPerformanceMonitorDTO) {
    this.setUrl(requestPerformanceMonitorDTO.getUrl());
    this.setNode(requestPerformanceMonitorDTO.getNode());

    this.setYear(requestPerformanceMonitorDTO.getYear());
    this.setMonth(requestPerformanceMonitorDTO.getMonth());
    this.setDay(requestPerformanceMonitorDTO.getDay());

    this.setFirstSectionAmount(requestPerformanceMonitorDTO.getFirstSectionAmount());
    this.setFirstSectionAverage(requestPerformanceMonitorDTO.getFirstSectionAverage());
    this.setFirstSectionTotal(requestPerformanceMonitorDTO.getFirstSectionTotal());

    this.setSecondSectionAmount(requestPerformanceMonitorDTO.getSecondSectionAmount());
    this.setSecondSectionAverage(requestPerformanceMonitorDTO.getSecondSectionAverage());
    this.setSecondSectionTotal(requestPerformanceMonitorDTO.getSecondSectionTotal());

    this.setThirdSectionAverage(requestPerformanceMonitorDTO.getThirdSectionAverage());
    this.setThirdSectionAmount(requestPerformanceMonitorDTO.getThirdSectionAmount());
    this.setThirdSectionTotal(requestPerformanceMonitorDTO.getThirdSectionTotal());

    this.setStartTime(requestPerformanceMonitorDTO.getStartTime());
    this.setEndTime(requestPerformanceMonitorDTO.getEndTime());

    return this;
  }
예제 #2
0
  public RequestPerformanceMonitorDTO toDTO() {
    RequestPerformanceMonitorDTO requestPerformanceMonitorDTO = new RequestPerformanceMonitorDTO();

    requestPerformanceMonitorDTO.setUrl(getUrl());
    requestPerformanceMonitorDTO.setNode(getNode());

    requestPerformanceMonitorDTO.setYear(getYear());
    requestPerformanceMonitorDTO.setMonth(getMonth());
    requestPerformanceMonitorDTO.setDay(getDay());

    requestPerformanceMonitorDTO.setFirstSectionAmount(getFirstSectionAmount());
    requestPerformanceMonitorDTO.setFirstSectionAverage(getFirstSectionAverage());
    requestPerformanceMonitorDTO.setFirstSectionTotal(getFirstSectionTotal());

    requestPerformanceMonitorDTO.setSecondSectionAmount(getSecondSectionAmount());
    requestPerformanceMonitorDTO.setSecondSectionAverage(getSecondSectionAverage());
    requestPerformanceMonitorDTO.setSecondSectionTotal(getSecondSectionTotal());

    requestPerformanceMonitorDTO.setThirdSectionAverage(getThirdSectionAverage());
    requestPerformanceMonitorDTO.setThirdSectionAmount(getThirdSectionAmount());
    requestPerformanceMonitorDTO.setThirdSectionTotal(getThirdSectionTotal());

    requestPerformanceMonitorDTO.setStartTime(getStartTime());
    requestPerformanceMonitorDTO.setEndTime(getEndTime());

    return requestPerformanceMonitorDTO;
  }