Package eu.planets_project.tb.impl.system.batch

Examples of eu.planets_project.tb.impl.system.batch.TestbedBatchProcessorManager


        }else{
          return;
        }
      
        //3. get the BatchProcessing system that's notified
        TestbedBatchProcessorManager batchManager = TestbedBatchProcessorManager.getInstance();
        BatchProcessor bp = batchManager.getBatchProcessor(batchProcessorID);
       
        //check rollback and if batch processor has persistent jobs
        if((bp.getJob(ticket)==null) || (bp.getJobStatus(ticket).equals(TestbedBatchJob.NO_SUCH_JOB ))){
          log.debug("EJBTransactionRollback - BatchProcessor no persistent job - dropp job: "+ticket);
          return;
View Full Code Here


          return;
      }
     
      //DECIDE UPON WHICH BATCH_QUEUE WAS CHOSEN WHAT PROCESSOR TO CALL
      // Look for the batch system...
      TestbedBatchProcessorManager tbBatchManager = TestbedBatchProcessorManager.getInstance();
      BatchProcessor bp;
     
      //a) TB-experiment types before version1.0 - these use the ExperimentWorkflow
      if(executable.getBatchSystemIdentifier().equals(BatchProcessor.BATCH_IDENTIFIER_TESTBED_LOCAL)){
        //get the specific batchProcessor implementation
        bp = tbBatchManager.getBatchProcessor(BatchProcessor.BATCH_IDENTIFIER_TESTBED_LOCAL);
        // Invoke, depending on the experiment type:
        ExperimentWorkflow ewf = executable.getWorkflow();
        log.info("Submitting workflow: "+ewf+" to batch processor: "+BatchProcessor.BATCH_IDENTIFIER_TESTBED_LOCAL);
        log.info("Got inputs #"+executable.getInputData().size());
        String queue_key = bp.submitBatch( exp.getEntityID(), ewf , executable.getInputData());
        //already set: executable.setBatchQueueIdentifier(BatchProcessor.BATCH_QUEUE_TESTBED_LOCAL);
        executable.setBatchExecutionIdentifier(queue_key);
              executable.setExecutableInvoked(true);
              executable.setExecutionCompleted(false);
              log.info("Got key: "+queue_key);
      }
     
      //b) TB-experiment types using the wee batch processor
      if(executable.getBatchSystemIdentifier().equals(BatchProcessor.BATCH_QUEUE_TESTBED_WEE_LOCAL)){
        //get the specific batchProcessor implementation
        bp = tbBatchManager.getBatchProcessor(BatchProcessor.BATCH_QUEUE_TESTBED_WEE_LOCAL);
        log.info("Submitting workflow to batch processor: "+BatchProcessor.BATCH_QUEUE_TESTBED_WEE_LOCAL);
        log.info("Got inputs #"+executable.getInputData().size());
        //DataHandler dh = new DataHandlerImpl();
        //NOTE: previously submitting digital objects...
        //List<DigitalObject> digos = dh.convertFileRefsToURLAccessibleDigos(executable.getInputData());
View Full Code Here

TOP

Related Classes of eu.planets_project.tb.impl.system.batch.TestbedBatchProcessorManager

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.