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 and Type | Field and Description |
|---|---|
private java.util.Map<java.lang.String,java.lang.Object> |
securityConfigs
the process key store and trust stores from the server
|
private java.lang.String |
uuid
The unique id for the spawned client running the task.
|
| Constructor and Description |
|---|
TemporaryClientTask(java.lang.String uuid,
java.util.Map<java.lang.String,java.lang.Object> securityConfigs)
Constructor.
|
| 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 final java.util.Map<java.lang.String,java.lang.Object> securityConfigs
private final java.lang.String uuid
TemporaryClientTask(java.lang.String uuid,
java.util.Map<java.lang.String,java.lang.Object> securityConfigs)
uuid - The client identifier uuid.securityConfigs - A map of the security configs needed for setting up the client.public ScreenDriver doWork(Spawner spawner, BootstrapConfig config, java.util.function.Supplier<java.lang.String> diagnostics)
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 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.null.java.lang.RuntimeException - If there are problems accessing the secure credentials.