private static class WebClientSpawner.TemporaryClientTask extends java.lang.Object implements TemporaryClient
This will create a ChuiWebDriver or GuiWebDriver and start the
embedded web server which will serve this client's requests.
| Modifier and Type | Field and Description |
|---|---|
private java.util.List<java.lang.String> |
clientConfig
List of client configs.
|
private boolean |
gui
Flag that denotes client type.
|
private ServerKeyStore |
keyStore
Key store.
|
private static CentralLogger |
LOG
Logger.
|
private java.lang.String |
uuid
The unique id for the spawned client running the task.
|
| Constructor and Description |
|---|
TemporaryClientTask(java.lang.String uuid,
ServerKeyStore keyStore,
boolean gui,
java.util.List<java.lang.String> clientConfig)
Create a new web client spawner.
|
| Modifier and Type | Method and Description |
|---|---|
ScreenDriver |
doWork(Spawner spawner,
BootstrapConfig config,
java.util.function.Supplier<java.lang.String> diagnostics)
On P2J client side, it will do custom work after authenticating using the temporary
credentials.
|
private static final CentralLogger LOG
private final java.lang.String uuid
private final ServerKeyStore keyStore
private final boolean gui
private final java.util.List<java.lang.String> clientConfig
TemporaryClientTask(java.lang.String uuid,
ServerKeyStore keyStore,
boolean gui,
java.util.List<java.lang.String> clientConfig)
uuid - The client identifier uuid.keyStore - The key store.gui - Flag that denotes client type (true for GUI, false
for ChUI).clientConfig - The list of client configs.public ScreenDriver doWork(Spawner spawner, BootstrapConfig config, java.util.function.Supplier<java.lang.String> diagnostics)
This will create a ChuiWebDriver or GuiWebDriver and start the
embedded web server which will serve this client's requests.
doWork in interface TemporaryClientspawner - The spawner remote access interface.config - The configuration to use for setup of the client and for the server connection.diagnostics - Details about the client process.java.lang.RuntimeException - If the embedded web server could not be started.