Class CommonAutoDeployer

java.lang.Object
com.flowable.platform.common.deployer.CommonAutoDeployer
All Implemented Interfaces:
Lifecycle, Phased, SmartLifecycle
Direct Known Subclasses:
DefaultAppAutoDeployer, DefaultCaseDefinitionAutoDeployer, DefaultDmnDefinitionAutoDeployer, DefaultDocumentDefinitionAutoDeployer, DefaultEventRegistryDefinitionAutoDeployer, DefaultFormDefinitionAutoDeployer, DefaultProcessDefinitionAutoDeployer

public abstract class CommonAutoDeployer extends Object implements SmartLifecycle
Author:
Filip Hrisafov
  • Field Details

    • logger

      protected final org.slf4j.Logger logger
    • deploymentProperties

      protected CommonAutoDeploymentProperties deploymentProperties
    • deploymentResources

      protected final Collection<Resource> deploymentResources
    • lifeCycleMonitor

      protected final Object lifeCycleMonitor
    • running

      protected boolean running
  • Constructor Details

  • Method Details

    • start

      public void start()
      Specified by:
      start in interface Lifecycle
    • stop

      public void stop()
      Specified by:
      stop in interface Lifecycle
    • isRunning

      public boolean isRunning()
      Specified by:
      isRunning in interface Lifecycle
    • getPhase

      public abstract int getPhase()
      Specified by:
      getPhase in interface Phased
      Specified by:
      getPhase in interface SmartLifecycle
    • deployResources

      public void deployResources()
    • deployResourcesInternal

      protected abstract void deployResourcesInternal(Collection<Resource> resources)
      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.
      Parameters:
      resources - the resources to be deployed
    • getLockManager

      protected abstract LockManager getLockManager()
      Get the lock manager for the current deployer. Used when the strategy has been configured to use lock for deployments.
      Returns:
      the lock manager
    • determineLockName

      protected String determineLockName(String deploymentNameHint)
    • determineResourceName

      protected String determineResourceName(Resource resource)
      Determines the name to be used for the provided resource.
      Parameters:
      resource - the resource to get the name for
      Returns:
      the name of the resource
    • getDeploymentProperties

      public CommonAutoDeploymentProperties getDeploymentProperties()
    • setDeploymentProperties

      public void setDeploymentProperties(CommonAutoDeploymentProperties deploymentProperties)
    • isUseLockForDeployments

      public boolean isUseLockForDeployments()
    • getDeploymentLockWaitTime

      public Duration getDeploymentLockWaitTime()
    • isThrowExceptionOnDeploymentFailure

      public boolean isThrowExceptionOnDeploymentFailure()
    • getLockName

      public String getLockName()