public class DefaultPlatformManager extends Object implements PlatformManager
| Constructor and Description |
|---|
DefaultPlatformManager(org.vertx.java.core.Vertx vertx,
org.vertx.java.platform.Container container) |
DefaultPlatformManager(org.vertx.java.core.Vertx vertx,
org.vertx.java.platform.Container container,
ContextManager context) |
| 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>> resultHandler)
Loads module info for a local module.
|
PlatformManager |
installModule(String zipFile,
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 moduleName,
org.vertx.java.core.Handler<org.vertx.java.core.AsyncResult<String>> doneHandler)
Zips a local module.
|
public DefaultPlatformManager(org.vertx.java.core.Vertx vertx,
org.vertx.java.platform.Container container)
public DefaultPlatformManager(org.vertx.java.core.Vertx vertx,
org.vertx.java.platform.Container container,
ContextManager context)
public PlatformManager getModuleInfo(org.vertx.java.core.Handler<org.vertx.java.core.AsyncResult<Collection<ModuleInfo>>> resultHandler)
PlatformManagergetModuleInfo in interface PlatformManagerresultHandler - 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.public PlatformManager getModuleInfo(String moduleName, org.vertx.java.core.Handler<org.vertx.java.core.AsyncResult<ModuleInfo>> resultHandler)
PlatformManagergetModuleInfo in interface PlatformManagermoduleName - The name of the module for which to load info.resultHandler - An asynchronous handler to be called once complete.public PlatformManager zipModule(String moduleName, org.vertx.java.core.Handler<org.vertx.java.core.AsyncResult<String>> doneHandler)
PlatformManagerzipModule in interface PlatformManagerdoneHandler - An asynchronous handler to be called once complete. The handler will
be called with the full path to the module zip file.public PlatformManager installModule(String zipFile, org.vertx.java.core.Handler<org.vertx.java.core.AsyncResult<Void>> doneHandler)
PlatformManagerinstallModule in interface PlatformManagerzipFile - The full path to the module zip file.doneHandler - An asynchronous handler to be called once complete.public PlatformManager uninstallModule(String moduleName, org.vertx.java.core.Handler<org.vertx.java.core.AsyncResult<Void>> doneHandler)
PlatformManageruninstallModule in interface PlatformManagermoduleName - The name of the module to uninstall.doneHandler - An asynchronous handler to be called once complete.public 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)
PlatformManagerdeployModule in interface PlatformManagermoduleName - 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.public 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)
PlatformManagerdeployVerticle in interface PlatformManagermain - The verticle main.config - The verticle configuration.instances - The number of instances to deploy.doneHandler - An asynchronous handler to be called once complete.public 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)
PlatformManagerdeployWorkerVerticle in interface PlatformManagermain - 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.public PlatformManager undeployModule(String deploymentID, org.vertx.java.core.Handler<org.vertx.java.core.AsyncResult<Void>> doneHandler)
PlatformManagerundeployModule in interface PlatformManagerdeploymentID - The module deployment ID.doneHandler - An asynchronous handler to be called once complete.public PlatformManager undeployVerticle(String deploymentID, org.vertx.java.core.Handler<org.vertx.java.core.AsyncResult<Void>> doneHandler)
PlatformManagerundeployVerticle in interface PlatformManagerdeploymentID - The verticle deployment ID.doneHandler - An asynchronous handler to be called once complete.Copyright © 2013-2014. All Rights Reserved.