}
}
public void deleteServerEndpointUserData(int serverId, String endpoint, String direction,
BAMCalendar startTime, BAMCalendar endTime) throws BAMException {
BAMSummaryGenerationDSClient client = null;
try {
client = BAMUtil.getBAMSummaryGenerationDSClient();
String endpointString;
endpointString = createMediationKeyString(ENDPOINT, direction, MAX_PROCESSING_TIME, endpoint);
client.deleteServerUserData(serverId, endpointString, startTime, endTime);
endpointString = createMediationKeyString(ENDPOINT, direction, MIN_PROCESSING_TIME, endpoint);
client.deleteServerUserData(serverId, endpointString, startTime, endTime);
endpointString = createMediationKeyString(ENDPOINT, direction, AVG_PROCESSING_TIME, endpoint);
client.deleteServerUserData(serverId, endpointString, startTime, endTime);
endpointString = createMediationKeyString(ENDPOINT, direction, CUMULATIVE_COUNT, endpoint);
client.deleteServerUserData(serverId, endpointString, startTime, endTime);
endpointString = createMediationKeyString(ENDPOINT, direction, FAULT_COUNT, endpoint);
client.deleteServerUserData(serverId, endpointString, startTime, endTime);
endpointString = createMediationKeyString(ENDPOINT, direction, COUNT, endpoint);
client.deleteServerUserData(serverId, endpointString, startTime, endTime);
endpointString = createMediationKeyString(ENDPOINT, direction, ID, null);
client.deleteServerUserData(serverId, endpointString, startTime, endTime);
endpointString = createMediationKeyString(ENDPOINT, direction, ERROR, null);
client.deleteServerUserData(serverId, endpointString, startTime, endTime);
} catch (Exception e) {
throw new BAMException("Could not delete hourly summary for serverId: " + serverId + "endpoint: "
+ endpoint + direction + " end time: " + endTime.getBAMTimestamp(), e);
} finally {
if (client != null) {
client.cleanup();
}
}
}