public abstract class UIServer
extends java.lang.Object
Constructor and Description |
---|
UIServer() |
Modifier and Type | Method and Description |
---|---|
abstract void |
attach(StatsStorage statsStorage)
Attach the given StatsStorage instance to the UI, so the data can be visualized
|
abstract void |
detach(StatsStorage statsStorage)
Detach the specified StatsStorage instance from the UI
|
abstract void |
disableRemoteListener()
Disable the remote listener functionality (disabled by default)
|
abstract void |
enableRemoteListener()
Enable the remote listener functionality, storing all data in memory, and attaching the instance to the UI.
|
abstract void |
enableRemoteListener(StatsStorageRouter statsStorage,
boolean attach)
Enable the remote listener functionality, storing the received results in the specified StatsStorageRouter.
|
static UIServer |
getInstance()
Get (and, initialize if necessary) the UI server.
|
abstract int |
getPort()
Get the current port for the UI
|
abstract java.util.List<StatsStorage> |
getStatsStorageInstances() |
abstract boolean |
isAttached(StatsStorage statsStorage)
Check whether the specified StatsStorage instance is attached to the UI instance
|
abstract boolean |
isRemoteListenerEnabled() |
abstract void |
stop()
Stop/shut down the UI server.
|
public static UIServer getInstance()
public abstract int getPort()
public abstract void attach(StatsStorage statsStorage)
statsStorage
- StatsStorage instance to attach to the UIpublic abstract void detach(StatsStorage statsStorage)
statsStorage
- StatsStorage instance to detach. If not attached: no op.public abstract boolean isAttached(StatsStorage statsStorage)
statsStorage
- StatsStorage instance to attachpublic abstract java.util.List<StatsStorage> getStatsStorageInstances()
public abstract void enableRemoteListener()
RemoteUIStatsStorageRouter
, which will send information
remotely to this UI instancepublic abstract void 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 serverpublic abstract void disableRemoteListener()
public abstract boolean isRemoteListenerEnabled()
public abstract void stop()