}
}
public MediationSummaryStatistic getEndpointStatYearlySummary(int serverId, String endpoint,
String direction, BAMCalendar startTime, BAMCalendar endTime) throws BAMException {
BAMSummaryGenerationDSClient client = null;
try {
client = BAMUtil.getBAMSummaryGenerationDSClient();
return client.getEndpointStatYearlySummary(serverId, endpoint, direction, startTime, endTime);
} catch (Exception e) {
throw new BAMException("Could not retrieve yearly summary for serverId: " + serverId
+ "endpoint: " + endpoint + direction + " start time: " + startTime.getBAMTimestamp(), e);
} finally {
if (client != null) {
client.cleanup();
}
}
}