Class CommonAutoDeployer

    • Field Detail

      • logger

        protected final org.slf4j.Logger logger
      • lifeCycleMonitor

        protected final Object lifeCycleMonitor
      • running

        protected boolean running
    • Method Detail

      • start

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

        public void stop()
        Specified by:
        stop in interface Lifecycle
      • 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
      • isUseLockForDeployments

        public boolean isUseLockForDeployments()
      • getDeploymentLockWaitTime

        public Duration getDeploymentLockWaitTime()
      • isThrowExceptionOnDeploymentFailure

        public boolean isThrowExceptionOnDeploymentFailure()
      • getLockName

        public String getLockName()