public class DeploymentServiceEJBImpl extends KModuleDeploymentService implements ListenerSupport, DeploymentService, DeploymentServiceEJBLocal, DeploymentServiceEJBRemote
bpmn2Service, caseIdXPathExpression, executorService, formManagerService, logger, merger, processIdXPathExpression
deploymentsMap, emf, listeners, managerFactory, runtimeDataService
Constructor and Description |
---|
DeploymentServiceEJBImpl() |
Modifier and Type | Method and Description |
---|---|
protected void |
addAsyncHandler(KModuleDeploymentUnit unit) |
void |
deploy(DeploymentUnit unit)
Performs deployment operation of given
unit . |
void |
deploy(String groupId,
String artifactId,
String version)
Deploys artifact identified by given GAV (group, artifact, version)
|
void |
deploy(String groupId,
String artifactId,
String version,
String kbaseName,
String ksessionName)
Deploys artifact identified by given GAV (group, artifact, version) with additional selection of kbase and
ksession names from kmodule.xml - these names must exists in kmodule.xml of the artifact being deployed
|
void |
deploy(String groupId,
String artifactId,
String version,
String kbaseName,
String ksessionName,
String strategy)
Deploys artifact identified by given GAV (group, artifact, version) with additional selection of kbase and
ksession names from kmodule.xml - these names must exists in kmodule.xml of the artifact being deployed and
runtime strategy (singleton, per request, per process instance)
|
protected boolean |
isExecutorOnClasspath() |
void |
onInit() |
void |
setBpmn2Service(DefinitionService bpmn2Service) |
void |
setContext(javax.ejb.EJBContext context) |
void |
setEmf(javax.persistence.EntityManagerFactory emf) |
void |
setExecutorService(org.kie.api.executor.ExecutorService executorService) |
void |
setFormManagerService(FormManagerService formManagerService) |
void |
setRuntimeDataService(RuntimeDataService runtimeDataService) |
void |
shutdown() |
void |
undeploy(String deploymentId)
Undeploys currently active deployment unit identified by given deploymentId
|
void |
undeploy(String deploymentId,
Function<DeploymentUnit,Boolean> beforeUndeploy)
Undeploys currently active deployment unit identified by given deploymentId
|
activate, addClassToDeployedUnit, boostrapRuntimeEnvironmentBuilder, buildContextParameters, deactivate, getCaseId, getInstanceFromModel, getProcessId, getRegisterableItemsFactory, processClassloader, processResources, setMerger, undeploy
addListener, commonDeploy, getDeployedUnit, getDeployedUnits, getDeploymentsMap, getEmf, getListeners, getManagerFactory, getRuntimeDataService, getRuntimeManager, isDeployed, notifyOnActivate, notifyOnDeactivate, notifyOnDeploy, notifyOnUnDeploy, removeListener, setIdentityProvider, setManagerFactory, setupAuditLogger, undeploy
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
activate, deactivate, getDeployedUnit, getDeployedUnits, getRuntimeManager, isDeployed, undeploy, undeploy
addListener, getListeners, removeListener
activate, deactivate, isDeployed
@PostConstruct public void onInit()
onInit
in class KModuleDeploymentService
@PreDestroy public void shutdown()
shutdown
in class AbstractDeploymentService
public void setContext(javax.ejb.EJBContext context)
public void setEmf(javax.persistence.EntityManagerFactory emf)
setEmf
in class AbstractDeploymentService
public void setBpmn2Service(DefinitionService bpmn2Service)
setBpmn2Service
in class KModuleDeploymentService
public void setRuntimeDataService(RuntimeDataService runtimeDataService)
setRuntimeDataService
in class AbstractDeploymentService
public void setFormManagerService(FormManagerService formManagerService)
setFormManagerService
in class KModuleDeploymentService
public void setExecutorService(org.kie.api.executor.ExecutorService executorService)
setExecutorService
in class KModuleDeploymentService
public void deploy(String groupId, String artifactId, String version)
DeploymentServiceEJBRemote
deploy
in interface DeploymentServiceEJBRemote
groupId
- group id of the artifact to deployartifactId
- artifact id of the artifact to deployversion
- version of the artifact to deploypublic void deploy(String groupId, String artifactId, String version, String kbaseName, String ksessionName)
DeploymentServiceEJBRemote
deploy
in interface DeploymentServiceEJBRemote
groupId
- group id of the artifact to deployartifactId
- artifact id of the artifact to deployversion
- version of the artifact to deploykbaseName
- name of kie base defined in kmodule.xmlksessionName
- name of kie session defined in kmodule.xmlpublic void deploy(String groupId, String artifactId, String version, String kbaseName, String ksessionName, String strategy)
DeploymentServiceEJBRemote
deploy
in interface DeploymentServiceEJBRemote
groupId
- group id of the artifact to deployartifactId
- artifact id of the artifact to deployversion
- version of the artifact to deploykbaseName
- name of kie base defined in kmodule.xmlksessionName
- name of kie session defined in kmodule.xmlstrategy
- selected runtime strategypublic void deploy(DeploymentUnit unit)
DeploymentService
unit
.deploy
in interface DeploymentService
deploy
in class KModuleDeploymentService
unit
- deployment unit to be deployed to runtimepublic void undeploy(String deploymentId)
DeploymentServiceEJBRemote
undeploy
in interface DeploymentServiceEJBRemote
deploymentId
- unique identifier of the deploymentpublic void undeploy(String deploymentId, Function<DeploymentUnit,Boolean> beforeUndeploy)
DeploymentServiceEJBRemote
undeploy
in interface DeploymentServiceEJBRemote
deploymentId
- unique identifier of the deploymentbeforeUndeploy
- a function to run custom actions before undeploying a given DeploymentUnit
.
It should return if the unit can be undeployed or not determining if the deployment can continue.protected void addAsyncHandler(KModuleDeploymentUnit unit)
protected boolean isExecutorOnClasspath()
Copyright © 2001–2020 JBoss by Red Hat. All rights reserved.