public interface PlatformManager
The platform manager facilitates zipping, installing, uninstalling, and deploying modules. This allows Vertigo to read the local module system and distribute modules across the Vertigo cluster.
| Modifier and Type | Method and Description |
|---|---|
PlatformManager |
deployModule(String moduleName,
org.vertx.java.core.json.JsonObject config,
int instances,
org.vertx.java.core.Handler<org.vertx.java.core.AsyncResult<String>> doneHandler)
Deploys a local module.
|
PlatformManager |
deployVerticle(String main,
org.vertx.java.core.json.JsonObject config,
int instances,
org.vertx.java.core.Handler<org.vertx.java.core.AsyncResult<String>> doneHandler)
Deploys a verticle.
|
PlatformManager |
deployWorkerVerticle(String main,
org.vertx.java.core.json.JsonObject config,
int instances,
boolean multiThreaded,
org.vertx.java.core.Handler<org.vertx.java.core.AsyncResult<String>> doneHandler)
Deploys a worker verticle.
|
PlatformManager |
getModuleInfo(org.vertx.java.core.Handler<org.vertx.java.core.AsyncResult<Collection<ModuleInfo>>> resultHandler)
Loads module info for all local modules.
|
PlatformManager |
getModuleInfo(String moduleName,
org.vertx.java.core.Handler<org.vertx.java.core.AsyncResult<ModuleInfo>> doneHandler)
Loads module info for a local module.
|
PlatformManager |
installModule(String moduleZip,
org.vertx.java.core.Handler<org.vertx.java.core.AsyncResult<Void>> doneHandler)
Installs a module from a zip file.
|
PlatformManager |
undeployModule(String deploymentID,
org.vertx.java.core.Handler<org.vertx.java.core.AsyncResult<Void>> doneHandler)
Undeploys a module from the local container.
|
PlatformManager |
undeployVerticle(String deploymentID,
org.vertx.java.core.Handler<org.vertx.java.core.AsyncResult<Void>> doneHandler)
Undeploys a verticle from the local container.
|
PlatformManager |
uninstallModule(String moduleName,
org.vertx.java.core.Handler<org.vertx.java.core.AsyncResult<Void>> doneHandler)
Uninstalls a locally installed module.
|
PlatformManager |
zipModule(String zipFile,
org.vertx.java.core.Handler<org.vertx.java.core.AsyncResult<String>> doneHandler)
Zips a local module.
|
PlatformManager getModuleInfo(org.vertx.java.core.Handler<org.vertx.java.core.AsyncResult<Collection<ModuleInfo>>> resultHandler)
resultHandler - An asynchronous handler to be called once complete.
The handler will be called with a collection of module info from which
the module identifier and configuration can be read.PlatformManager getModuleInfo(String moduleName, org.vertx.java.core.Handler<org.vertx.java.core.AsyncResult<ModuleInfo>> doneHandler)
moduleName - The name of the module for which to load info.doneHandler - An asynchronous handler to be called once complete.PlatformManager zipModule(String zipFile, org.vertx.java.core.Handler<org.vertx.java.core.AsyncResult<String>> doneHandler)
moduleName - The name of the module to zip.doneHandler - An asynchronous handler to be called once complete. The handler will
be called with the full path to the module zip file.PlatformManager installModule(String moduleZip, org.vertx.java.core.Handler<org.vertx.java.core.AsyncResult<Void>> doneHandler)
moduleZip - The full path to the module zip file.doneHandler - An asynchronous handler to be called once complete.PlatformManager uninstallModule(String moduleName, org.vertx.java.core.Handler<org.vertx.java.core.AsyncResult<Void>> doneHandler)
moduleName - The name of the module to uninstall.doneHandler - An asynchronous handler to be called once complete.PlatformManager deployModule(String moduleName, org.vertx.java.core.json.JsonObject config, int instances, org.vertx.java.core.Handler<org.vertx.java.core.AsyncResult<String>> doneHandler)
moduleName - The name of the module to deploy.config - The module configuration.instances - The number of instances to deploy.doneHandler - An asynchronous handler to be called with the unique deployment ID.PlatformManager deployVerticle(String main, org.vertx.java.core.json.JsonObject config, int instances, org.vertx.java.core.Handler<org.vertx.java.core.AsyncResult<String>> doneHandler)
main - The verticle main.config - The verticle configuration.instances - The number of instances to deploy.doneHandler - An asynchronous handler to be called once complete.PlatformManager deployWorkerVerticle(String main, org.vertx.java.core.json.JsonObject config, int instances, boolean multiThreaded, org.vertx.java.core.Handler<org.vertx.java.core.AsyncResult<String>> doneHandler)
main - The verticle main.config - The verticle configuration.instances - The number of instances to deploy.multiThreaded - Whether the verticle should be deployed multi-threaded.doneHandler - An asynchronous handler to be called once complete.PlatformManager undeployModule(String deploymentID, org.vertx.java.core.Handler<org.vertx.java.core.AsyncResult<Void>> doneHandler)
deploymentID - The module deployment ID.doneHandler - An asynchronous handler to be called once complete.PlatformManager undeployVerticle(String deploymentID, org.vertx.java.core.Handler<org.vertx.java.core.AsyncResult<Void>> doneHandler)
deploymentID - The verticle deployment ID.doneHandler - An asynchronous handler to be called once complete.Copyright © 2013-2014. All Rights Reserved.