public class BAMDataServiceAdmin {
private static final Log log = LogFactory.getLog(BAMDataServiceAdmin.class); //TODO: Improve logging in this class
public void addServerStatistics(ServerStatisticsDO statisticsDO) throws BAMException {
BAMDataCollectionDSClient client = null;
try {
client = BAMUtil.getBAMDataCollectionDSClient();
client.addServerData(statisticsDO);
} catch (BAMException e) {
throw e;
} finally {
if (client != null) {
client.cleanup();
}
}
}