class ExecutionGraphToInputsLocationsRetrieverAdapter implements InputsLocationsRetriever {

	@Override
	public Optional<CompletableFuture<TaskManagerLocation>> getTaskManagerLocation(ExecutionVertexID executionVertexId) {
		ExecutionVertex ev = getExecutionVertex(executionVertexId);

		if (ev.getExecutionState() != ExecutionState.CREATED) {
			return Optional.of(ev.getCurrentTaskManagerLocationFuture());
		} else {
			return Optional.empty();
		}
	}

	public  ExecutionGraphToInputsLocationsRetrieverAdapter(ExecutionGraph executionGraph);

}