コード例 #1
0
  /**
   * {@inheritDoc}
   *
   * @param reportContainer
   */
  @Override
  protected Object getReportPlotData(
      ReportSearchCondition cond, ReportProcessReturnContainer reportContainer) {
    // 検索条件を取得する。
    String database = cond.getDatabases().get(0);
    Timestamp startTime = cond.getStartDate();
    Timestamp endTime = cond.getEndDate();

    // DBからデータを検索する。
    List<ItemData> commonsPoolSizeData = null;
    try {
      commonsPoolSizeData =
          GraphItemAccessUtil.findItemData(
              database,
              Constants.ITEMNAME_POOL_SIZE,
              CompressOperator.SIMPLE_AVERAGE,
              startTime,
              endTime);
    } catch (SQLException ex) {
      LOGGER.log(
          LogIdConstants.EXCEPTION_IN_READING,
          ex,
          ReporterConfigAccessor.getReportName(getReportType()));
      return null;
    }

    return commonsPoolSizeData;
  }