public interface UIServer
| Modifier and Type | Method and Description |
|---|---|
void |
attach(StatsStorage statsStorage)
Attach the given StatsStorage instance to the UI, so the data can be visualized
|
void |
detach(StatsStorage statsStorage)
Detach the specified StatsStorage instance from the UI
|
void |
disableRemoteListener()
Disable the remote listener functionality (disabled by default)
|
void |
enableRemoteListener()
Enable the remote listener functionality, storing all data in memory, and attaching the instance to the UI.
|
void |
enableRemoteListener(StatsStorageRouter statsStorage,
boolean attach)
Enable the remote listener functionality, storing the received results in the specified StatsStorageRouter.
|
String |
getAddress()
Get the address of the UI
|
static UIServer |
getInstance()
Get (and, initialize if necessary) the UI server.
|
static UIServer |
getInstance(boolean multiSession,
org.nd4j.linalg.function.Function<String,StatsStorage> statsStorageProvider)
Get (and, initialize if necessary) the UI server.
|
int |
getPort()
Get the current port for the UI
|
List<StatsStorage> |
getStatsStorageInstances() |
boolean |
isAttached(StatsStorage statsStorage)
Check whether the specified StatsStorage instance is attached to the UI instance
|
boolean |
isMultiSession()
Check if the instance initialized with one of the factory methods
(
getInstance() or getInstance(boolean, Function)) is in multi-session mode |
boolean |
isRemoteListenerEnabled() |
boolean |
isStopped() |
void |
stop()
Stop/shut down the UI server.
|
static void |
stopInstance()
Stop UIServer instance, if already running
|
static UIServer getInstance() throws RuntimeException
RuntimeException - if the instance has already started in a different mode (multi/single-session)static UIServer getInstance(boolean multiSession, org.nd4j.linalg.function.Function<String,StatsStorage> statsStorageProvider) throws RuntimeException
multiSession - in multi-session mode, multiple training sessions can be visualized in separate browser tabs.
statsStorageProvider - function that returns a StatsStorage containing the given session ID.
null.RuntimeException - if the instance has already started in a different mode (multi/single-session)static void stopInstance()
boolean isStopped()
boolean isMultiSession()
getInstance() or getInstance(boolean, Function)) is in multi-session modetrue if the instance is in multi-sessionString getAddress()
int getPort()
void attach(StatsStorage statsStorage)
statsStorage - StatsStorage instance to attach to the UIvoid detach(StatsStorage statsStorage)
statsStorage - StatsStorage instance to detach. If not attached: no op.boolean isAttached(StatsStorage statsStorage)
statsStorage - StatsStorage instance to attachList<StatsStorage> getStatsStorageInstances()
void enableRemoteListener()
RemoteUIStatsStorageRouter, which will send information
remotely to this UI instancevoid enableRemoteListener(StatsStorageRouter statsStorage, boolean attach)
StatsStorage instance, it may (optionally) be attached to the UI,
as if attach(StatsStorage) was called on it.statsStorage - StatsStorageRouter to post the received results toattach - Whether to attach the given StatsStorage instance to the UI servervoid disableRemoteListener()
boolean isRemoteListenerEnabled()
void stop()
Copyright © 2019. All rights reserved.