private static class ProcessClientSpawner.TemporaryClientTask extends java.lang.Object implements TemporaryClient
For process clients case, it will retrieve from the P2J server the secure credentials
and save them in the configuration
used to start the P2J process.
Modifier | Constructor and Description |
---|---|
private |
TemporaryClientTask() |
Modifier and Type | Method and Description |
---|---|
ScreenDriver |
doWork(Spawner spawner,
java.lang.String uuid,
BootstrapConfig config)
On P2J client side, it will do custom work after authenticating using the temporary
credentials.
|
public ScreenDriver doWork(Spawner spawner, java.lang.String uuid, BootstrapConfig config)
For web chui clients case, it will create a ChuiWebDriver
and start the web
embedded server which will serve this client's requests.
Any custom configuration already existing in the config
parameter will not
be overwritten.
doWork
in interface TemporaryClient
spawner
- The spawner remote access interface.uuid
- Remote client identifier uuid.config
- The configuration to use for setup of the client and for the server connection.null
.java.lang.RuntimeException
- If there are problems accessing the secure credentials.