Refine search
/** * Call {@link fr.javacrea.vertx.consul.test.utils.rxjava.ConsulTestEnv#stopOne} on every registered node of this env, sequentially. * @return a {@link io.vertx.rxjava.core.Future} that complete when the nodes are fully stopped with the number of node stopped or fail with a {@link fr.javacrea.vertx.consul.test.utils.rxjava.PartiallyProcessedException} which hold the stopped nodes count. */ public Future<Integer> stopAll() { Future<Integer> ret = Future.newInstance(delegate.stopAll(), io.vertx.lang.rxjava.TypeArg.unknown()); return ret; }
/** * Find a node by is name and stop it. This method call {@link fr.javacrea.vertx.consul.test.utils.rxjava.ConsulTestNode#destroy} after {@link fr.javacrea.vertx.consul.test.utils.rxjava.ConsulTestNode#stop} and remove it from the known nodes, so the node can't be used anymore. * @param nodeName the node to stop * @return a {@link io.vertx.rxjava.core.Future} that complete when the node is fully stopped. */ public Future<Void> stopOne(String nodeName) { Future<Void> ret = Future.newInstance(delegate.stopOne(nodeName), io.vertx.lang.rxjava.TypeArg.unknown()); return ret; }
/** * Call {@link fr.javacrea.vertx.consul.test.utils.rxjava.ConsulTestEnv#stopOne} on every node which belong to this data-center, sequentially. * @param dataCenter the data center * @return @return a {@link io.vertx.rxjava.core.Future} that complete when the nodes are fully stopped with the number of node stopped or fail with a {@link fr.javacrea.vertx.consul.test.utils.rxjava.PartiallyProcessedException} which hold the stopped nodes count. */ public Future<Integer> stopAll(String dataCenter) { Future<Integer> ret = Future.newInstance(delegate.stopAll(dataCenter), io.vertx.lang.rxjava.TypeArg.unknown()); return ret; }
/** * Return which connect to the HTTP using the provided node. If there's no node provided, the env should take a random one. * @param node * @param rules * @return the future */ public Future<ConsulClientOptions> clientOptionsForNode(ConsulTestNode node, String rules) { Future<ConsulClientOptions> ret = Future.newInstance(delegate.clientOptionsForNode(node.getDelegate(), rules), io.vertx.lang.rxjava.TypeArg.unknown()); return ret; }
/** * Start many nodes. Nodes are started sequentially, beginning with a server node, to be sure that the join process of the cluster work as expected. Nodes that fails to start are removed from this env nodes list. * @param vertx * @param serverCount the number of server mode nodes * @param clientCount the number of client mode nodes * @param dataCenter the data center for this nodes * @return a {@link io.vertx.rxjava.core.Future} that complete when the nodes are fully started with the number of node started or fail with a {@link fr.javacrea.vertx.consul.test.utils.rxjava.PartiallyProcessedException} which hold the started nodes count. */ public Future<Integer> startMany(Vertx vertx, int serverCount, int clientCount, String dataCenter) { Future<Integer> ret = Future.newInstance(delegate.startMany(vertx.getDelegate(), serverCount, clientCount, dataCenter), io.vertx.lang.rxjava.TypeArg.unknown()); return ret; }