Package org.apache.flink.runtime.jobgraph

Examples of org.apache.flink.runtime.jobgraph.JobID


    try {
      // a slot than cannot be deployed to
      final TaskOperationProtocol taskManager = mock(TaskOperationProtocol.class);
      final Instance instance = getInstance(taskManager);
      final AllocatedSlot slot = instance.allocateSlot(new JobID());
      slot.cancel();
      assertFalse(slot.isReleased());
     
      final SlotAllocationFuture future = new SlotAllocationFuture();
     
View Full Code Here


  public void testScheduleToDeploy() {
    try {
      // a slot than cannot be deployed to
      final TaskOperationProtocol taskManager = mock(TaskOperationProtocol.class);
      final Instance instance = getInstance(taskManager);
      final AllocatedSlot slot = instance.allocateSlot(new JobID());
     
      final ExecutionJobVertex ejv = getJobVertexNotExecuting(new JobVertexID());
      final ExecutionVertex vertex = new ExecutionVertex(ejv, 0, new IntermediateResult[0]);
     
      Scheduler scheduler = mock(Scheduler.class);
View Full Code Here

    synchronized (this.collectedEvents) {

      final Iterator<JobID> it = this.collectedEvents.keySet().iterator();
      while (it.hasNext()) {

        final JobID jobID = it.next();
        final List<AbstractEvent> eventList = this.collectedEvents.get(jobID);
        if (eventList == null) {
          continue;
        }
View Full Code Here

    }

    @Override
    public void jobStatusHasChanged(ExecutionGraph executionGraph, JobStatus newJobStatus, String optionalMessage) {

      final JobID jobID = executionGraph.getJobID();

      if (newJobStatus == JobStatus.RUNNING) {
        this.eventCollector.addExecutionGraph(jobID, executionGraph);
      }
View Full Code Here

 
  private static ExecutionJobVertex getJobVertexBase(JobVertexID id) throws JobException {
    AbstractJobVertex ajv = new AbstractJobVertex("TestVertex", id);
    ajv.setInvokableClass(mock(AbstractInvokable.class).getClass());
   
    ExecutionGraph graph = new ExecutionGraph(new JobID(), "test job", new Configuration());
   
    ExecutionJobVertex ejv = spy(new ExecutionJobVertex(graph, ajv, 1));
   
    Answer<Void> noop = new Answer<Void>() {
      @Override
View Full Code Here

TOP

Related Classes of org.apache.flink.runtime.jobgraph.JobID

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.