Top Inners Fields Constructors Methods
io.vertx.core.impl

public Class DeploymentManager

extends Object
Class Inheritance
Imports
io.vertx.core.*, io.vertx.core.json.JsonObject, io.vertx.core.impl.logging.Logger, .LoggerFactory, java.util.ArrayList, .Collections, .HashSet, .IdentityHashMap, .List, .Map, .Set, .UUID, java.util.concurrent.Callable, .ConcurrentHashMap, .CopyOnWriteArrayList, java.util.concurrent.atomic.AtomicBoolean, .AtomicInteger, java.util.function.Function

Author
Tim Fox

Nested and Inner Type Summary

Modifier and TypeClass and Description
private class
pack-priv static class

Field Summary

Modifier and TypeField and Description
private final Map<String, Deployment>
private static final Logger
private final VertxImpl

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public Set<String>
public Future<String>
deployVerticle(Callable<Verticle> verticleSupplier, DeploymentOptions options)

pack-priv Future<Deployment>
doDeploy(DeploymentOptions options, Function<Verticle, String> identifierProvider, ContextInternal parentContext, ContextInternal callingContext, ClassLoader tccl, Callable<Verticle> verticleSupplier)

private Future<Deployment>
doDeploy(String identifier, DeploymentOptions options, ContextInternal parentContext, ContextInternal callingContext, ClassLoader tccl, Verticle... verticles)

private String
public Deployment
getDeployment(String deploymentID)

private <T> void
reportFailure(Throwable t, Context context, Handler<AsyncResult<T>> completionHandler)

private <T> void
reportResult(Context context, Handler<AsyncResult<T>> completionHandler, AsyncResult<T> result)

public Future<Void>
public Future<Void>
undeployVerticle(String deploymentID)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

deploymentsback to summary
private final Map<String, Deployment> deployments
logback to summary
private static final Logger log
vertxback to summary
private final VertxImpl vertx

Constructor Detail

DeploymentManagerback to summary
public DeploymentManager(VertxImpl vertx)

Method Detail

deploymentsback to summary
public Set<String> deployments()
deployVerticleback to summary
public Future<String> deployVerticle(Callable<Verticle> verticleSupplier, DeploymentOptions options)
doDeployback to summary
pack-priv Future<Deployment> doDeploy(DeploymentOptions options, Function<Verticle, String> identifierProvider, ContextInternal parentContext, ContextInternal callingContext, ClassLoader tccl, Callable<Verticle> verticleSupplier)
doDeployback to summary
private Future<Deployment> doDeploy(String identifier, DeploymentOptions options, ContextInternal parentContext, ContextInternal callingContext, ClassLoader tccl, Verticle... verticles)
generateDeploymentIDback to summary
private String generateDeploymentID()
getDeploymentback to summary
public Deployment getDeployment(String deploymentID)
reportFailureback to summary
private <T> void reportFailure(Throwable t, Context context, Handler<AsyncResult<T>> completionHandler)
reportResultback to summary
private <T> void reportResult(Context context, Handler<AsyncResult<T>> completionHandler, AsyncResult<T> result)
undeployAllback to summary
public Future<Void> undeployAll()
undeployVerticleback to summary
public Future<Void> undeployVerticle(String deploymentID)
io.vertx.core.impl back to summary

private Class DeploymentManager.DeploymentImpl

extends Object
implements Deployment
Class Inheritance
All Implemented Interfaces
io.vertx.core.impl.Deployment

Field Summary

Modifier and TypeField and Description
private volatile boolean
private final Set<Deployment>
private final JsonObject
conf

References Deprecated JsonObject is deprecated or references (maybe indirectly) at least one deprecated element.
private final String
private final DeploymentOptions
private final Deployment
private static final int
private static final int
private static final int
private int
private Handler<Void>
private final String
private final List<DeploymentManager.VerticleHolder>
private final WorkerPool

Constructor Summary

AccessConstructor and Description
private
DeploymentImpl(Deployment parent, WorkerPool workerPool, String deploymentID, String verticleIdentifier, DeploymentOptions options)

Method Summary

Modifier and TypeMethod and Description
public synchronized boolean
public void
public JsonObject
config()

Implements io.vertx.core.impl.Deployment.config.

References Deprecated JsonObject is deprecated or references (maybe indirectly) at least one deprecated element.

public String
public DeploymentOptions
public synchronized Future<Void>
private synchronized Future<Void>
doUndeployChildren(ContextInternal undeployingContext)

public Set<Context>
public Set<Verticle>
public boolean
public void
private synchronized void
rollback(ContextInternal callingContext, Handler<AsyncResult<Deployment>> completionHandler, ContextImpl context, DeploymentManager.VerticleHolder closeFuture, Throwable cause)

public void
public String
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

childback to summary
private volatile boolean child
childrenback to summary
private final Set<Deployment> children
confback to summary
private final JsonObject conf

References Deprecated

JsonObject is deprecated or references (maybe indirectly) at least one deprecated element.

See corresponding docs for further information.

deploymentIDback to summary
private final String deploymentID
optionsback to summary
private final DeploymentOptions options
parentback to summary
private final Deployment parent
ST_DEPLOYEDback to summary
private static final int ST_DEPLOYED
ST_UNDEPLOYEDback to summary
private static final int ST_UNDEPLOYED
ST_UNDEPLOYINGback to summary
private static final int ST_UNDEPLOYING
statusback to summary
private int status
undeployHandlerback to summary
private Handler<Void> undeployHandler
verticleIdentifierback to summary
private final String verticleIdentifier
verticlesback to summary
private final List<DeploymentManager.VerticleHolder> verticles
workerPoolback to summary
private final WorkerPool workerPool

Constructor Detail

DeploymentImplback to summary
private DeploymentImpl(Deployment parent, WorkerPool workerPool, String deploymentID, String verticleIdentifier, DeploymentOptions options)

Method Detail

addChildback to summary
public synchronized boolean addChild(Deployment deployment)

Implements io.vertx.core.impl.Deployment.addChild.

Annotations
@Override
addVerticleback to summary
public void addVerticle(DeploymentManager.VerticleHolder holder)
configback to summary
public JsonObject config()

Implements io.vertx.core.impl.Deployment.config.

References Deprecated

JsonObject is deprecated or references (maybe indirectly) at least one deprecated element.

See corresponding docs for further information.

Annotations
@Override
deploymentIDback to summary
public String deploymentID()

Implements io.vertx.core.impl.Deployment.deploymentID.

Annotations
@Override
deploymentOptionsback to summary
public DeploymentOptions deploymentOptions()

Implements io.vertx.core.impl.Deployment.deploymentOptions.

Annotations
@Override
doUndeployback to summary
public synchronized Future<Void> doUndeploy(ContextInternal undeployingContext)

Implements io.vertx.core.impl.Deployment.doUndeploy.

doUndeployChildrenback to summary
private synchronized Future<Void> doUndeployChildren(ContextInternal undeployingContext)
getContextsback to summary
public Set<Context> getContexts()

Implements io.vertx.core.impl.Deployment.getContexts.

Annotations
@Override
getVerticlesback to summary
public Set<Verticle> getVerticles()

Implements io.vertx.core.impl.Deployment.getVerticles.

Annotations
@Override
isChildback to summary
public boolean isChild()

Implements io.vertx.core.impl.Deployment.isChild.

Annotations
@Override
removeChildback to summary
public void removeChild(Deployment deployment)

Implements io.vertx.core.impl.Deployment.removeChild.

Annotations
@Override
rollbackback to summary
private synchronized void rollback(ContextInternal callingContext, Handler<AsyncResult<Deployment>> completionHandler, ContextImpl context, DeploymentManager.VerticleHolder closeFuture, Throwable cause)
undeployHandlerback to summary
public void undeployHandler(Handler<Void> handler)

Implements io.vertx.core.impl.Deployment.undeployHandler.

Annotations
@Override
verticleIdentifierback to summary
public String verticleIdentifier()

Implements io.vertx.core.impl.Deployment.verticleIdentifier.

Annotations
@Override
io.vertx.core.impl back to summary

pack-priv Class DeploymentManager.VerticleHolder

extends Object
Class Inheritance

Field Summary

Modifier and TypeField and Description
pack-priv final ContextImpl
pack-priv final Verticle

Constructor Summary

AccessConstructor and Description
pack-priv
VerticleHolder(Verticle verticle, ContextImpl context)

Method Summary

Modifier and TypeMethod and Description
pack-priv void
close(Handler<AsyncResult<Void>> completionHandler)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

contextback to summary
pack-priv final ContextImpl context
verticleback to summary
pack-priv final Verticle verticle

Constructor Detail

VerticleHolderback to summary
pack-priv VerticleHolder(Verticle verticle, ContextImpl context)

Method Detail

closeback to summary
pack-priv void close(Handler<AsyncResult<Void>> completionHandler)