Class DeploymentCache


  • public class DeploymentCache
    extends java.lang.Object
    Author:
    Tom Baeyens, Falko Menge
    • Constructor Detail

      • DeploymentCache

        public DeploymentCache​(CacheFactory factory,
                               int cacheCapacity)
    • Method Detail

      • findProcessDefinitionFromCache

        public ProcessDefinitionEntity findProcessDefinitionFromCache​(java.lang.String processDefinitionId)
      • findDeployedProcessDefinitionById

        public ProcessDefinitionEntity findDeployedProcessDefinitionById​(java.lang.String processDefinitionId)
      • findDeployedLatestProcessDefinitionByKeyAndTenantId

        public ProcessDefinitionEntity findDeployedLatestProcessDefinitionByKeyAndTenantId​(java.lang.String processDefinitionKey,
                                                                                           java.lang.String tenantId)
        Returns:
        the latest version of the process definition with the given key and tenant id
      • findDeployedProcessDefinitionByKeyVersionAndTenantId

        public ProcessDefinitionEntity findDeployedProcessDefinitionByKeyVersionAndTenantId​(java.lang.String processDefinitionKey,
                                                                                            java.lang.Integer processDefinitionVersion,
                                                                                            java.lang.String tenantId)
      • findDeployedProcessDefinitionByKeyVersionTagAndTenantId

        public ProcessDefinitionEntity findDeployedProcessDefinitionByKeyVersionTagAndTenantId​(java.lang.String processDefinitionKey,
                                                                                               java.lang.String processDefinitionVersionTag,
                                                                                               java.lang.String tenantId)
      • findDeployedProcessDefinitionByDeploymentAndKey

        public ProcessDefinitionEntity findDeployedProcessDefinitionByDeploymentAndKey​(java.lang.String deploymentId,
                                                                                       java.lang.String processDefinitionKey)
      • findBpmnModelInstanceForProcessDefinition

        public BpmnModelInstance findBpmnModelInstanceForProcessDefinition​(java.lang.String processDefinitionId)
      • removeProcessDefinition

        public void removeProcessDefinition​(java.lang.String processDefinitionId)
      • discardProcessDefinitionCache

        public void discardProcessDefinitionCache()
      • removeCamundaFormDefinition

        public void removeCamundaFormDefinition​(java.lang.String camundaFormDefinitionId)
      • discardCamundaFormDefinitionCache

        public void discardCamundaFormDefinitionCache()
      • findCaseDefinitionFromCache

        public CaseDefinitionEntity findCaseDefinitionFromCache​(java.lang.String caseDefinitionId)
      • findDeployedCaseDefinitionById

        public CaseDefinitionEntity findDeployedCaseDefinitionById​(java.lang.String caseDefinitionId)
      • findDeployedLatestCaseDefinitionByKeyAndTenantId

        public CaseDefinitionEntity findDeployedLatestCaseDefinitionByKeyAndTenantId​(java.lang.String caseDefinitionKey,
                                                                                     java.lang.String tenantId)
        Returns:
        the latest version of the case definition with the given key and tenant id
      • findDeployedCaseDefinitionByKeyVersionAndTenantId

        public CaseDefinitionEntity findDeployedCaseDefinitionByKeyVersionAndTenantId​(java.lang.String caseDefinitionKey,
                                                                                      java.lang.Integer caseDefinitionVersion,
                                                                                      java.lang.String tenantId)
      • findDeployedCaseDefinitionByDeploymentAndKey

        public CaseDefinitionEntity findDeployedCaseDefinitionByDeploymentAndKey​(java.lang.String deploymentId,
                                                                                 java.lang.String caseDefinitionKey)
      • getCaseDefinitionById

        public CaseDefinitionEntity getCaseDefinitionById​(java.lang.String caseDefinitionId)
      • findCmmnModelInstanceForCaseDefinition

        public CmmnModelInstance findCmmnModelInstanceForCaseDefinition​(java.lang.String caseDefinitionId)
      • removeCaseDefinition

        public void removeCaseDefinition​(java.lang.String caseDefinitionId)
      • discardCaseDefinitionCache

        public void discardCaseDefinitionCache()
      • findDecisionDefinitionFromCache

        public DecisionDefinitionEntity findDecisionDefinitionFromCache​(java.lang.String decisionDefinitionId)
      • findDeployedDecisionDefinitionById

        public DecisionDefinitionEntity findDeployedDecisionDefinitionById​(java.lang.String decisionDefinitionId)
      • findDeployedLatestDecisionDefinitionByKey

        public DecisionDefinition findDeployedLatestDecisionDefinitionByKey​(java.lang.String decisionDefinitionKey)
      • findDeployedLatestDecisionDefinitionByKeyAndTenantId

        public DecisionDefinition findDeployedLatestDecisionDefinitionByKeyAndTenantId​(java.lang.String decisionDefinitionKey,
                                                                                       java.lang.String tenantId)
      • findDeployedDecisionDefinitionByDeploymentAndKey

        public DecisionDefinition findDeployedDecisionDefinitionByDeploymentAndKey​(java.lang.String deploymentId,
                                                                                   java.lang.String decisionDefinitionKey)
      • findDeployedDecisionDefinitionByKeyAndVersion

        public DecisionDefinition findDeployedDecisionDefinitionByKeyAndVersion​(java.lang.String decisionDefinitionKey,
                                                                                java.lang.Integer decisionDefinitionVersion)
      • findDeployedDecisionDefinitionByKeyVersionAndTenantId

        public DecisionDefinition findDeployedDecisionDefinitionByKeyVersionAndTenantId​(java.lang.String decisionDefinitionKey,
                                                                                        java.lang.Integer decisionDefinitionVersion,
                                                                                        java.lang.String tenantId)
      • findDeployedDecisionDefinitionByKeyVersionTagAndTenantId

        public DecisionDefinition findDeployedDecisionDefinitionByKeyVersionTagAndTenantId​(java.lang.String decisionDefinitionKey,
                                                                                           java.lang.String decisionDefinitionVersionTag,
                                                                                           java.lang.String tenantId)
      • findDmnModelInstanceForDecisionDefinition

        public DmnModelInstance findDmnModelInstanceForDecisionDefinition​(java.lang.String decisionDefinitionId)
      • removeDecisionDefinition

        public void removeDecisionDefinition​(java.lang.String decisionDefinitionId)
      • discardDecisionDefinitionCache

        public void discardDecisionDefinitionCache()
      • findDecisionRequirementsDefinitionFromCache

        public DecisionRequirementsDefinitionEntity findDecisionRequirementsDefinitionFromCache​(java.lang.String decisionRequirementsDefinitionId)
      • findDeployedDecisionRequirementsDefinitionById

        public DecisionRequirementsDefinitionEntity findDeployedDecisionRequirementsDefinitionById​(java.lang.String decisionRequirementsDefinitionId)
      • discardDecisionRequirementsDefinitionCache

        public void discardDecisionRequirementsDefinitionCache()
      • removeDecisionRequirementsDefinition

        public void removeDecisionRequirementsDefinition​(java.lang.String decisionRequirementsDefinitionId)
      • getBpmnModelInstanceCache

        public org.camunda.commons.utils.cache.Cache<java.lang.String,​BpmnModelInstance> getBpmnModelInstanceCache()
      • getCmmnModelInstanceCache

        public org.camunda.commons.utils.cache.Cache<java.lang.String,​CmmnModelInstance> getCmmnModelInstanceCache()
      • getDmnDefinitionCache

        public org.camunda.commons.utils.cache.Cache<java.lang.String,​DmnModelInstance> getDmnDefinitionCache()
      • getDecisionDefinitionCache

        public org.camunda.commons.utils.cache.Cache<java.lang.String,​DecisionDefinitionEntity> getDecisionDefinitionCache()
      • getDecisionRequirementsDefinitionCache

        public org.camunda.commons.utils.cache.Cache<java.lang.String,​DecisionRequirementsDefinitionEntity> getDecisionRequirementsDefinitionCache()
      • getProcessDefinitionCache

        public org.camunda.commons.utils.cache.Cache<java.lang.String,​ProcessDefinitionEntity> getProcessDefinitionCache()
      • getCaseDefinitionCache

        public org.camunda.commons.utils.cache.Cache<java.lang.String,​CaseDefinitionEntity> getCaseDefinitionCache()
      • setDeployers

        public void setDeployers​(java.util.List<Deployer> deployers)
      • removeDeployment

        public void removeDeployment​(java.lang.String deploymentId)
      • removeAllDecisionRequirementsDefinitionsByDeploymentId

        protected void removeAllDecisionRequirementsDefinitionsByDeploymentId​(java.lang.String deploymentId)