/** * Creates the {@link AggregatedExceptionSensorData} object for the table input from the list of * same type aggregated objects. * * @param throwableType * Throwable type. * @param dataList * List of {@link AggregatedExceptionSensorData} * @return Aggregated data for the table. */ private AggregatedExceptionSensorData createObjectForOverview(String throwableType, List<AggregatedExceptionSensorData> dataList) { AggregatedExceptionSensorData data = new AggregatedExceptionSensorData(); data.setThrowableType(throwableType); for (AggregatedExceptionSensorData object : dataList) { if (data.getPlatformIdent() == 0) { data.setPlatformIdent(object.getPlatformIdent()); } data.aggregateExceptionData(object); } return data; }
data[3][0] = new AggregatedExceptionSensorData(); data[3][1] = exceptionSensorData; data[7][0] = new AggregatedExceptionSensorData(); data[7][1] = aggregatedExceptionSensorData;
/** * {@inheritDoc} */ @Override public IAggregatedData<ExceptionSensorData> getClone(ExceptionSensorData exceptionData) { AggregatedExceptionSensorData clone = new AggregatedExceptionSensorData(); clone.setPlatformIdent(exceptionData.getPlatformIdent()); clone.setSensorTypeIdent(exceptionData.getSensorTypeIdent()); clone.setThrowableType(exceptionData.getThrowableType()); if ((exceptionAggregationType == ExceptionAggregationType.GROUP_EXCEPTION_OVERVIEW) || (exceptionAggregationType == ExceptionAggregationType.DISTINCT_STACK_TRACES)) { clone.setErrorMessage(exceptionData.getErrorMessage()); } if (exceptionAggregationType == ExceptionAggregationType.DISTINCT_STACK_TRACES) { clone.setStackTrace(getCorrectStackTrace(exceptionData.getStackTrace())); } return clone; }