Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  package com.englishtown.vertx.promises;
  
  
  import java.util.List;

When.java wrapper over a vert.x org.vertx.java.platform.Container
 
 public interface WhenContainer {

    
Deploy a verticle programmatically

Parameters:
main The main of the verticle
 
     Promise<StringdeployVerticle(String main);

    
Deploy a verticle programmatically

Parameters:
main The main of the verticle
config JSON config to provide to the verticle
 
     Promise<StringdeployVerticle(String mainJsonObject config);

    
Deploy a verticle programmatically

Parameters:
main The main of the verticle
instances The number of instances to deploy (defaults to 1)
 
     Promise<StringdeployVerticle(String mainint instances);

    
Deploy a verticle programmatically

Parameters:
main The main of the verticle
config JSON config to provide to the verticle
instances The number of instances to deploy (defaults to 1)
 
     Promise<StringdeployVerticle(String mainJsonObject configint instances);

    
Deploy a module programmatically

Parameters:
moduleName The main of the module to deploy
 
     Promise<StringdeployModule(String moduleName);

    
Deploy a module programmatically

Parameters:
moduleName The main of the module to deploy
config JSON config to provide to the module
 
     Promise<StringdeployModule(String moduleNameJsonObject config);

    
Deploy a module programmatically

Parameters:
moduleName The main of the module to deploy
instances The number of instances to deploy (defaults to 1)
 
     Promise<StringdeployModule(String moduleNameint instances);

    
Deploy a module programmatically

Parameters:
moduleName The main of the module to deploy
config JSON config to provide to the module
instances The number of instances to deploy (defaults to 1)
 
     Promise<StringdeployModule(String moduleNameJsonObject configint instances);

    
Deploy a worker verticle programmatically

Parameters:
main The main of the verticle
multiThreaded if true then the verticle will be deployed as a multi-threaded worker
 
     Promise<StringdeployWorkerVerticle(String mainboolean multiThreaded);

    
Deploy a worker verticle programmatically

Parameters:
main The main of the verticle
config JSON config to provide to the verticle
multiThreaded if true then the verticle will be deployed as a multi-threaded worker
 
     Promise<StringdeployWorkerVerticle(String mainJsonObject configboolean multiThreaded);

    
Deploy a worker verticle programmatically

Parameters:
main The main of the verticle
instances The number of instances to deploy (defaults to 1)
multiThreaded if true then the verticle will be deployed as a multi-threaded worker
    Promise<StringdeployWorkerVerticle(String mainint instancesboolean multiThreaded);

    
Deploy a worker verticle programmatically

Parameters:
main The main of the verticle
config JSON config to provide to the verticle
instances The number of instances to deploy (defaults to 1)
multiThreaded if true then the verticle will be deployed as a multi-threaded worker
    Promise<StringdeployWorkerVerticle(String mainJsonObject configint instancesboolean multiThreaded);

    
Undeploy a verticle

Parameters:
deploymentID The deployment ID
    Promise<VoidundeployVerticle(String deploymentID);

    
Undeploy a module

Parameters:
deploymentID The deployment ID
    Promise<VoidundeployModule(String deploymentID);

    
Deploys one or more modules. The Json is of the structure: [ { "name": "groupId~artifactId~version", "instances": 1, "config": {} } ]

Parameters:
modules
Returns:
New to GrepCode? Check out our FAQ X