public class PlayUIServer extends UIServer
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ASSETS_ROOT_DIRECTORY |
static int |
DEFAULT_UI_PORT |
static java.lang.String |
UI_CUSTOM_MODULE_PROPERTY
System property to enable classpath scanning for custom UI modules.
|
static java.lang.String |
UI_SERVER_PORT_PROPERTY
System property for setting the UI port.
|
| Constructor and Description |
|---|
PlayUIServer() |
PlayUIServer(int port) |
| 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.
|
int |
getPort()
Get the current port for the UI
|
java.util.List<StatsStorage> |
getStatsStorageInstances() |
boolean |
isAttached(StatsStorage statsStorage)
Check whether the specified StatsStorage instance is attached to the UI instance
|
boolean |
isRemoteListenerEnabled() |
static void |
main(java.lang.String[] args) |
void |
runMain(java.lang.String[] args) |
void |
stop()
Stop/shut down the UI server.
|
getInstancepublic static final java.lang.String UI_SERVER_PORT_PROPERTY
public static final int DEFAULT_UI_PORT
public static final java.lang.String UI_CUSTOM_MODULE_PROPERTY
public static final java.lang.String ASSETS_ROOT_DIRECTORY
public void runMain(java.lang.String[] args)
public static void main(java.lang.String[] args)
public int getPort()
UIServerpublic void attach(StatsStorage statsStorage)
UIServerpublic void detach(StatsStorage statsStorage)
UIServerpublic boolean isAttached(StatsStorage statsStorage)
UIServerisAttached in class UIServerstatsStorage - StatsStorage instance to attachpublic java.util.List<StatsStorage> getStatsStorageInstances()
getStatsStorageInstances in class UIServerpublic void enableRemoteListener()
UIServerRemoteUIStatsStorageRouter, which will send information
remotely to this UI instanceenableRemoteListener in class 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 class UIServerstatsStorage - StatsStorageRouter to post the received results toattach - Whether to attach the given StatsStorage instance to the UI serverpublic void disableRemoteListener()
UIServerdisableRemoteListener in class UIServerpublic boolean isRemoteListenerEnabled()
isRemoteListenerEnabled in class UIServer