Package eu.planets_project.services

Examples of eu.planets_project.services.PlanetsException


    if(this.mapUUIDtoWF.containsKey(ticket)){
      WorkflowInstance wf = mapUUIDtoWF.get(ticket);
      return this.localJobqueue.indexOf(wf);
    }
    log.debug("WEEManager: requesting position for unknown ticket #"+ticket);
    throw new PlanetsException("WEEManager: requesting position for unknown ticket #"+ticket);
  }
View Full Code Here


  public WorkflowExecutionStatus getStatus(UUID ticket) throws PlanetsException{
    if(isTicketKnown(ticket)){
      return this.mapUUIDtoExecStatus.get(ticket);
    }
    log.debug("WEEManager: requesting status for unknown ticket #"+ticket);
    throw new PlanetsException("WEEManager: requesting status for unknown ticket #"+ticket);
  }
View Full Code Here

        //now fetch the execution's result data
        return this.mapUUIDtoExecResults.get(ticket);
      }
      else{
        log.debug("WEEManager: requesting WEE Execution Result failed for workflow ticket #"+ticket+".");
        throw new PlanetsException("WEEManager: requesting WEE Execution Result for a scheduled but not executed or failed workflow. ticket #"+ticket);
      }
    }
    else{
      log.debug("WEEManager: requesting WEE Execution Result for unknown ticket #"+ticket);
      throw new PlanetsException("WEEManager: requesting WEE Execution Result for unknown ticket #"+ticket);
    }
  }
View Full Code Here

        //known ticket, but execution not yet started
        return -1;
      }
    }
    log.debug("WEEManager: requesting progress for unknown ticket #"+ticket);
    throw new PlanetsException("WEEManager: requesting progress for unknown ticket #"+ticket);
  }
View Full Code Here

      throws PlanetsException {
    try {
      if(workflowTemplateQName==null){
        String e = "WorkflowRegistry: please specify the workflowTemplate QName to retrieve its binary";
        log.debug(e);
        throw new PlanetsException(e);
      }
       
      return this.dataManager.retrieveBinary(
          new URI(wfTemplateDir+"/"+RegistryUtils.convertQNameToRegistryPathPURI(workflowTemplateQName)));
    } catch (Exception e) {
      //SOAPException, URISyntaxException
      log.error("Problems finding "+workflowTemplateQName+ "template at URI path: "+wfTemplateDir+"/"+RegistryUtils.convertQNameToRegistryPathPURI(workflowTemplateQName),e);
      throw new PlanetsException("No "+workflowTemplateQName+" template found at: "+wfTemplateDir+"/"+RegistryUtils.convertQNameToRegistryPathPURI(workflowTemplateQName));
    }
  }
View Full Code Here

      WftRegistryCacheImpl.getInstance().addElementToCache(new URI(path));
     
    } catch (Exception e) {
      //LoginException, RepositoryException, URISyntaxException
      log.error("Error storing wfTemplate "+workflowTemplateQName+ "template in data registry URI path: "+wfTemplateDir+"/"+RegistryUtils.convertQNameToRegistryPathPURI(workflowTemplateQName),e);
      throw new PlanetsException("An error occured storing: "+workflowTemplateQName+" within the repository");
    }
  }
View Full Code Here

TOP

Related Classes of eu.planets_project.services.PlanetsException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.