Description Usage Arguments Value Functions
Configurate the worker container environment. Developers can use this function
to set the server Ip, password and etc. via the container environment variable.
The server info can be found by the getter function with the prefix .getServer
(e.g. .getServerPassword(cluster)
). Depending on the network status, the worker
can use the server private IP to connect with the server.
The developer must calls container$copy()
before
setting the server environment. The user provided environment variables should
be respected and overwritten only when necessary.
There is no default method for this generic.
1 2 3 4 | configWorkerContainerEnv(container, cluster, workerNumber, verbose)
## S4 method for signature 'DummyContainer'
configWorkerContainerEnv(container, cluster, workerNumber, verbose = FALSE)
|
container |
Reference Container Object. The worker container. |
cluster |
S4 |
workerNumber |
Integer. The number of workers in a container. |
verbose |
Integer. The verbose level, default 1. |
An object which has the same class as container
configWorkerContainerEnv,DummyContainer-method
: method for the dummy container
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.