106107108109110111112113114115116
while(!shutdownLatch.attempt(sampleInterval)) { printSampleData(); } System.out.println("Stopping server."); server.stop(1000*5); server.dispose(); } catch (IOException e) { e.printStackTrace(); } catch (InterruptedException e) {