stat.setServerId(getServer().getId());
stat.setDirection(getEndpoint().getDirection());
SummaryPersistenceManager.getInstance().addEndpointStatHourlySummary(stat);
TimeRange retention = BAMPersistenceManager.getPersistenceManager(BAMUtil.getRegistry()).getDataRetentionPeriod();
// do not delete anything if the retention period specified is 0.
if (retention.getValue() != 0) {
BAMCalendar delLoHour = BAMCalendar.getInstance(loHour);
BAMCalendar delHiHour = BAMCalendar.getInstance(hiHour);
delHiHour.add(retention.getType(), -1 * retention.getValue());
delLoHour.add(retention.getType(), -1 * retention.getValue());
spm.deleteServerEndpointUserData(getServer().getId(),
getEndpoint().getName(), getEndpoint().getDirection(), delLoHour, delHiHour);
}
} catch (BAMException e) {