org.camunda.bpm.engine.impl.persistence.deploy
Class DeploymentCache

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

public class DeploymentCache
extends Object

Author:
Tom Baeyens, Falko Menge

Field Summary
protected  Map<String,org.camunda.bpm.model.bpmn.BpmnModelInstance> bpmnModelInstanceCache
           
protected  List<Deployer> deployers
           
protected  Map<String,Object> knowledgeBaseCache
           
protected  Map<String,ProcessDefinitionEntity> processDefinitionCache
           
 
Constructor Summary
DeploymentCache()
           
 
Method Summary
 void addKnowledgeBase(String knowledgeBaseId, Object knowledgeBase)
           
 void addProcessDefinition(ProcessDefinitionEntity processDefinition)
           
 void deploy(DeploymentEntity deployment)
           
 void discardKnowledgeBaseCache()
           
 void discardProcessDefinitionCache()
           
 org.camunda.bpm.model.bpmn.BpmnModelInstance findBpmnModelInstanceForProcessDefinition(String processDefinitionId)
           
 ProcessDefinitionEntity findDeployedLatestProcessDefinitionByKey(String processDefinitionKey)
           
 ProcessDefinitionEntity findDeployedProcessDefinitionByDeploymentAndKey(String deploymentId, String processDefinitionKey)
           
 ProcessDefinitionEntity findDeployedProcessDefinitionById(String processDefinitionId)
           
 ProcessDefinitionEntity findDeployedProcessDefinitionByKeyAndVersion(String processDefinitionKey, Integer processDefinitionVersion)
           
 Map<String,org.camunda.bpm.model.bpmn.BpmnModelInstance> getBpmnModelInstanceCache()
           
 List<Deployer> getDeployers()
           
 Map<String,Object> getKnowledgeBaseCache()
           
 Map<String,ProcessDefinitionEntity> getProcessDefinitionCache()
           
 void removeDeployment(String deploymentId)
           
 void removeKnowledgeBase(String knowledgeBaseId)
           
 void removeProcessDefinition(String processDefinitionId)
           
 ProcessDefinitionEntity resolveProcessDefinition(ProcessDefinitionEntity processDefinition)
           
 void setDeployers(List<Deployer> deployers)
           
 void setKnowledgeBaseCache(Map<String,Object> knowledgeBaseCache)
           
 void setProcessDefinitionCache(Map<String,ProcessDefinitionEntity> processDefinitionCache)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

processDefinitionCache

protected Map<String,ProcessDefinitionEntity> processDefinitionCache

bpmnModelInstanceCache

protected Map<String,org.camunda.bpm.model.bpmn.BpmnModelInstance> bpmnModelInstanceCache

knowledgeBaseCache

protected Map<String,Object> knowledgeBaseCache

deployers

protected List<Deployer> deployers
Constructor Detail

DeploymentCache

public DeploymentCache()
Method Detail

deploy

public void deploy(DeploymentEntity deployment)

findDeployedProcessDefinitionById

public ProcessDefinitionEntity findDeployedProcessDefinitionById(String processDefinitionId)

findDeployedLatestProcessDefinitionByKey

public ProcessDefinitionEntity findDeployedLatestProcessDefinitionByKey(String processDefinitionKey)

findDeployedProcessDefinitionByKeyAndVersion

public ProcessDefinitionEntity findDeployedProcessDefinitionByKeyAndVersion(String processDefinitionKey,
                                                                            Integer processDefinitionVersion)

findDeployedProcessDefinitionByDeploymentAndKey

public ProcessDefinitionEntity findDeployedProcessDefinitionByDeploymentAndKey(String deploymentId,
                                                                               String processDefinitionKey)

resolveProcessDefinition

public ProcessDefinitionEntity resolveProcessDefinition(ProcessDefinitionEntity processDefinition)

findBpmnModelInstanceForProcessDefinition

public org.camunda.bpm.model.bpmn.BpmnModelInstance findBpmnModelInstanceForProcessDefinition(String processDefinitionId)

addProcessDefinition

public void addProcessDefinition(ProcessDefinitionEntity processDefinition)

removeProcessDefinition

public void removeProcessDefinition(String processDefinitionId)

addKnowledgeBase

public void addKnowledgeBase(String knowledgeBaseId,
                             Object knowledgeBase)

removeKnowledgeBase

public void removeKnowledgeBase(String knowledgeBaseId)

discardProcessDefinitionCache

public void discardProcessDefinitionCache()

discardKnowledgeBaseCache

public void discardKnowledgeBaseCache()

getBpmnModelInstanceCache

public Map<String,org.camunda.bpm.model.bpmn.BpmnModelInstance> getBpmnModelInstanceCache()

getProcessDefinitionCache

public Map<String,ProcessDefinitionEntity> getProcessDefinitionCache()

setProcessDefinitionCache

public void setProcessDefinitionCache(Map<String,ProcessDefinitionEntity> processDefinitionCache)

getKnowledgeBaseCache

public Map<String,Object> getKnowledgeBaseCache()

setKnowledgeBaseCache

public void setKnowledgeBaseCache(Map<String,Object> knowledgeBaseCache)

getDeployers

public List<Deployer> getDeployers()

setDeployers

public void setDeployers(List<Deployer> deployers)

removeDeployment

public void removeDeployment(String deploymentId)


Copyright © 2014 camunda services GmbH. All Rights Reserved.