narrow down UIServer.stop() to declare throwing InterruptedException; fix typo in test

Signed-off-by: Tamás Fenyvesi <tamas.fenyvesi@doknet.hu>
master
Tamás Fenyvesi 2020-05-08 12:51:01 +02:00
parent cf24728f35
commit 9f47c8aca8
2 changed files with 3 additions and 2 deletions

View File

@ -157,8 +157,9 @@ public interface UIServer {
/** /**
* Stop/shut down the UI server. This synchronous function should wait until the server is stopped. * Stop/shut down the UI server. This synchronous function should wait until the server is stopped.
* @throws InterruptedException if the current thread is interrupted while waiting
*/ */
void stop() throws Exception; void stop() throws InterruptedException;
/** /**
* Stop/shut down the UI server. * Stop/shut down the UI server.

View File

@ -259,7 +259,7 @@ public class TestVertxUIManual extends BaseDL4JTest {
log.info("Auto-detaching StatsStorage (session ID: {}) after {} ms.", log.info("Auto-detaching StatsStorage (session ID: {}) after {} ms.",
sessionId, autoDetachTimeoutMillis); sessionId, autoDetachTimeoutMillis);
uIServer.detach(statsStorage); uIServer.detach(statsStorage);
log.info(" To re-attach StatsStorage of training session, visit {}}/train/{}", log.info(" To re-attach StatsStorage of training session, visit {}/train/{}",
uIServer.getAddress(), sessionId); uIServer.getAddress(), sessionId);
} }
}).start(); }).start();