public class ClusterManagerFactory extends Object
| Constructor and Description |
|---|
ClusterManagerFactory(org.vertx.java.core.Vertx vertx,
org.vertx.java.platform.Container container) |
| Modifier and Type | Method and Description |
|---|---|
ClusterManager |
createClusterManager(String address,
ClusterScope scope)
Creates a cluster manager for the given scope.
|
void |
getCurrentClusterManager(org.vertx.java.core.Handler<org.vertx.java.core.AsyncResult<ClusterManager>> resultHandler)
Loads the cluster manager for the current scope.
|
void |
getCurrentScope(org.vertx.java.core.Handler<org.vertx.java.core.AsyncResult<ClusterScope>> resultHandler)
Loads the current cluster scope.
|
public ClusterManagerFactory(org.vertx.java.core.Vertx vertx,
org.vertx.java.platform.Container container)
public void getCurrentScope(org.vertx.java.core.Handler<org.vertx.java.core.AsyncResult<ClusterScope>> resultHandler)
resultHandler - An asynchronous handler to be called with the result.public void getCurrentClusterManager(org.vertx.java.core.Handler<org.vertx.java.core.AsyncResult<ClusterManager>> resultHandler)
doneHandler - An asynchronous handler to be called once the cluster manager is loaded.public ClusterManager createClusterManager(String address, ClusterScope scope)
address - The cluster address;scope - The scope for which to create the cluster manager.Copyright © 2013-2014. All Rights Reserved.