public interface Spawner
Modifier and Type | Interface and Description |
---|---|
static class |
Spawner.OutOfResources
An exception is thrown if the system can't allocate free resources for the spawned client.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
allocateClient(java.lang.String uuid)
Allocates the system resources for the spawned client if it is necessarily.
|
void |
clientIsReady(java.lang.String uuid,
java.lang.Object data)
Notify when the client has started.
|
java.lang.Object |
exportData(java.lang.String uuid)
Depending on the implementation, export custom data from the server back to the client.
|
TemporaryClient |
getTemporaryClient(java.lang.String uuid)
Get a
TemporaryClient worker which will do the work after authenticating on the P2J
server using the temporary credentials. |
void |
releaseClient(java.lang.String uuid)
Releases the system resources for this spawned client.
|
void clientIsReady(java.lang.String uuid, java.lang.Object data)
uuid
- Remote client assigned identifier.data
- Custom data sent by the P2J client back to the server.java.lang.Object exportData(java.lang.String uuid)
uuid
- Remote client assigned identifier.TemporaryClient getTemporaryClient(java.lang.String uuid)
TemporaryClient
worker which will do the work after authenticating on the P2J
server using the temporary credentials.uuid
- Remote client assigned identifier.java.lang.Object allocateClient(java.lang.String uuid) throws Spawner.OutOfResources
uuid
- Remote client assigned identifier.Spawner.OutOfResources
- If the required resources can't be allocated.void releaseClient(java.lang.String uuid)
uuid
- Remote client assigned identifier.