DeploymentImpl deployment = new DeploymentImpl(parent, deploymentID, identifier, options); deployment.addVerticle(new VerticleHolder(verticle, context)); context.runOnContext(v -> { try { } else { deployment.undeploy(null); return;
doUndeployChildren(undeployingContext, ar -> { if (ar.failed()) { reportFailure(ar.cause(), undeployingContext, completionHandler); } else { doUndeploy(undeployingContext, completionHandler);
doUndeployChildren(undeployingContext, ar -> { if (ar.failed()) { reportFailure(ar.cause(), undeployingContext, completionHandler); } else { doUndeploy(undeployingContext, completionHandler);
DeploymentImpl deployment = new DeploymentImpl(parent, deploymentID, identifier, options); deployment.addVerticle(new VerticleHolder(verticle, context)); context.runOnContext(v -> { try { } else { deployment.undeploy(null); return;
private synchronized void rollback(ContextInternal callingContext, Handler<AsyncResult<String>> completionHandler, ContextImpl context, Throwable cause) { if (status == ST_DEPLOYED) { status = ST_UNDEPLOYING; doUndeployChildren(callingContext, childrenResult -> { synchronized (DeploymentImpl.this) { status = ST_UNDEPLOYED; } if (childrenResult.failed()) { reportFailure(cause, callingContext, completionHandler); } else { context.runCloseHooks(closeHookAsyncResult -> reportFailure(cause, callingContext, completionHandler)); } }); } }
@Override public void undeploy(Handler<AsyncResult<Void>> completionHandler) { ContextInternal currentContext = vertx.getOrCreateContext(); doUndeploy(currentContext, completionHandler); }
private synchronized void rollback(ContextInternal callingContext, Handler<AsyncResult<String>> completionHandler, ContextImpl context, Throwable cause) { if (status == ST_DEPLOYED) { status = ST_UNDEPLOYING; doUndeployChildren(callingContext, childrenResult -> { synchronized (DeploymentImpl.this) { status = ST_UNDEPLOYED; } if (childrenResult.failed()) { reportFailure(cause, callingContext, completionHandler); } else { context.runCloseHooks(closeHookAsyncResult -> reportFailure(cause, callingContext, completionHandler)); } }); } }
@Override public void undeploy(Handler<AsyncResult<Void>> completionHandler) { ContextInternal currentContext = vertx.getOrCreateContext(); doUndeploy(currentContext, completionHandler); }