java.lang.Object
org.camunda.bpm.engine.impl.persistence.deploy.cache.DeploymentCache

public class DeploymentCache extends Object
Author:
Tom Baeyens, Falko Menge
  • Field Details

  • Constructor Details

    • DeploymentCache

      public DeploymentCache(CacheFactory factory, int cacheCapacity)
  • Method Details

    • deploy

      public void deploy(DeploymentEntity deployment)
    • findProcessDefinitionFromCache

      public ProcessDefinitionEntity findProcessDefinitionFromCache(String processDefinitionId)
    • findDeployedProcessDefinitionById

      public ProcessDefinitionEntity findDeployedProcessDefinitionById(String processDefinitionId)
    • findDeployedLatestProcessDefinitionByKey

      public ProcessDefinitionEntity findDeployedLatestProcessDefinitionByKey(String processDefinitionKey)
      Returns:
      the latest version of the process definition with the given key (from any tenant)
      Throws:
      ProcessEngineException - if more than one tenant has a process definition with the given key
      See Also:
    • findDeployedLatestProcessDefinitionByKeyAndTenantId

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

      public ProcessDefinitionEntity findDeployedProcessDefinitionByKeyVersionAndTenantId(String processDefinitionKey, Integer processDefinitionVersion, String tenantId)
    • findDeployedProcessDefinitionByKeyVersionTagAndTenantId

      public ProcessDefinitionEntity findDeployedProcessDefinitionByKeyVersionTagAndTenantId(String processDefinitionKey, String processDefinitionVersionTag, String tenantId)
    • findDeployedProcessDefinitionByDeploymentAndKey

      public ProcessDefinitionEntity findDeployedProcessDefinitionByDeploymentAndKey(String deploymentId, String processDefinitionKey)
    • resolveProcessDefinition

      public ProcessDefinitionEntity resolveProcessDefinition(ProcessDefinitionEntity processDefinition)
    • findBpmnModelInstanceForProcessDefinition

      public BpmnModelInstance findBpmnModelInstanceForProcessDefinition(ProcessDefinitionEntity processDefinitionEntity)
    • findBpmnModelInstanceForProcessDefinition

      public BpmnModelInstance findBpmnModelInstanceForProcessDefinition(String processDefinitionId)
    • addProcessDefinition

      public void addProcessDefinition(ProcessDefinitionEntity processDefinition)
    • removeProcessDefinition

      public void removeProcessDefinition(String processDefinitionId)
    • discardProcessDefinitionCache

      public void discardProcessDefinitionCache()
    • addCamundaFormDefinition

      public void addCamundaFormDefinition(CamundaFormDefinitionEntity camundaFormDefinition)
    • removeCamundaFormDefinition

      public void removeCamundaFormDefinition(String camundaFormDefinitionId)
    • discardCamundaFormDefinitionCache

      public void discardCamundaFormDefinitionCache()
    • findCaseDefinitionFromCache

      public CaseDefinitionEntity findCaseDefinitionFromCache(String caseDefinitionId)
    • findDeployedCaseDefinitionById

      public CaseDefinitionEntity findDeployedCaseDefinitionById(String caseDefinitionId)
    • findDeployedLatestCaseDefinitionByKey

      public CaseDefinitionEntity findDeployedLatestCaseDefinitionByKey(String caseDefinitionKey)
      Returns:
      the latest version of the case definition with the given key (from any tenant)
      Throws:
      ProcessEngineException - if more than one tenant has a case definition with the given key
      See Also:
    • findDeployedLatestCaseDefinitionByKeyAndTenantId

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

      public CaseDefinitionEntity findDeployedCaseDefinitionByKeyVersionAndTenantId(String caseDefinitionKey, Integer caseDefinitionVersion, String tenantId)
    • findDeployedCaseDefinitionByDeploymentAndKey

      public CaseDefinitionEntity findDeployedCaseDefinitionByDeploymentAndKey(String deploymentId, String caseDefinitionKey)
    • getCaseDefinitionById

      public CaseDefinitionEntity getCaseDefinitionById(String caseDefinitionId)
    • resolveCaseDefinition

      public CaseDefinitionEntity resolveCaseDefinition(CaseDefinitionEntity caseDefinition)
    • findCmmnModelInstanceForCaseDefinition

      public CmmnModelInstance findCmmnModelInstanceForCaseDefinition(String caseDefinitionId)
    • addCaseDefinition

      public void addCaseDefinition(CaseDefinitionEntity caseDefinition)
    • removeCaseDefinition

      public void removeCaseDefinition(String caseDefinitionId)
    • discardCaseDefinitionCache

      public void discardCaseDefinitionCache()
    • findDecisionDefinitionFromCache

      public DecisionDefinitionEntity findDecisionDefinitionFromCache(String decisionDefinitionId)
    • findDeployedDecisionDefinitionById

      public DecisionDefinitionEntity findDeployedDecisionDefinitionById(String decisionDefinitionId)
    • findDeployedLatestDecisionDefinitionByKey

      public DecisionDefinition findDeployedLatestDecisionDefinitionByKey(String decisionDefinitionKey)
    • findDeployedLatestDecisionDefinitionByKeyAndTenantId

      public DecisionDefinition findDeployedLatestDecisionDefinitionByKeyAndTenantId(String decisionDefinitionKey, String tenantId)
    • findDeployedDecisionDefinitionByDeploymentAndKey

      public DecisionDefinition findDeployedDecisionDefinitionByDeploymentAndKey(String deploymentId, String decisionDefinitionKey)
    • findDeployedDecisionDefinitionByKeyAndVersion

      public DecisionDefinition findDeployedDecisionDefinitionByKeyAndVersion(String decisionDefinitionKey, Integer decisionDefinitionVersion)
    • findDeployedDecisionDefinitionByKeyVersionAndTenantId

      public DecisionDefinition findDeployedDecisionDefinitionByKeyVersionAndTenantId(String decisionDefinitionKey, Integer decisionDefinitionVersion, String tenantId)
    • findDeployedDecisionDefinitionByKeyVersionTagAndTenantId

      public DecisionDefinition findDeployedDecisionDefinitionByKeyVersionTagAndTenantId(String decisionDefinitionKey, String decisionDefinitionVersionTag, String tenantId)
    • resolveDecisionDefinition

      public DecisionDefinitionEntity resolveDecisionDefinition(DecisionDefinitionEntity decisionDefinition)
    • findDmnModelInstanceForDecisionDefinition

      public DmnModelInstance findDmnModelInstanceForDecisionDefinition(String decisionDefinitionId)
    • addDecisionDefinition

      public void addDecisionDefinition(DecisionDefinitionEntity decisionDefinition)
    • removeDecisionDefinition

      public void removeDecisionDefinition(String decisionDefinitionId)
    • discardDecisionDefinitionCache

      public void discardDecisionDefinitionCache()
    • addDecisionRequirementsDefinition

      public void addDecisionRequirementsDefinition(DecisionRequirementsDefinitionEntity decisionRequirementsDefinition)
    • findDecisionRequirementsDefinitionFromCache

      public DecisionRequirementsDefinitionEntity findDecisionRequirementsDefinitionFromCache(String decisionRequirementsDefinitionId)
    • findDeployedDecisionRequirementsDefinitionById

      public DecisionRequirementsDefinitionEntity findDeployedDecisionRequirementsDefinitionById(String decisionRequirementsDefinitionId)
    • resolveDecisionRequirementsDefinition

      public DecisionRequirementsDefinitionEntity resolveDecisionRequirementsDefinition(DecisionRequirementsDefinitionEntity decisionRequirementsDefinition)
    • discardDecisionRequirementsDefinitionCache

      public void discardDecisionRequirementsDefinitionCache()
    • removeDecisionRequirementsDefinition

      public void removeDecisionRequirementsDefinition(String decisionRequirementsDefinitionId)
    • getBpmnModelInstanceCache

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

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

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

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

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

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

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

      public void setDeployers(List<Deployer> deployers)
    • removeDeployment

      public void removeDeployment(String deploymentId)
    • removeAllDecisionRequirementsDefinitionsByDeploymentId

      protected void removeAllDecisionRequirementsDefinitionsByDeploymentId(String deploymentId)
    • purgeCache

      public CachePurgeReport purgeCache()