public interface ActiveNetwork extends ActiveConfig<NetworkConfig>
ActiveNetwork will
be returned by Vertigo. The active network can be used to asynchronously
reconfigure the network by calling normal configuration methods similar
to those available on the NetworkConfig and related APIs.When a network configuration is updated via an active network, the network will automatically pick up the changes and perform deployments or create or destroy internal connections as necessary. Because Vertigo networks are fault-tolerant, the networks may not necessarily be reconfigured immediately. If a network manager has failed, the network will not be reconfigured until the manager has been redeployed, but the reconfiguration will still occur at some point as long as all instances in the Vert.x cluster are not lost.
| Modifier and Type | Method and Description |
|---|---|
<T extends ComponentConfig<T>> |
addComponent(String name,
String moduleOrMain)
Adds a component to the network.
|
<T extends ComponentConfig<T>> |
addComponent(String name,
String moduleOrMain,
org.vertx.java.core.Handler<org.vertx.java.core.AsyncResult<ActiveNetwork>> doneHandler)
Adds a component to the network.
|
<T extends ComponentConfig<T>> |
addComponent(String name,
String moduleOrMain,
int instances)
Adds a component to the network.
|
<T extends ComponentConfig<T>> |
addComponent(String name,
String moduleOrMain,
int instances,
org.vertx.java.core.Handler<org.vertx.java.core.AsyncResult<ActiveNetwork>> doneHandler)
Adds a component to the network.
|
<T extends ComponentConfig<T>> |
addComponent(String name,
String moduleOrMain,
org.vertx.java.core.json.JsonObject config)
Adds a component to the network.
|
<T extends ComponentConfig<T>> |
addComponent(String name,
String moduleOrMain,
org.vertx.java.core.json.JsonObject config,
org.vertx.java.core.Handler<org.vertx.java.core.AsyncResult<ActiveNetwork>> doneHandler)
Adds a component to the network.
|
<T extends ComponentConfig<T>> |
addComponent(String name,
String moduleOrMain,
org.vertx.java.core.json.JsonObject config,
int instances)
Adds a component to the network.
|
<T extends ComponentConfig<T>> |
addComponent(String name,
String moduleOrMain,
org.vertx.java.core.json.JsonObject config,
int instances,
org.vertx.java.core.Handler<org.vertx.java.core.AsyncResult<ActiveNetwork>> doneHandler)
Adds a component to the network.
|
<T extends ComponentConfig<T>> |
addComponent(T component)
Adds a component to the network.
|
<T extends ComponentConfig<T>> |
addComponent(T component,
org.vertx.java.core.Handler<org.vertx.java.core.AsyncResult<ActiveNetwork>> doneHandler)
Adds a component to the network.
|
ModuleConfig |
addModule(ModuleConfig module)
Adds a module component to the network.
|
ModuleConfig |
addModule(ModuleConfig module,
org.vertx.java.core.Handler<org.vertx.java.core.AsyncResult<ActiveNetwork>> doneHandler)
Adds a module component to the network.
|
ModuleConfig |
addModule(String name,
String moduleName)
Adds a module component to the network.
|
ModuleConfig |
addModule(String name,
String moduleName,
org.vertx.java.core.Handler<org.vertx.java.core.AsyncResult<ActiveNetwork>> doneHandler)
Adds a module component to the network.
|
ModuleConfig |
addModule(String name,
String moduleName,
int instances)
Adds a module component to the network.
|
ModuleConfig |
addModule(String name,
String moduleName,
int instances,
org.vertx.java.core.Handler<org.vertx.java.core.AsyncResult<ActiveNetwork>> doneHandler)
Adds a module component to the network.
|
ModuleConfig |
addModule(String name,
String moduleName,
org.vertx.java.core.json.JsonObject config)
Adds a module component to the network.
|
ModuleConfig |
addModule(String name,
String moduleName,
org.vertx.java.core.json.JsonObject config,
org.vertx.java.core.Handler<org.vertx.java.core.AsyncResult<ActiveNetwork>> doneHandler)
Adds a module component to the network.
|
ModuleConfig |
addModule(String name,
String moduleName,
org.vertx.java.core.json.JsonObject config,
int instances)
Adds a module component to the network.
|
ModuleConfig |
addModule(String name,
String moduleName,
org.vertx.java.core.json.JsonObject config,
int instances,
org.vertx.java.core.Handler<org.vertx.java.core.AsyncResult<ActiveNetwork>> doneHandler)
Adds a module component to the network.
|
VerticleConfig |
addVerticle(String name,
String main)
Adds a verticle component to the network.
|
VerticleConfig |
addVerticle(String name,
String main,
org.vertx.java.core.Handler<org.vertx.java.core.AsyncResult<ActiveNetwork>> doneHandler)
Adds a verticle component to the network.
|
VerticleConfig |
addVerticle(String name,
String main,
int instances)
Adds a verticle component to the network.
|
VerticleConfig |
addVerticle(String name,
String main,
int instances,
org.vertx.java.core.Handler<org.vertx.java.core.AsyncResult<ActiveNetwork>> doneHandler)
Adds a verticle component to the network.
|
VerticleConfig |
addVerticle(String name,
String main,
org.vertx.java.core.json.JsonObject config)
Adds a verticle component to the network.
|
VerticleConfig |
addVerticle(String name,
String main,
org.vertx.java.core.json.JsonObject config,
org.vertx.java.core.Handler<org.vertx.java.core.AsyncResult<ActiveNetwork>> doneHandler)
Adds a verticle component to the network.
|
VerticleConfig |
addVerticle(String name,
String main,
org.vertx.java.core.json.JsonObject config,
int instances)
Adds a verticle component to the network.
|
VerticleConfig |
addVerticle(String name,
String main,
org.vertx.java.core.json.JsonObject config,
int instances,
org.vertx.java.core.Handler<org.vertx.java.core.AsyncResult<ActiveNetwork>> doneHandler)
Adds a verticle component to the network.
|
VerticleConfig |
addVerticle(VerticleConfig verticle)
Adds a verticle component to the network.
|
VerticleConfig |
addVerticle(VerticleConfig verticle,
org.vertx.java.core.Handler<org.vertx.java.core.AsyncResult<ActiveNetwork>> doneHandler)
Adds a verticle component to the network.
|
ConnectionConfig |
createConnection(ConnectionConfig connection)
Creates a connection between two components in the network.
|
ConnectionConfig |
createConnection(ConnectionConfig connection,
org.vertx.java.core.Handler<org.vertx.java.core.AsyncResult<ActiveNetwork>> doneHandler)
Creates a connection between two components in the network.
|
ConnectionConfig |
createConnection(String source,
String target)
Creates a connection between two components in the network.
|
ConnectionConfig |
createConnection(String source,
String target,
org.vertx.java.core.Handler<org.vertx.java.core.AsyncResult<ActiveNetwork>> doneHandler)
Creates a connection between two components in the network.
|
ConnectionConfig |
createConnection(String source,
String target,
Selector selector)
Creates a connection between two components in the network.
|
ConnectionConfig |
createConnection(String source,
String target,
Selector selector,
org.vertx.java.core.Handler<org.vertx.java.core.AsyncResult<ActiveNetwork>> doneHandler)
Creates a connection between two components in the network.
|
ConnectionConfig |
createConnection(String source,
String out,
String target,
String in)
Creates a connection between two components in the network.
|
ConnectionConfig |
createConnection(String source,
String out,
String target,
String in,
org.vertx.java.core.Handler<org.vertx.java.core.AsyncResult<ActiveNetwork>> doneHandler)
Creates a connection between two components in the network.
|
ConnectionConfig |
createConnection(String source,
String out,
String target,
String in,
Selector selector)
Creates a connection between two components in the network.
|
ConnectionConfig |
createConnection(String source,
String out,
String target,
String in,
Selector selector,
org.vertx.java.core.Handler<org.vertx.java.core.AsyncResult<ActiveNetwork>> doneHandler)
Creates a connection between two components in the network.
|
ActiveNetwork |
destroyConnection(ConnectionConfig connection)
Destroys a connection between two components in the network.
|
ActiveNetwork |
destroyConnection(ConnectionConfig connection,
org.vertx.java.core.Handler<org.vertx.java.core.AsyncResult<ActiveNetwork>> doneHandler)
Destroys a connection between two components in the network.
|
ActiveNetwork |
destroyConnection(String source,
String target)
Destroys a connection between two components in the network.
|
ActiveNetwork |
destroyConnection(String source,
String target,
org.vertx.java.core.Handler<org.vertx.java.core.AsyncResult<ActiveNetwork>> doneHandler)
Destroys a connection between two components in the network.
|
ActiveNetwork |
destroyConnection(String source,
String out,
String target,
String in)
Destroys a connection between two components in the network.
|
ActiveNetwork |
destroyConnection(String source,
String out,
String target,
String in,
org.vertx.java.core.Handler<org.vertx.java.core.AsyncResult<ActiveNetwork>> doneHandler)
Destroys a connection between two components in the network.
|
<T extends ComponentConfig<T>> |
removeComponent(String name)
Removes a component from the network.
|
<T extends ComponentConfig<T>> |
removeComponent(String name,
org.vertx.java.core.Handler<org.vertx.java.core.AsyncResult<ActiveNetwork>> doneHandler)
Removes a component from the network.
|
<T extends ComponentConfig<T>> |
removeComponent(T component)
Removes a component from the network.
|
<T extends ComponentConfig<T>> |
removeComponent(T component,
org.vertx.java.core.Handler<org.vertx.java.core.AsyncResult<ActiveNetwork>> doneHandler)
Removes a component from the network.
|
ModuleConfig |
removeModule(ModuleConfig module)
Removes a module component from the network.
|
ModuleConfig |
removeModule(ModuleConfig module,
org.vertx.java.core.Handler<org.vertx.java.core.AsyncResult<ActiveNetwork>> doneHandler)
Removes a module component from the network.
|
ModuleConfig |
removeModule(String name)
Removes a module component from the network.
|
ModuleConfig |
removeModule(String name,
org.vertx.java.core.Handler<org.vertx.java.core.AsyncResult<ActiveNetwork>> doneHandler)
Removes a module component from the network.
|
VerticleConfig |
removeVerticle(String name)
Removes a verticle component from the network.
|
VerticleConfig |
removeVerticle(String name,
org.vertx.java.core.Handler<org.vertx.java.core.AsyncResult<ActiveNetwork>> doneHandler)
Removes a verticle component from the network.
|
VerticleConfig |
removeVerticle(VerticleConfig verticle)
Removes a verticle component from the network.
|
VerticleConfig |
removeVerticle(VerticleConfig verticle,
org.vertx.java.core.Handler<org.vertx.java.core.AsyncResult<ActiveNetwork>> doneHandler)
Removes a verticle component from the network.
|
getConfig<T extends ComponentConfig<T>> T addComponent(T component)
component - The component to add.<T extends ComponentConfig<T>> T addComponent(T component, org.vertx.java.core.Handler<org.vertx.java.core.AsyncResult<ActiveNetwork>> doneHandler)
component - The component to add.doneHandler - An asynchronous handler to be called once complete.<T extends ComponentConfig<T>> T addComponent(String name, String moduleOrMain)
name - The name of the component to add.moduleOrMain - The component module name or verticle main.<T extends ComponentConfig<T>> T addComponent(String name, String moduleOrMain, org.vertx.java.core.json.JsonObject config)
name - The name of the component to add.moduleOrMain - The component module name or verticle main.config - The component configuration.<T extends ComponentConfig<T>> T addComponent(String name, String moduleOrMain, int instances)
name - The name of the component to add.moduleOrMain - The component module name or verticle main.instances - The number of instances of the component.<T extends ComponentConfig<T>> T addComponent(String name, String moduleOrMain, org.vertx.java.core.json.JsonObject config, int instances)
name - The name of the component to add.moduleOrMain - The component module name or verticle main.config - The component configuration.instances - The number of instances of the component.<T extends ComponentConfig<T>> T addComponent(String name, String moduleOrMain, org.vertx.java.core.Handler<org.vertx.java.core.AsyncResult<ActiveNetwork>> doneHandler)
name - The name of the component to add.moduleOrMain - The component module name or verticle main.doneHandler - An asynchronous handler to be called once complete.<T extends ComponentConfig<T>> T addComponent(String name, String moduleOrMain, org.vertx.java.core.json.JsonObject config, org.vertx.java.core.Handler<org.vertx.java.core.AsyncResult<ActiveNetwork>> doneHandler)
name - The name of the component to add.moduleOrMain - The component module name or verticle main.config - The component configuration.doneHandler - An asynchronous handler to be called once complete.<T extends ComponentConfig<T>> T addComponent(String name, String moduleOrMain, int instances, org.vertx.java.core.Handler<org.vertx.java.core.AsyncResult<ActiveNetwork>> doneHandler)
name - The name of the component to add.moduleOrMain - The component module name or verticle main.instances - The number of instances of the component.doneHandler - An asynchronous handler to be called once complete.<T extends ComponentConfig<T>> T addComponent(String name, String moduleOrMain, org.vertx.java.core.json.JsonObject config, int instances, org.vertx.java.core.Handler<org.vertx.java.core.AsyncResult<ActiveNetwork>> doneHandler)
name - The name of the component to add.moduleOrMain - The component module name or verticle main.config - The component configuration.instances - The number of instances of the component.doneHandler - An asynchronous handler to be called once complete.<T extends ComponentConfig<T>> T removeComponent(T component)
component - The component to remove.<T extends ComponentConfig<T>> T removeComponent(T component, org.vertx.java.core.Handler<org.vertx.java.core.AsyncResult<ActiveNetwork>> doneHandler)
component - The component to remove.doneHandler - An asynchronous handler to be called once complete.<T extends ComponentConfig<T>> T removeComponent(String name)
name - The name of the component to remove.<T extends ComponentConfig<T>> T removeComponent(String name, org.vertx.java.core.Handler<org.vertx.java.core.AsyncResult<ActiveNetwork>> doneHandler)
name - The name of the component to remove.doneHandler - An asynchronous handler to be called once complete.ModuleConfig addModule(ModuleConfig module)
module - The module component configuration.ModuleConfig addModule(ModuleConfig module, org.vertx.java.core.Handler<org.vertx.java.core.AsyncResult<ActiveNetwork>> doneHandler)
module - The module component configuration.doneHandler - An asynchronous handler to be called once complete.ModuleConfig addModule(String name, String moduleName)
name - The name of the component to add.moduleName - The component module name.ModuleConfig addModule(String name, String moduleName, org.vertx.java.core.json.JsonObject config)
name - The name of the component to add.moduleName - The component module name.config - The module component configuration.ModuleConfig addModule(String name, String moduleName, int instances)
name - The name of the component to add.moduleName - The component module name.instances - The number of instances to be deployed.ModuleConfig addModule(String name, String moduleName, org.vertx.java.core.json.JsonObject config, int instances)
name - The name of the component to add.moduleName - The component module name.config - The module component configuration.instances - The number of instances to be deployed.ModuleConfig addModule(String name, String moduleName, org.vertx.java.core.Handler<org.vertx.java.core.AsyncResult<ActiveNetwork>> doneHandler)
name - The name of the component to add.moduleName - The component module name.doneHandler - An asynchronous handler to be called once complete.ModuleConfig addModule(String name, String moduleName, org.vertx.java.core.json.JsonObject config, org.vertx.java.core.Handler<org.vertx.java.core.AsyncResult<ActiveNetwork>> doneHandler)
name - The name of the component to add.moduleName - The component module name.config - The module component configuration.doneHandler - An asynchronous handler to be called once complete.ModuleConfig addModule(String name, String moduleName, int instances, org.vertx.java.core.Handler<org.vertx.java.core.AsyncResult<ActiveNetwork>> doneHandler)
name - The name of the component to add.moduleName - The component module name.instances - The number of instances to be deployed.doneHandler - An asynchronous handler to be called once complete.ModuleConfig addModule(String name, String moduleName, org.vertx.java.core.json.JsonObject config, int instances, org.vertx.java.core.Handler<org.vertx.java.core.AsyncResult<ActiveNetwork>> doneHandler)
name - The name of the component to add.moduleName - The component module name.config - The module component configuration.instances - The number of instances to be deployed.doneHandler - An asynchronous handler to be called once complete.ModuleConfig removeModule(ModuleConfig module)
module - The module configuration to remove.ModuleConfig removeModule(ModuleConfig module, org.vertx.java.core.Handler<org.vertx.java.core.AsyncResult<ActiveNetwork>> doneHandler)
module - The module configuration to remove.doneHandler - An asynchronous handler to be called once complete.ModuleConfig removeModule(String name)
name - The name of the module component to remove.ModuleConfig removeModule(String name, org.vertx.java.core.Handler<org.vertx.java.core.AsyncResult<ActiveNetwork>> doneHandler)
name - The name of the module component to remove.doneHandler - An asynchronous handler to be called once complete.VerticleConfig addVerticle(VerticleConfig verticle)
verticle - The verticle component configuration.VerticleConfig addVerticle(VerticleConfig verticle, org.vertx.java.core.Handler<org.vertx.java.core.AsyncResult<ActiveNetwork>> doneHandler)
verticle - The verticle component configuration.doneHandler - An asynchronous handler to be called once complete.VerticleConfig addVerticle(String name, String main)
name - The name of the component to add.main - The component verticle main.VerticleConfig addVerticle(String name, String main, org.vertx.java.core.json.JsonObject config)
name - The name of the component to add.main - The component verticle main.config - The verticle component configuration.VerticleConfig addVerticle(String name, String main, int instances)
name - The name of the component to add.main - The component verticle main.instances - The number of instances to be deployed.VerticleConfig addVerticle(String name, String main, org.vertx.java.core.json.JsonObject config, int instances)
name - The name of the component to add.main - The component verticle main.config - The verticle component configuration.instances - The number of instances to be deployed.VerticleConfig addVerticle(String name, String main, org.vertx.java.core.Handler<org.vertx.java.core.AsyncResult<ActiveNetwork>> doneHandler)
name - The name of the component to add.main - The component verticle main.doneHandler - An asynchronous handler to be called once complete.VerticleConfig addVerticle(String name, String main, org.vertx.java.core.json.JsonObject config, org.vertx.java.core.Handler<org.vertx.java.core.AsyncResult<ActiveNetwork>> doneHandler)
name - The name of the component to add.main - The component verticle main.config - The verticle component configuration.doneHandler - An asynchronous handler to be called once complete.VerticleConfig addVerticle(String name, String main, int instances, org.vertx.java.core.Handler<org.vertx.java.core.AsyncResult<ActiveNetwork>> doneHandler)
name - The name of the component to add.main - The component verticle main.instances - The number of instances to be deployed.doneHandler - An asynchronous handler to be called once complete.VerticleConfig addVerticle(String name, String main, org.vertx.java.core.json.JsonObject config, int instances, org.vertx.java.core.Handler<org.vertx.java.core.AsyncResult<ActiveNetwork>> doneHandler)
name - The name of the component to add.main - The component verticle main.config - The verticle component configuration.instances - The number of instances to be deployed.doneHandler - An asynchronous handler to be called once complete.VerticleConfig removeVerticle(VerticleConfig verticle)
verticle - The verticle configuration to remove.VerticleConfig removeVerticle(VerticleConfig verticle, org.vertx.java.core.Handler<org.vertx.java.core.AsyncResult<ActiveNetwork>> doneHandler)
verticle - The verticle configuration to remove.doneHandler - An asynchronous handler to be called once complete.VerticleConfig removeVerticle(String name)
name - The name of the verticle component to remove.VerticleConfig removeVerticle(String name, org.vertx.java.core.Handler<org.vertx.java.core.AsyncResult<ActiveNetwork>> doneHandler)
name - The name of the verticle component to remove.doneHandler - An asynchronous handler to be called once complete.ConnectionConfig createConnection(ConnectionConfig connection)
connection - The connection configuration.ConnectionConfig createConnection(ConnectionConfig connection, org.vertx.java.core.Handler<org.vertx.java.core.AsyncResult<ActiveNetwork>> doneHandler)
connection - The connection configuration.doneHandler - An asynchronous handler to be called once complete.ConnectionConfig createConnection(String source, String target)
source - The connection source and port.target - The connection target and port.ConnectionConfig createConnection(String source, String target, Selector selector)
source - The connection source and port.target - The connection target and port.selector - The connection selector.ConnectionConfig createConnection(String source, String out, String target, String in)
source - The connection source.out - The connection source out port.target - The connection target.in - The connection target in port.ConnectionConfig createConnection(String source, String out, String target, String in, Selector selector)
source - The connection source.out - The connection source out port.target - The connection target.in - The connection target in port.selector - The connection selector.ConnectionConfig createConnection(String source, String target, org.vertx.java.core.Handler<org.vertx.java.core.AsyncResult<ActiveNetwork>> doneHandler)
source - The connection source and port.target - The connection target and port.doneHandler - An asynchronous handler to be called once complete.ConnectionConfig createConnection(String source, String target, Selector selector, org.vertx.java.core.Handler<org.vertx.java.core.AsyncResult<ActiveNetwork>> doneHandler)
source - The connection source and port.target - The connection target and port.selector - The connection selector.doneHandler - An asynchronous handler to be called once complete.ConnectionConfig createConnection(String source, String out, String target, String in, org.vertx.java.core.Handler<org.vertx.java.core.AsyncResult<ActiveNetwork>> doneHandler)
source - The connection source.out - The connection source out port.target - The connection target.in - The connection target in port.doneHandler - An asynchronous handler to be called once complete.ConnectionConfig createConnection(String source, String out, String target, String in, Selector selector, org.vertx.java.core.Handler<org.vertx.java.core.AsyncResult<ActiveNetwork>> doneHandler)
source - The connection source.out - The connection source out port.target - The connection target.in - The connection target in port.selector - The connection selector.doneHandler - An asynchronous handler to be called once complete.ActiveNetwork destroyConnection(ConnectionConfig connection)
connection - The connection configuration to destroy.ActiveNetwork destroyConnection(String source, String target)
source - The connection source and port.target - The connection target and port.ActiveNetwork destroyConnection(String source, String out, String target, String in)
source - The connection source.out - The connection source out port.target - The connection target.in - The connection target in port.ActiveNetwork destroyConnection(ConnectionConfig connection, org.vertx.java.core.Handler<org.vertx.java.core.AsyncResult<ActiveNetwork>> doneHandler)
connection - The connection configuration to destroy.doneHandler - An asynchronous handler to be called once complete.ActiveNetwork destroyConnection(String source, String target, org.vertx.java.core.Handler<org.vertx.java.core.AsyncResult<ActiveNetwork>> doneHandler)
source - The connection source and port.target - The connection target and port.doneHandler - An asynchronous handler to be called once complete.ActiveNetwork destroyConnection(String source, String out, String target, String in, org.vertx.java.core.Handler<org.vertx.java.core.AsyncResult<ActiveNetwork>> doneHandler)
source - The connection source.out - The connection source out port.target - The connection target.in - The connection target in port.doneHandler - An asynchronous handler to be called once complete.Copyright © 2013-2014. All Rights Reserved.