Class DefaultDmnDefinitionAutoDeployer
- java.lang.Object
-
- com.flowable.platform.common.deployer.CommonAutoDeployer
-
- com.flowable.platform.common.deployer.DefaultDmnDefinitionAutoDeployer
-
- All Implemented Interfaces:
Lifecycle
,Phased
,SmartLifecycle
public class DefaultDmnDefinitionAutoDeployer extends CommonAutoDeployer
-
-
Field Summary
Fields Modifier and Type Field Description protected Set<String>
autoDeployTenants
static String
DEFAULT_DEPLOYMENT_NAME
static int
DEFAULT_ORDER
protected String
deploymentName
protected DmnEngineConfiguration
dmnEngineConfiguration
-
Fields inherited from class com.flowable.platform.common.deployer.CommonAutoDeployer
deploymentProperties, deploymentResources, lifeCycleMonitor, logger, running
-
Fields inherited from interface org.springframework.context.SmartLifecycle
DEFAULT_PHASE
-
-
Constructor Summary
Constructors Constructor Description DefaultDmnDefinitionAutoDeployer(Collection<Resource> dmnResources, DmnEngineConfiguration dmnEngineConfiguration, String deploymentName, Set<String> autoDeployTenants, CommonAutoDeploymentProperties deploymentProperties)
DefaultDmnDefinitionAutoDeployer(Collection<Resource> dmnResources, DmnEngineConfiguration dmnEngineConfiguration, Set<String> autoDeployTenants, CommonAutoDeploymentProperties deploymentProperties)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
deploy(Collection<Resource> resources, String tenantId)
protected void
deployResourcesInternal(Collection<Resource> resources)
Methods that should be implemented by sub classes to perform the actual deployment.protected LockManager
getLockManager()
Get the lock manager for the current deployer.int
getPhase()
-
Methods inherited from class com.flowable.platform.common.deployer.CommonAutoDeployer
deployResources, determineLockName, determineResourceName, getDeploymentLockWaitTime, getDeploymentProperties, getLockName, isRunning, isThrowExceptionOnDeploymentFailure, isUseLockForDeployments, setDeploymentProperties, start, stop
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.springframework.context.SmartLifecycle
isAutoStartup, stop
-
-
-
-
Field Detail
-
DEFAULT_DEPLOYMENT_NAME
public static final String DEFAULT_DEPLOYMENT_NAME
- See Also:
- Constant Field Values
-
DEFAULT_ORDER
public static final int DEFAULT_ORDER
- See Also:
- Constant Field Values
-
dmnEngineConfiguration
protected DmnEngineConfiguration dmnEngineConfiguration
-
deploymentName
protected String deploymentName
-
-
Constructor Detail
-
DefaultDmnDefinitionAutoDeployer
public DefaultDmnDefinitionAutoDeployer(Collection<Resource> dmnResources, DmnEngineConfiguration dmnEngineConfiguration, Set<String> autoDeployTenants, CommonAutoDeploymentProperties deploymentProperties)
- Parameters:
dmnResources
- the resources that should be deployeddmnEngineConfiguration
- the engine configurationautoDeployTenants
- the tenants to which the auto deployment should be done (if empty then a single deployment is done without using tenant)
-
DefaultDmnDefinitionAutoDeployer
public DefaultDmnDefinitionAutoDeployer(Collection<Resource> dmnResources, DmnEngineConfiguration dmnEngineConfiguration, String deploymentName, Set<String> autoDeployTenants, CommonAutoDeploymentProperties deploymentProperties)
- Parameters:
dmnResources
- the resources that should be deployeddmnEngineConfiguration
- the engine configurationdeploymentName
- the name of the deploymentautoDeployTenants
- the tenants to which the auto deployment should be done (if empty then a single deployment is done without using tenant)
-
-
Method Detail
-
getPhase
public int getPhase()
- Specified by:
getPhase
in interfacePhased
- Specified by:
getPhase
in interfaceSmartLifecycle
- Specified by:
getPhase
in classCommonAutoDeployer
-
deployResourcesInternal
protected void deployResourcesInternal(Collection<Resource> resources)
Description copied from class:CommonAutoDeployer
Methods that should be implemented by sub classes to perform the actual deployment. If use lock for deployments is used than this methods is called with an already acquired lock.- Specified by:
deployResourcesInternal
in classCommonAutoDeployer
- Parameters:
resources
- the resources to be deployed
-
getLockManager
protected LockManager getLockManager()
Description copied from class:CommonAutoDeployer
Get the lock manager for the current deployer. Used when the strategy has been configured to use lock for deployments.- Specified by:
getLockManager
in classCommonAutoDeployer
- Returns:
- the lock manager
-
deploy
protected void deploy(Collection<Resource> resources, String tenantId)
-
-