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.
|
getInstance
public 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()
UIServer
public void attach(StatsStorage statsStorage)
UIServer
public void detach(StatsStorage statsStorage)
UIServer
public boolean isAttached(StatsStorage statsStorage)
UIServer
isAttached
in class UIServer
statsStorage
- StatsStorage instance to attachpublic java.util.List<StatsStorage> getStatsStorageInstances()
getStatsStorageInstances
in class UIServer
public void enableRemoteListener()
UIServer
RemoteUIStatsStorageRouter
, which will send information
remotely to this UI instanceenableRemoteListener
in class UIServer
UIServer.enableRemoteListener(StatsStorageRouter, boolean)
public void enableRemoteListener(StatsStorageRouter statsStorage, boolean attach)
UIServer
StatsStorage
instance, it may (optionally) be attached to the UI,
as if UIServer.attach(StatsStorage)
was called on it.enableRemoteListener
in class UIServer
statsStorage
- StatsStorageRouter to post the received results toattach
- Whether to attach the given StatsStorage instance to the UI serverpublic void disableRemoteListener()
UIServer
disableRemoteListener
in class UIServer
public boolean isRemoteListenerEnabled()
isRemoteListenerEnabled
in class UIServer