public interface DeploymentService
DeploymentUnits into the runtime engine by building
RuntimeManager instance for the deployment unit. Upon successful
deployment DeployedUnit instance is created and cached for further usage.| Modifier and Type | Method and Description |
|---|---|
void |
activate(String deploymentId)
Activates given deployment by making sure it will be available for execution.
|
void |
deactivate(String deploymentId)
Deactivates given deployment by making it only available for already running instances.
|
void |
deploy(DeploymentUnit unit)
Performs deployment operation of given
unit. |
DeployedUnit |
getDeployedUnit(String deploymentUnitId)
Returns
DeployedUnit instance for given deployment id if exists |
Collection<DeployedUnit> |
getDeployedUnits()
Returns all (currently) deployed units.
|
org.kie.api.runtime.manager.RuntimeManager |
getRuntimeManager(String deploymentUnitId)
Returns
RuntimeManager instance dedicated to deployment unit identified by given id |
boolean |
isDeployed(String deploymentUnitId)
Performs a check if given deployment is already active
|
void |
undeploy(DeploymentUnit unit)
Performs undeployment operation of given
unit. |
void deploy(DeploymentUnit unit)
unit.unit - deployment unit to be deployed to runtimeRuntimeException - in case of problems encountered while deploying unitvoid undeploy(DeploymentUnit unit)
unit.unit - deployment unit to be undeployed from runtimeRuntimeException - in case of problems encountered while deploying unitorg.kie.api.runtime.manager.RuntimeManager getRuntimeManager(String deploymentUnitId)
RuntimeManager instance dedicated to deployment unit identified by given iddeploymentUnitId - identifier of deployment unitRuntimeManager if exists for given deployment id otherwise nullDeployedUnit getDeployedUnit(String deploymentUnitId)
DeployedUnit instance for given deployment id if existsdeploymentUnitId - identifier of deployment unitDeployedUnit instance if exists for given deployment id otherwise nullCollection<DeployedUnit> getDeployedUnits()
void activate(String deploymentId)
deploymentId - void deactivate(String deploymentId)
deploymentId - boolean isDeployed(String deploymentUnitId)
deploymentUnitId - Copyright © 2001–2015 JBoss by Red Hat. All rights reserved.