| Modifier and Type | Field and Description |
|---|---|
static String |
ASSETS_ROOT_DIRECTORY |
static int |
DEFAULT_UI_PORT |
| Constructor and Description |
|---|
VertxUIServer() |
| 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 |
autoAttachStatsStorageBySessionId(org.nd4j.linalg.function.Function<String,StatsStorage> statsStorageProvider)
Auto-attach StatsStorage if an unknown session ID is passed as URL path parameter in multi-session mode
|
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 VertxUIServer |
getInstance()
Get (and, initialize if necessary) the UI server.
|
static VertxUIServer |
getInstance(Integer port,
boolean multiSession,
org.nd4j.linalg.function.Function<String,StatsStorage> statsStorageProvider) |
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
(
UIServer.getInstance() or UIServer.getInstance(boolean, Function)) is in multi-session mode |
boolean |
isRemoteListenerEnabled() |
boolean |
isStopped() |
void |
main(String[] args) |
void |
start() |
void |
stop()
Stop/shut down the UI server.
|
static void |
stopInstance()
Stop UIServer instance, if already running
|
config, deploymentID, getVertx, init, processArgs, start, stopclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetInstancepublic static final int DEFAULT_UI_PORT
public static final String ASSETS_ROOT_DIRECTORY
public static VertxUIServer getInstance()
UIServergetInstance in interface UIServerpublic static VertxUIServer getInstance(Integer port, boolean multiSession, org.nd4j.linalg.function.Function<String,StatsStorage> statsStorageProvider)
public static void stopInstance()
UIServerstopInstance in interface UIServerpublic void autoAttachStatsStorageBySessionId(org.nd4j.linalg.function.Function<String,StatsStorage> statsStorageProvider)
statsStorageProvider - function that returns a StatsStorage containing the given session IDpublic void start()
throws Exception
start in class io.vertx.core.AbstractVerticleExceptionpublic void stop()
UIServerpublic boolean isMultiSession()
UIServerUIServer.getInstance() or UIServer.getInstance(boolean, Function)) is in multi-session modeisMultiSession in interface UIServertrue if the instance is in multi-sessionpublic String getAddress()
UIServergetAddress in interface UIServerpublic int getPort()
UIServerpublic void attach(StatsStorage statsStorage)
UIServerpublic void detach(StatsStorage statsStorage)
UIServerpublic boolean isAttached(StatsStorage statsStorage)
UIServerisAttached in interface UIServerstatsStorage - StatsStorage instance to attachpublic List<StatsStorage> getStatsStorageInstances()
getStatsStorageInstances in interface UIServerpublic void enableRemoteListener()
UIServerRemoteUIStatsStorageRouter, which will send information
remotely to this UI instanceenableRemoteListener in interface UIServerUIServer.enableRemoteListener(StatsStorageRouter, boolean)public void enableRemoteListener(StatsStorageRouter statsStorage, boolean attach)
UIServerStatsStorage instance, it may (optionally) be attached to the UI,
as if UIServer.attach(StatsStorage) was called on it.enableRemoteListener in interface UIServerstatsStorage - StatsStorageRouter to post the received results toattach - Whether to attach the given StatsStorage instance to the UI serverpublic void disableRemoteListener()
UIServerdisableRemoteListener in interface UIServerpublic boolean isRemoteListenerEnabled()
isRemoteListenerEnabled in interface UIServerpublic void main(String[] args)
Copyright © 2019. All rights reserved.