View Javadoc
1   package com.github.dexecutor.executor.graph;
2   
3   /**
4    * This interface provides API to validate the graph before tasks execution
5    * @author Nadeem Mohammad
6    *
7    * @param <T>
8    */
9   public interface Validator<T extends Comparable<T>> {
10  	/**
11  	 * Called to figure out if a graph is valid or not, exception should be thrown if the graph is invalid
12  	 * @param graph
13  	 */
14  	void validate(Graph<T> graph);
15  }