|
Groovy Documentation | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.vertx.groovy.deploy.Container
class Container
This class represents the container in which a verticle runs.
An instance of this class will be created by the system and made available to a running Verticle. It contains methods to programmatically deploy other verticles, undeploy verticles, get the configuration for a verticle and get the logger for a verticle.
Constructor Summary | |
Container(java.lang.Object jContainer)
|
Method Summary | |
---|---|
void
|
deployModule(java.lang.String moduleName)
Deploy a module programmatically |
void
|
deployModule(java.lang.String moduleName, groovy.lang.Closure doneHandler)
Deploy a module programmatically |
void
|
deployModule(java.lang.String moduleName, int instances)
Deploy a module programmatically |
void
|
deployModule(java.lang.String moduleName, java.util.Map config)
Deploy a module programmatically |
void
|
deployModule(java.lang.String moduleName, java.util.Map config, int instances)
Deploy a module programmatically |
void
|
deployModule(java.lang.String moduleName, java.util.Map config, int instances, groovy.lang.Closure doneHandler)
Deploy a module programmatically |
void
|
deployVerticle(java.lang.String main)
Deploy a verticle programmatically |
void
|
deployVerticle(java.lang.String main, groovy.lang.Closure doneHandler)
Deploy a verticle programmatically |
void
|
deployVerticle(java.lang.String main, int instances)
Deploy a verticle programmatically |
void
|
deployVerticle(java.lang.String main, java.util.Map config)
Deploy a verticle programmatically |
void
|
deployVerticle(java.lang.String main, java.util.Map config, int instances)
Deploy a verticle programmatically |
void
|
deployVerticle(java.lang.String main, java.util.Map config, int instances, groovy.lang.Closure doneHandler)
Deploy a verticle programmatically |
java.lang.String
|
deployWorkerVerticle(java.lang.String main)
Deploy a worker verticle programmatically |
void
|
deployWorkerVerticle(java.lang.String main, groovy.lang.Closure doneHandler)
Deploy a worker verticle programmatically |
void
|
deployWorkerVerticle(java.lang.String main, int instances)
Deploy a worker verticle programmatically |
void
|
deployWorkerVerticle(java.lang.String main, java.util.Map config)
Deploy a worker verticle programmatically |
void
|
deployWorkerVerticle(java.lang.String main, java.util.Map config, int instances)
Deploy a worker verticle programmatically |
void
|
deployWorkerVerticle(java.lang.String main, java.util.Map config, int instances, groovy.lang.Closure doneHandler)
Deploy a worker verticle programmatically |
void
|
exit()
Cause the container to exit |
java.util.Map
|
getConfig()
Get the verticle configuration |
java.util.Map
|
getEnv()
Get an umodifiable map of system, environment variables. |
Logger
|
getLogger()
Get the verticle logger |
void
|
undeployModule(java.lang.String deploymentID)
Undeploy a module |
void
|
undeployModule(java.lang.String deploymentID, groovy.lang.Closure doneHandler)
Undeploy a module |
void
|
undeployVerticle(java.lang.String deploymentID)
Undeploy a verticle |
void
|
undeployVerticle(java.lang.String deploymentID, groovy.lang.Closure doneHandler)
Undeploy a verticle |
Methods inherited from class java.lang.Object | |
---|---|
java.lang.Object#wait(long), java.lang.Object#wait(long, int), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Constructor Detail |
---|
Container(java.lang.Object jContainer)
Method Detail |
---|
void deployModule(java.lang.String moduleName)
moduleName
- The main of the module
void deployModule(java.lang.String moduleName, groovy.lang.Closure doneHandler)
moduleName
- The main of the moduledoneHandler
- The handler will be called when deployment is complete
void deployModule(java.lang.String moduleName, int instances)
moduleName
- The main of the moduleinstances
- The number of instances to deploy (defaults to 1)
void deployModule(java.lang.String moduleName, java.util.Map config)
moduleName
- The main of the moduleconfig
- JSON config to provide to the module
void deployModule(java.lang.String moduleName, java.util.Map config, int instances)
moduleName
- The main of the moduleconfig
- JSON config to provide to the moduleinstances
- The number of instances to deploy (defaults to 1)
void deployModule(java.lang.String moduleName, java.util.Map config, int instances, groovy.lang.Closure doneHandler)
moduleName
- The main of the moduleconfig
- JSON config to provide to the moduleinstances
- The number of instances to deploy (defaults to 1)doneHandler
- The handler will be called passing in the unique deployment id when deployment is complete
void deployVerticle(java.lang.String main)
main
- The main of the verticle
void deployVerticle(java.lang.String main, groovy.lang.Closure doneHandler)
main
- The main of the verticledoneHandler
- The handler will be called when deployment is complete
void deployVerticle(java.lang.String main, int instances)
main
- The main of the verticleinstances
- The number of instances to deploy (defaults to 1)
void deployVerticle(java.lang.String main, java.util.Map config)
main
- The main of the verticleconfig
- JSON config to provide to the verticle
void deployVerticle(java.lang.String main, java.util.Map config, int instances)
main
- The main of the verticleconfig
- JSON config to provide to the verticleinstances
- The number of instances to deploy (defaults to 1)
void deployVerticle(java.lang.String main, java.util.Map config, int instances, groovy.lang.Closure doneHandler)
main
- The main of the verticleconfig
- JSON config to provide to the verticleinstances
- The number of instances to deploy (defaults to 1)doneHandler
- The handler will be called passing in the unique deployment id when deployment is complete
java.lang.String deployWorkerVerticle(java.lang.String main)
main
- The main of the verticle
void deployWorkerVerticle(java.lang.String main, groovy.lang.Closure doneHandler)
main
- The main of the verticledoneHandler
- The handler will be called passing in the unique deployment id when deployment is complete
void deployWorkerVerticle(java.lang.String main, int instances)
main
- The main of the verticleinstances
- The number of instances to deploy (defaults to 1)
void deployWorkerVerticle(java.lang.String main, java.util.Map config)
main
- The main of the verticleconfig
- JSON config to provide to the verticle
void deployWorkerVerticle(java.lang.String main, java.util.Map config, int instances)
main
- The main of the verticleconfig
- JSON config to provide to the verticleinstances
- The number of instances to deploy (defaults to 1)
void deployWorkerVerticle(java.lang.String main, java.util.Map config, int instances, groovy.lang.Closure doneHandler)
main
- The main of the verticleconfig
- JSON config to provide to the verticleinstances
- The number of instances to deploy (defaults to 1)doneHandler
- The handler will be called passing in the unique deployment id when deployment is complete
void exit()
java.util.Map getConfig()
java.util.Map getEnv()
Logger getLogger()
void undeployModule(java.lang.String deploymentID)
deploymentID
- The deployment ID
void undeployModule(java.lang.String deploymentID, groovy.lang.Closure doneHandler)
deploymentID
- The deployment IDdoneHandler
- The handler will be called when undeployment is complete
void undeployVerticle(java.lang.String deploymentID)
deploymentID
- The deployment ID
void undeployVerticle(java.lang.String deploymentID, groovy.lang.Closure doneHandler)
deploymentID
- The deployment IDdoneHandler
- The handler will be called when undeployment is complete
Groovy Documentation