1 16 package org.outerj.daisy.doctaskrunner; 17 18 import org.outerj.daisy.repository.VariantKey; 19 import org.outerj.daisy.repository.RepositoryException; 20 21 33 public interface DocumentTaskManager { 34 51 long runTask(DocumentSelection documentSelection, TaskSpecification taskSpecification) throws TaskException, RepositoryException; 52 53 Task getTask(long id) throws TaskException, RepositoryException; 54 55 59 Tasks getTasks() throws TaskException, RepositoryException; 60 61 64 void deleteTask(long id) throws TaskException, RepositoryException; 65 66 69 void interruptTask(long id) throws TaskException, RepositoryException; 70 71 TaskDocDetails getTaskDocDetails(long taskId) throws TaskException, RepositoryException; 72 73 TaskSpecification createTaskSpecification(String description, String script, String scriptLanguage, boolean stopOnFirstError); 74 75 SimpleActionsTaskSpecification createSimpleActionsTaskSpecification(String description, boolean stopOnFirstError); 76 77 DocumentSelection createQueryDocumentSelection(String query); 78 79 DocumentSelection createEnumerationDocumentSelection(VariantKey[] variantKeys); 80 } 81 | Popular Tags |