Stop vertx verticle in Eclipse
<p>I'm following <a href="http://tutorials.jenkov.com/vert.x/verticles.html" rel="noreferrer">Jenkov's tutorial</a> on vertx. Here I have two files: </p>

<p>MyVerticle.java:</p>

<pre><code>import io.vertx.core.AbstractVerticle;
import io.vertx.core.Future;

public class MyVerticle extends AbstractVerticle {

    @Override
    public void start(Future&lt;Void&gt; startFuture) {
        System.out.println("MyVerticle started!");
    }

    @Override
    public void stop(Future stopFuture) throws Exception {
        System.out.println("MyVerticle stopped!");
    }
}
</code></pre>

<p>and VertxVerticleMain.java:</p>

<pre><code>import io.vertx.core.Vertx;

public class VertxVerticleMain {

    public static void main(String[] args) {
        Vertx vertx = Vertx.vertx();

        vertx.deployVerticle(new MyVerticle());
    }
}
</code></pre>

<p>After running <code>VertxVerticleMain.java</code>, I saw <code>"MyVerticle started!"</code> in Eclipse's console but don't know how to call <code>stop</code> in <code>MyVerticle</code>.</p>

<p>Jenkov said that <em>The stop() method is called when Vert.x shuts down and your verticle needs to stop</em>. How exactly do I shut down my Vert.x and stop this verticle? I want to see <code>MyVerticle stopped!</code> in the console.</p>