Examples of cancelTask()


Examples of org.codehaus.plexus.taskqueue.execution.TaskQueueExecutor.cancelTask()

            TaskQueueExecutor executor =
                (TaskQueueExecutor) container.lookup( TaskQueueExecutor.class, "prepare-build-project" );
            Task task = executor.getCurrentTask();
            if ( task != null )
            {
                executor.cancelTask( task );
            }
        }
        catch ( ComponentLookupException e )
        {
            throw new BuildManagerException( "Error looking up prepare-build-queue.", e );
View Full Code Here

Examples of org.eclipse.orion.server.core.tasks.ITaskService.cancelTask()

    boolean isKeep = "id".equals(path.segment(0));
    String taskId = path.segment(1);
    ITaskService taskService = taskTracker.getService();
    try {
      taskService.cancelTask(TaskJobHandler.getUserId(req), taskId, isKeep);
    } catch (TaskDoesNotExistException e) {
      handleException(resp, "Could not cancel task that does not exist: " + e.getTaskId(), e, HttpServletResponse.SC_NOT_FOUND);
      return;
    } catch (TaskOperationException e) {
      handleException(resp, e.getMessage(), e);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.