Examples of PipelineObjects


Examples of com.google.appengine.tools.pipeline.impl.model.PipelineObjects

    // never run
    assertEquals(1, ChildJob.runCount.get());

    // Get all of the Pipeline objects so we can confirm the orphaned jobs are
    // really there
    PipelineObjects allObjects = PipelineManager.queryFullPipeline(pipelineHandle);
    Key rootJobKey = KeyFactory.createKey(JobRecord.DATA_STORE_KIND, pipelineHandle);
    JobRecord rootJob = allObjects.jobs.get(rootJobKey);
    assertNotNull(rootJob);
    String graphGuid = rootJob.getChildGraphGuid();
    assertNotNull(graphGuid);
View Full Code Here

Examples of com.google.appengine.tools.pipeline.impl.model.PipelineObjects

    assertEquals(job.getJobDisplayName(), jobRecord.getRootJobDisplayName());
    JobInfo jobInfo = waitUntilJobComplete(pipelineId);
    assertEquals("Shalom", jobInfo.getOutput());
    jobRecord = PipelineManager.getJob(pipelineId);
    assertEquals(job.getJobDisplayName(), jobRecord.getRootJobDisplayName());
    PipelineObjects pobjects = PipelineManager.queryFullPipeline(pipelineId);
    assertEquals(job.getJobDisplayName(), pobjects.rootJob.getRootJobDisplayName());
  }
View Full Code Here

Examples of com.google.appengine.tools.pipeline.impl.model.PipelineObjects

      jobInstanceRecords.put(entity.getKey(), new JobInstanceRecord(entity));
    }
    for (Entity entity : queryAll(ExceptionRecord.DATA_STORE_KIND, rootJobKey)) {
      failureRecords.put(entity.getKey(), new ExceptionRecord(entity));
    }
    return new PipelineObjects(
        rootJobKey, jobs, slots, barriers, jobInstanceRecords, failureRecords);
  }
View Full Code Here

Examples of com.google.appengine.tools.pipeline.impl.model.PipelineObjects

      if (!rootJobKey.equals(rootJobHandle)) {
        resp.addHeader(ROOT_PIPELINE_ID, rootJobKey);
        resp.sendError(449, rootJobKey);
        return;
      }
      PipelineObjects pipelineObjects = PipelineManager.queryFullPipeline(rootJobKey);
      String asJson = JsonGenerator.pipelineObjectsToJson(pipelineObjects);
      // TODO(user): Temporary until we support abort/delete in Python
      resp.addHeader("Pipeline-Lang", "Java");
      resp.getWriter().write(asJson);
    } catch (IOException e) {
View Full Code Here

Examples of com.google.appengine.tools.pipeline.impl.model.PipelineObjects

    String rootJobHandle = req.getParameter(ROOT_PIPELINE_ID);
    if (null == rootJobHandle) {
      throw new ServletException(ROOT_PIPELINE_ID + " parameter not found.");
    }
    PipelineObjects pipelineObjects = PipelineManager.queryFullPipeline(rootJobHandle);
    JsonGenerator generator = new JsonGenerator(pipelineObjects);
    try {
      resp.getWriter().write(generator.getJson());
    } catch (IOException e) {
      throw new ServletException(e);
View Full Code Here

Examples of com.google.appengine.tools.pipeline.impl.model.PipelineObjects

      @Override
      public JobInstanceRecord newObject(Entity entity) {
        return new JobInstanceRecord(entity);
      }
    }, JobInstanceRecord.DATA_STORE_KIND, rootJobKey);
    return new PipelineObjects(rootJobKey, jobs, slots, barriers, jobInstanceRecords);
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.