public class DefaultNode extends Object implements Node
| Constructor and Description |
|---|
DefaultNode(String address,
org.vertx.java.core.Vertx vertx,
org.vertx.java.platform.Container container) |
| Modifier and Type | Method and Description |
|---|---|
String |
address()
Returns the node address.
|
Node |
deployModule(String moduleName)
Deploys a module to the node.
|
Node |
deployModule(String moduleName,
org.vertx.java.core.Handler<org.vertx.java.core.AsyncResult<String>> doneHandler)
Deploys a module to the node.
|
Node |
deployModule(String moduleName,
int instances)
Deploys a module to the node.
|
Node |
deployModule(String moduleName,
int instances,
org.vertx.java.core.Handler<org.vertx.java.core.AsyncResult<String>> doneHandler)
Deploys a module to the node.
|
Node |
deployModule(String moduleName,
org.vertx.java.core.json.JsonObject config)
Deploys a module to the node.
|
Node |
deployModule(String moduleName,
org.vertx.java.core.json.JsonObject config,
org.vertx.java.core.Handler<org.vertx.java.core.AsyncResult<String>> doneHandler)
Deploys a module to the node.
|
Node |
deployModule(String moduleName,
org.vertx.java.core.json.JsonObject config,
int instances)
Deploys a module to the node.
|
Node |
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 module to the node.
|
Node |
deployVerticle(String main)
Deploys a verticle to the node.
|
Node |
deployVerticle(String main,
org.vertx.java.core.Handler<org.vertx.java.core.AsyncResult<String>> doneHandler)
Deploys a verticle to the node.
|
Node |
deployVerticle(String main,
int instances)
Deploys a verticle to the node.
|
Node |
deployVerticle(String main,
int instances,
org.vertx.java.core.Handler<org.vertx.java.core.AsyncResult<String>> doneHandler)
Deploys a verticle to the node.
|
Node |
deployVerticle(String main,
org.vertx.java.core.json.JsonObject config)
Deploys a verticle to the node.
|
Node |
deployVerticle(String main,
org.vertx.java.core.json.JsonObject config,
org.vertx.java.core.Handler<org.vertx.java.core.AsyncResult<String>> doneHandler)
Deploys a verticle to the node.
|
Node |
deployVerticle(String main,
org.vertx.java.core.json.JsonObject config,
int instances)
Deploys a verticle to the node.
|
Node |
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 to the node.
|
Node |
deployWorkerVerticle(String main)
Deploys a worker verticle to the node.
|
Node |
deployWorkerVerticle(String main,
org.vertx.java.core.Handler<org.vertx.java.core.AsyncResult<String>> doneHandler)
Deploys a worker verticle to the node.
|
Node |
deployWorkerVerticle(String main,
int instances)
Deploys a worker verticle to the node.
|
Node |
deployWorkerVerticle(String main,
int instances,
org.vertx.java.core.Handler<org.vertx.java.core.AsyncResult<String>> doneHandler)
Deploys a worker verticle to the node.
|
Node |
deployWorkerVerticle(String main,
org.vertx.java.core.json.JsonObject config)
Deploys a worker verticle to the node.
|
Node |
deployWorkerVerticle(String main,
org.vertx.java.core.json.JsonObject config,
org.vertx.java.core.Handler<org.vertx.java.core.AsyncResult<String>> doneHandler)
Deploys a worker verticle to the node.
|
Node |
deployWorkerVerticle(String main,
org.vertx.java.core.json.JsonObject config,
int instances,
boolean multiThreaded)
Deploys a worker verticle to the node.
|
Node |
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 to the node.
|
boolean |
equals(Object object) |
Node |
installModule(String moduleName)
Installs a local module to the node.
|
Node |
installModule(String moduleName,
org.vertx.java.core.Handler<org.vertx.java.core.AsyncResult<Void>> doneHandler)
Installs a local module to the node.
|
Node |
ping(org.vertx.java.core.Handler<org.vertx.java.core.AsyncResult<Node>> resultHandler)
Pings the node.
|
String |
toString() |
Node |
undeployModule(String deploymentID)
Undeploys a module from the node.
|
Node |
undeployModule(String deploymentID,
org.vertx.java.core.Handler<org.vertx.java.core.AsyncResult<Void>> doneHandler)
Undeploys a module from the node.
|
Node |
undeployVerticle(String deploymentID)
Undeploys a verticle from the node.
|
Node |
undeployVerticle(String deploymentID,
org.vertx.java.core.Handler<org.vertx.java.core.AsyncResult<Void>> doneHandler)
Undeploys a verticle from the node.
|
Node |
uninstallModule(String moduleName)
Uninstalls a module from the node.
|
Node |
uninstallModule(String moduleName,
org.vertx.java.core.Handler<org.vertx.java.core.AsyncResult<Void>> doneHandler)
Uninstalls a module from the node.
|
public DefaultNode(String address, org.vertx.java.core.Vertx vertx, org.vertx.java.platform.Container container)
public Node ping(org.vertx.java.core.Handler<org.vertx.java.core.AsyncResult<Node>> resultHandler)
Nodepublic Node installModule(String moduleName)
Node
The module being installed must be available on the local classpath in
the normal Vert.x mods directory. If the module is already
installed on a given node then the node will be skipped, otherwise the
local module will be zipped, uploaded, and installed to the node.
installModule in interface NodemoduleName - The name of the module to install.public Node installModule(String moduleName, org.vertx.java.core.Handler<org.vertx.java.core.AsyncResult<Void>> doneHandler)
Node
The module being installed must be available on the local classpath in
the normal Vert.x mods directory. If the module is already
installed on a given node then the node will be skipped, otherwise the
local module will be zipped, uploaded, and installed to the node.
installModule in interface NodemoduleName - The name of the module to install.doneHandler - A handler to be called once the module has been installed.public Node uninstallModule(String moduleName)
NodeWhen the module is uninstalled, it will be removed from the classpath of the remote node. This means you should not uninstall modules that were originally installed on any given node.
uninstallModule in interface NodemoduleName - The name of the module to uninstall.public Node uninstallModule(String moduleName, org.vertx.java.core.Handler<org.vertx.java.core.AsyncResult<Void>> doneHandler)
NodeWhen the module is uninstalled, it will be removed from the classpath of the remote node. This means you should not uninstall modules that were originally installed on any given node.
uninstallModule in interface NodemoduleName - The name of the module to uninstall.doneHandler - A handler to be called once the module has been uninstalled.public Node deployModule(String moduleName)
Node
The module must be available on the node. You can install the module to
the node using the Node.installModule(String, Handler) method.
deployModule in interface NodemoduleName - The name of the module to deploy.public Node deployModule(String moduleName, org.vertx.java.core.json.JsonObject config)
Node
The module must be available on the node. You can install the module to
the node using the Node.installModule(String, Handler) method.
deployModule in interface NodemoduleName - The name of the module to deploy.config - The module configuration.public Node deployModule(String moduleName, int instances)
Node
The module must be available on the node. You can install the module to
the node using the Node.installModule(String, Handler) method.
deployModule in interface NodemoduleName - The name of the module to deploy.instances - The number of instances to deploy.public Node deployModule(String moduleName, org.vertx.java.core.json.JsonObject config, int instances)
Node
The module must be available on the node. You can install the module to
the node using the Node.installModule(String, Handler) method.
deployModule in interface NodemoduleName - The name of the module to deploy.config - The module configuration.instances - The number of instances to deploy.public Node deployModule(String moduleName, org.vertx.java.core.Handler<org.vertx.java.core.AsyncResult<String>> doneHandler)
Node
The module must be available on the node. You can install the module to
the node using the Node.installModule(String, Handler) method.
deployModule in interface NodemoduleName - The name of the module to deploy.doneHandler - A handler to be called once the module has been deployed.
The handler will be called with the unique deployment ID if successful.public Node deployModule(String moduleName, org.vertx.java.core.json.JsonObject config, org.vertx.java.core.Handler<org.vertx.java.core.AsyncResult<String>> doneHandler)
Node
The module must be available on the node. You can install the module to
the node using the Node.installModule(String, Handler) method.
deployModule in interface NodemoduleName - The name of the module to deploy.config - The module configuration.doneHandler - A handler to be called once the module has been deployed.
The handler will be called with the unique deployment ID if successful.public Node deployModule(String moduleName, int instances, org.vertx.java.core.Handler<org.vertx.java.core.AsyncResult<String>> doneHandler)
Node
The module must be available on the node. You can install the module to
the node using the Node.installModule(String, Handler) method.
deployModule in interface NodemoduleName - The name of the module to deploy.instances - The number of instances to deploy.doneHandler - A handler to be called once the module has been deployed.
The handler will be called with the unique deployment ID if successful.public Node deployModule(String moduleName, org.vertx.java.core.json.JsonObject config, int instances, org.vertx.java.core.Handler<org.vertx.java.core.AsyncResult<String>> doneHandler)
Node
The module must be available on the node. You can install the module to
the node using the Node.installModule(String, Handler) method.
deployModule in interface NodemoduleName - The name of the module to deploy.config - The module configuration.instances - The number of instances to deploy.doneHandler - A handler to be called once the module has been deployed.
The handler will be called with the unique deployment ID if successful.public Node deployVerticle(String main)
NodeThe verticle must be available on the classpath of the node.
deployVerticle in interface Nodemain - The verticle main.public Node deployVerticle(String main, org.vertx.java.core.json.JsonObject config)
NodeThe verticle must be available on the classpath of the node.
deployVerticle in interface Nodemain - The verticle main.config - The verticle configuration.public Node deployVerticle(String main, int instances)
NodeThe verticle must be available on the classpath of the node.
deployVerticle in interface Nodemain - The verticle main.instances - The number of instances to deploy.public Node deployVerticle(String main, org.vertx.java.core.json.JsonObject config, int instances)
NodeThe verticle must be available on the classpath of the node.
deployVerticle in interface Nodemain - The verticle main.config - The verticle configuration.instances - The number of instances to deploy.public Node deployVerticle(String main, org.vertx.java.core.Handler<org.vertx.java.core.AsyncResult<String>> doneHandler)
NodeThe verticle must be available on the classpath of the node.
deployVerticle in interface Nodemain - The verticle main.doneHandler - A handler to be called once the verticle has been deployed.
The handler will be called with the unique deployment ID if successful.public Node deployVerticle(String main, org.vertx.java.core.json.JsonObject config, org.vertx.java.core.Handler<org.vertx.java.core.AsyncResult<String>> doneHandler)
NodeThe verticle must be available on the classpath of the node.
deployVerticle in interface Nodemain - The verticle main.config - The verticle configuration.doneHandler - A handler to be called once the verticle has been deployed.
The handler will be called with the unique deployment ID if successful.public Node deployVerticle(String main, int instances, org.vertx.java.core.Handler<org.vertx.java.core.AsyncResult<String>> doneHandler)
NodeThe verticle must be available on the classpath of the node.
deployVerticle in interface Nodemain - The verticle main.instances - The number of instances to deploy.doneHandler - A handler to be called once the verticle has been deployed.
The handler will be called with the unique deployment ID if successful.public Node deployVerticle(String main, org.vertx.java.core.json.JsonObject config, int instances, org.vertx.java.core.Handler<org.vertx.java.core.AsyncResult<String>> doneHandler)
NodeThe verticle must be available on the classpath of the node.
deployVerticle in interface Nodemain - The verticle main.config - The verticle configuration.instances - The number of instances to deploy.doneHandler - A handler to be called once the verticle has been deployed.
The handler will be called with the unique deployment ID if successful.public Node deployWorkerVerticle(String main)
NodeThe verticle must be available on the classpath of the node.
deployWorkerVerticle in interface Nodemain - The verticle main.public Node deployWorkerVerticle(String main, org.vertx.java.core.json.JsonObject config)
NodeThe verticle must be available on the classpath of the node.
deployWorkerVerticle in interface Nodemain - The verticle main.config - The verticle configuration.public Node deployWorkerVerticle(String main, int instances)
NodeThe verticle must be available on the classpath of the node.
deployWorkerVerticle in interface Nodemain - The verticle main.instances - The number of instances to deploy.public Node deployWorkerVerticle(String main, org.vertx.java.core.json.JsonObject config, int instances, boolean multiThreaded)
NodeThe verticle must be available on the classpath of the node.
deployWorkerVerticle in interface Nodemain - The verticle main.config - The verticle configuration.instances - The number of instances to deploy.multiThreaded - Indicates whether the worker should be multi-threaded.public Node deployWorkerVerticle(String main, org.vertx.java.core.Handler<org.vertx.java.core.AsyncResult<String>> doneHandler)
NodeThe verticle must be available on the classpath of the node.
deployWorkerVerticle in interface Nodemain - The verticle main.doneHandler - A handler to be called once the verticle has been deployed.
The handler will be called with the unique deployment ID if successful.public Node deployWorkerVerticle(String main, org.vertx.java.core.json.JsonObject config, org.vertx.java.core.Handler<org.vertx.java.core.AsyncResult<String>> doneHandler)
NodeThe verticle must be available on the classpath of the node.
deployWorkerVerticle in interface Nodemain - The verticle main.config - The verticle configuration.doneHandler - A handler to be called once the verticle has been deployed.
The handler will be called with the unique deployment ID if successful.public Node deployWorkerVerticle(String main, int instances, org.vertx.java.core.Handler<org.vertx.java.core.AsyncResult<String>> doneHandler)
NodeThe verticle must be available on the classpath of the node.
deployWorkerVerticle in interface Nodemain - The verticle main.instances - The number of instances to deploy.doneHandler - A handler to be called once the verticle has been deployed.
The handler will be called with the unique deployment ID if successful.public Node 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)
NodeThe verticle must be available on the classpath of the node.
deployWorkerVerticle in interface Nodemain - The verticle main.config - The verticle configuration.instances - The number of instances to deploy.multiThreaded - Indicates whether the worker should be multi-threaded.doneHandler - A handler to be called once the verticle has been deployed.
The handler will be called with the unique deployment ID if successful.public Node undeployModule(String deploymentID)
Node
The deployment ID must be a deployment that was deployed by this node.
If the given deployment is not a deployment on the node a ClusterException
will occur.
undeployModule in interface NodedeploymentID - The deployment ID of the module to undeploy.public Node undeployModule(String deploymentID, org.vertx.java.core.Handler<org.vertx.java.core.AsyncResult<Void>> doneHandler)
Node
The deployment ID must be a deployment that was deployed by this node.
If the given deployment is not a deployment on the node a ClusterException
will occur.
undeployModule in interface NodedeploymentID - The deployment ID of the module to undeploy.doneHandler - A handler to be called once complete.public Node undeployVerticle(String deploymentID)
Node
The deployment ID must be a deployment that was deployed by this node.
If the given deployment is not a deployment on the node a ClusterException
will occur.
undeployVerticle in interface NodedeploymentID - The deployment ID of the verticle to undeploy.public Node undeployVerticle(String deploymentID, org.vertx.java.core.Handler<org.vertx.java.core.AsyncResult<Void>> doneHandler)
Node
The deployment ID must be a deployment that was deployed by this node.
If the given deployment is not a deployment on the node a ClusterException
will occur.
undeployVerticle in interface NodedeploymentID - The deployment ID of the verticle to undeploy.doneHandler - A handler to be called once complete.Copyright © 2013-2014. All Rights Reserved.