@Override public void run() { try { long time = System.currentTimeMillis() / 1000; synchronized (statSample) { statSample.setTime(time); statSample.setValues(handler.triples); statSample.update(); } } catch (Exception e) { log.warn("could not update statistics database: {}", e.getMessage()); } } }
@Override public void run() { try { long time = System.currentTimeMillis() / 1000; synchronized (statSample) { statSample.setTime(time); statSample.setValues(handler.triples); statSample.update(); } } catch (Exception e) { log.warn("could not update statistics database: {}", e.getMessage()); } } }