// Path: hydra-composer/src/main/java/com/flipkart/hydra/composer/Composer.java
// public interface Composer {
// 
//     public Object compose(Map<String, Object> values) throws ComposerEvaluationException;
// 
//     public List<String> getDependencies();
// }
// 
// Path: hydra-composer/src/main/java/com/flipkart/hydra/composer/exception/ComposerEvaluationException.java
// public class ComposerEvaluationException extends Exception {
// 
//     public ComposerEvaluationException() {
//         super();
//     }
// 
//     public ComposerEvaluationException(String message) {
//         super(message);
//     }
// 
//     public ComposerEvaluationException(String message, Throwable cause) {
//         super(message, cause);
//     }
// 
//     public ComposerEvaluationException(Throwable cause) {
//         super(cause);
//     }
// }
// 
// Path: hydra-dispatcher/src/main/java/com/flipkart/hydra/dispatcher/exception/DispatchFailedException.java
// public class DispatchFailedException extends Exception {
// 
//     public DispatchFailedException() {
//         super();
//     }
// 
//     public DispatchFailedException(String message) {
//         super(message);
//     }
// 
//     public DispatchFailedException(String message, Throwable cause) {
//         super(message, cause);
//     }
// 
//     public DispatchFailedException(Throwable cause) {
//         super(cause);
//     }
// }
// 
// Path: hydra-task/src/main/java/com/flipkart/hydra/task/Task.java
// public interface Task {
// 
//     public Callable<Object> getCallable(Map<String, Object> values) throws BadCallableException;
// 
//     public List<String> getDependencies();
// }


import com.flipkart.hydra.composer.Composer;
import com.flipkart.hydra.composer.exception.ComposerEvaluationException;
import com.flipkart.hydra.dispatcher.exception.DispatchFailedException;
import com.flipkart.hydra.task.Task;
import java.util.Map;
/*
 * Copyright 2015 Flipkart Internet, pvt ltd.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package com.flipkart.hydra.dispatcher;



public interface Dispatcher {

    Object execute(Map<String, Object> params, Map<String, Task> tasks, Object context) throws DispatchFailedException, ComposerEvaluationException;

    Object execute(Map<String, Object> params, Map<String, Task> tasks, Object context, boolean isAlreadyParsed) throws DispatchFailedException, ComposerEvaluationException;

// Path: hydra-composer/src/main/java/com/flipkart/hydra/composer/Composer.java
// public interface Composer {
// 
//     public Object compose(Map<String, Object> values) throws ComposerEvaluationException;
// 
//     public List<String> getDependencies();
// }
// 
// Path: hydra-composer/src/main/java/com/flipkart/hydra/composer/exception/ComposerEvaluationException.java
// public class ComposerEvaluationException extends Exception {
// 
//     public ComposerEvaluationException() {
//         super();
//     }
// 
//     public ComposerEvaluationException(String message) {
//         super(message);
//     }
// 
//     public ComposerEvaluationException(String message, Throwable cause) {
//         super(message, cause);
//     }
// 
//     public ComposerEvaluationException(Throwable cause) {
//         super(cause);
//     }
// }
// 
// Path: hydra-dispatcher/src/main/java/com/flipkart/hydra/dispatcher/exception/DispatchFailedException.java
// public class DispatchFailedException extends Exception {
// 
//     public DispatchFailedException() {
//         super();
//     }
// 
//     public DispatchFailedException(String message) {
//         super(message);
//     }
// 
//     public DispatchFailedException(String message, Throwable cause) {
//         super(message, cause);
//     }
// 
//     public DispatchFailedException(Throwable cause) {
//         super(cause);
//     }
// }
// 
// Path: hydra-task/src/main/java/com/flipkart/hydra/task/Task.java
// public interface Task {
// 
//     public Callable<Object> getCallable(Map<String, Object> values) throws BadCallableException;
// 
//     public List<String> getDependencies();
// }


// Path: hydra-dispatcher/src/main/java/com/flipkart/hydra/dispatcher/Dispatcher.java
import com.flipkart.hydra.composer.Composer;
import com.flipkart.hydra.composer.exception.ComposerEvaluationException;
import com.flipkart.hydra.dispatcher.exception.DispatchFailedException;
import com.flipkart.hydra.task.Task;
import java.util.Map;

/*
 * Copyright 2015 Flipkart Internet, pvt ltd.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package com.flipkart.hydra.dispatcher;



public interface Dispatcher {

    Object execute(Map<String, Object> params, Map<String, Task> tasks, Object context) throws DispatchFailedException, ComposerEvaluationException;

    Object execute(Map<String, Object> params, Map<String, Task> tasks, Object context, boolean isAlreadyParsed) throws DispatchFailedException, ComposerEvaluationException;

    public Object execute(Map<String, Object> params, Map<String, Task> tasks, Composer composer) throws DispatchFailedException, ComposerEvaluationException;