else {
IDuccProcessMap processMap = duccWorkJob.getProcessMap();
Iterator<DuccId> resourceMapIterator = resourceMap.keySet().iterator();
while(resourceMapIterator.hasNext()) {
DuccId duccId = resourceMapIterator.next();
IResource resource = resourceMap.get(duccId);
Node node = resourceMap.get(duccId).getNode();
NodeIdentity nodeId = node.getNodeIdentity();
if(!processMap.containsKey(duccId)) {
ProcessType processType = null;
switch(duccWorkJob.getServiceDeploymentType()) {
case custom:
case other:
processType = ProcessType.Pop;
break;
case uima:
case unspecified:
processType = ProcessType.Job_Uima_AS_Process;
break;
}
DuccProcess process = new DuccProcess(duccId, node, processType);
long process_max_size_in_bytes = quantum_size_in_bytes * resource.countShares();
CGroupManager.assign(duccWorkJob.getDuccId(), process, process_max_size_in_bytes);
orchestratorCommonArea.getProcessAccounting().addProcess(duccId, duccWorkJob.getDuccId());
processMap.addProcess(process);
process.setResourceState(ResourceState.Allocated);
logger.info(methodName, duccWorkJob.getDuccId(), messages.fetch("resource added")