src/main/java/edu/ucla/library/bucketeer/verticles/MainVerticle.java
private Future<Void> deployVerticle(final String aVerticleName, final DeploymentOptions aOptions,
            final Promise<Void> aPromise) {
        vertx.deployVerticle(aVerticleName, aOptions, response -> {
            try {
                final String verticleName = Class.forName(aVerticleName).getSimpleName();

                if (response.succeeded()) {
                    LOGGER.debug(MessageCodes.BUCKETEER_007, verticleName, response.result());
                    aPromise.complete();
                } else {
                    LOGGER.error(MessageCodes.BUCKETEER_008, verticleName, response.cause());
                    aPromise.fail(response.cause());
                }
            } catch (final ClassNotFoundException details) {
                aPromise.fail(details);
            }
        });

        return aPromise.future();
    }
/**
     * Deploys a particular verticle.
     *
     * @param aVerticleName The name of the verticle to deploy
     * @param aOptions Any deployment options that should be considered
     */
Deploys a particular verticle.
@param aVerticleName The name of the verticle to deploy
@param aOptions Any deployment options that should be considered
Deploys a particular verticle . @param aVerticleName The name of the verticle to deploy @param aOptions Any deployment options that should be considered
private Future<Void> deployVerticle(final String aVerticleName, final DeploymentOptions aOptions,
            final Promise<Void> aPromise) {
        vertx.deployVerticle(aVerticleName, aOptions, response -> {
            try {
                final String verticleName = Class.forName(aVerticleName).getSimpleName();
                if (response.succeeded()) {
                    LOGGER.debug(MessageCodes.BUCKETEER_007, verticleName, response.result());
                    aPromise.complete();
                } else {
                    LOGGER.error(MessageCodes.BUCKETEER_008, verticleName, response.cause());
                    aPromise.fail(response.cause());
                }
            } catch (final ClassNotFoundException details) {
                aPromise.fail(details);
            }
        });
        return aPromise.future();
    }
private Future < Void > deployVerticle ( final String aVerticleName , final DeploymentOptions aOptions , final Promise < Void > aPromise ) { vertx . deployVerticle ( aVerticleName , aOptions , response -> { try { final String verticleName = Class . forName ( aVerticleName ) . getSimpleName ( ) ; if ( response . succeeded ( ) ) { LOGGER . debug ( MessageCodes . BUCKETEER_007 , verticleName , response . result ( ) ) ; aPromise . complete ( ) ; } else { LOGGER . error ( MessageCodes . BUCKETEER_008 , verticleName , response . cause ( ) ) ; aPromise . fail ( response . cause ( ) ) ; } } catch ( final ClassNotFoundException details ) { aPromise . fail ( details ) ; } } ) ; return aPromise . future ( ) ; }
Deploys a particular verticle.
Deploys a particular verticle .