@Test public void testStartScheduling() { JobVertexID jobVertexID = new JobVertexID(); testingSchedulingTopology.addSchedulingExecutionVertex(new TestingSchedulingExecutionVertex(jobVertexID, 0)); testingSchedulingTopology.addSchedulingExecutionVertex(new TestingSchedulingExecutionVertex(jobVertexID, 1)); testingSchedulingTopology.addSchedulingExecutionVertex(new TestingSchedulingExecutionVertex(jobVertexID, 2)); testingSchedulingTopology.addSchedulingExecutionVertex(new TestingSchedulingExecutionVertex(jobVertexID, 3)); testingSchedulingTopology.addSchedulingExecutionVertex(new TestingSchedulingExecutionVertex(jobVertexID, 4)); schedulingStrategy.startScheduling(); assertThat(testingSchedulerOperations.getScheduledVertices(), hasSize(1)); Collection<ExecutionVertexDeploymentOption> scheduledVertices = testingSchedulerOperations.getScheduledVertices().get(0); Collection<ExecutionVertexID> scheduledVertexIDs = getExecutionVertexIdsFromDeployOptions(scheduledVertices); assertThat(scheduledVertexIDs, hasSize(5)); for (SchedulingExecutionVertex schedulingExecutionVertex : testingSchedulingTopology.getVertices()) { assertThat(scheduledVertexIDs, hasItem(schedulingExecutionVertex.getId())); } }
@Override public void startScheduling() { final Set<ExecutionVertexID> allVertices = getAllVerticesFromTopology(); allocateSlotsAndDeploy(allVertices); }
EagerSchedulingStrategy implements SchedulingStrategy { @Override public void startScheduling() { final Set<ExecutionVertexID> allVertices = getAllVerticesFromTopology(); allocateSlotsAndDeploy(allVertices); } }
EagerSchedulingStrategy implements SchedulingStrategy { @Override public void startScheduling() { final Set<ExecutionVertexID> allVertices = getAllVerticesFromTopology(); allocateSlotsAndDeploy(allVertices); } EagerSchedulingStrategy(
			SchedulerOperations schedulerOperations,
			SchedulingTopology schedulingTopology); }
EagerSchedulingStrategy implements SchedulingStrategy { @Override public void startScheduling() { final Set<ExecutionVertexID> allVertices = getAllVerticesFromTopology(); allocateSlotsAndDeploy(allVertices); } EagerSchedulingStrategy(
			SchedulerOperations schedulerOperations,
			SchedulingTopology schedulingTopology); @Override void startScheduling(); @Override void restartTasks(Set<ExecutionVertexID> verticesToRestart); @Override void onExecutionStateChange(ExecutionVertexID executionVertexId, ExecutionState executionState); @Override void onPartitionConsumable(ExecutionVertexID executionVertexId, ResultPartitionID resultPartitionId); }
EagerSchedulingStrategy implements SchedulingStrategy { @Override public void startScheduling() { final Set<ExecutionVertexID> allVertices = getAllVerticesFromTopology(); allocateSlotsAndDeploy(allVertices); } EagerSchedulingStrategy(
			SchedulerOperations schedulerOperations,
			SchedulingTopology schedulingTopology); @Override void startScheduling(); @Override void restartTasks(Set<ExecutionVertexID> verticesToRestart); @Override void onExecutionStateChange(ExecutionVertexID executionVertexId, ExecutionState executionState); @Override void onPartitionConsumable(ExecutionVertexID executionVertexId, ResultPartitionID resultPartitionId);  }