コード例 #1
0
  public void insertLog(Log log) {

    logAccessor.insertLog(log);
    logIndexer.indexLog(log);
    registrationContainer.appendLog(log);

    LOGGER.trace(String.format("Log inserted. Log timestamp %s", log.getDate().getTime()));

    //		List<KpiDefinition> definitions = applicationAccessor
    //				.getKpiDefinitions(log.getApplicationId());
    //		for (KpiDefinition kpiDefinition : definitions) {
    //			checkKpiExtration(kpiDefinition, log);
    //		}
  }
コード例 #2
0
  public void insertLog(List<Log> logs) {
    if (logs.isEmpty()) {
      return;
    }
    logAccessor.insertLogs(logs);
    logIndexer.indexLogs(logs);
    registrationContainer.appendObjects(logs);

    LOGGER.trace(String.format("%s logs inserted.", logs.size()));

    //		List<KpiDefinition> definitions = applicationAccessor
    //				.getKpiDefinitions(log.getApplicationId());
    //		for (KpiDefinition kpiDefinition : definitions) {
    //			checkKpiExtration(kpiDefinition, log);
    //		}
  }