Examples of cancelTask()


Examples of com.almende.eve.scheduler.Scheduler.cancelTask()

    // TODO: unsubscribe from all subscriptions
   
    // cancel all scheduled tasks.
    Scheduler scheduler = getScheduler();
    for (String taskId : scheduler.getTasks()) {
      scheduler.cancelTask(taskId);
    }
   
    // remove all keys from the state
    // Note: the state itself will be deleted by the AgentFactory
    state.clear();
View Full Code Here

Examples of com.almende.eve.scheduler.Scheduler.cancelTask()

   
    // cancel all scheduled tasks.
    Scheduler scheduler = getScheduler();
    if (scheduler != null){
      for (String taskId : scheduler.getTasks()) {
        scheduler.cancelTask(taskId);
      }
    }
    // remove all keys from the state
    // Note: the state itself will be deleted by the AgentFactory
    state.clear();
View Full Code Here

Examples of com.almende.eve.scheduler.Scheduler.cancelTask()

   
    // cancel all scheduled tasks.
    Scheduler scheduler = getScheduler();
    if (scheduler != null){
      for (String taskId : scheduler.getTasks()) {
        scheduler.cancelTask(taskId);
      }
    }
    // remove all keys from the state
    // Note: the state itself will be deleted by the AgentFactory
    state.clear();
View Full Code Here

Examples of com.sun.enterprise.web.connector.grizzly.ReadTask.cancelTask()

                            log(Level.SEVERE,"Rule delay exception",ex);
                }
                i = 0;
                continue;
            else if ( status == RULE_BLOCKED ){
                task.cancelTask("No resources available.", HtmlHelper.OK);
                return true;
            }
           
            i++;
            if (i == rules.size()){
View Full Code Here

Examples of com.sun.enterprise.web.connector.grizzly.ReadTask.cancelTask()

                            log(Level.SEVERE,"Rule delay exception",ex);
                }
                i = 0;
                continue;
            else if ( status == RULE_BLOCKED ){
                task.cancelTask("No resources available.", HtmlHelper.OK);
                return true;
            }
           
            i++;
            if (i == rules.size()){
View Full Code Here

Examples of eu.stratosphere.nephele.executiongraph.ExecutionVertex.cancelTask()

    final Iterator<ExecutionVertex> it = new ExecutionGraphIterator(eg, eg.getIndexOfCurrentExecutionStage(),
      false, true);
    while (it.hasNext()) {

      final ExecutionVertex vertex = it.next();
      final TaskCancelResult result = vertex.cancelTask();
      if (result.getReturnCode() != AbstractTaskResult.ReturnCode.SUCCESS) {
        errorResult = result;
      }
    }
View Full Code Here

Examples of eu.stratosphere.nephele.executiongraph.ExecutionVertex.cancelTask()

          continue;
        }

        LOG.info(vertex + " is canceled by recovery logic");
        verticesToBeRestarted.put(vertex.getID(), vertex);
        final TaskCancelResult cancelResult = vertex.cancelTask();

        if (cancelResult.getReturnCode() != AbstractTaskResult.ReturnCode.SUCCESS
            && cancelResult.getReturnCode() != AbstractTaskResult.ReturnCode.TASK_NOT_FOUND) {

          verticesToBeRestarted.remove(vertex.getID());
View Full Code Here

Examples of org.apache.continuum.builder.distributed.executor.DistributedBuildTaskQueueExecutor.cancelTask()

                    if ( currentTask.getProjectGroupId() == projectGroupId &&
                        currentTask.getScmRootAddress().equals( scmRootAddress ) )
                    {
                        log.info( "cancelling task for project group " + projectGroupId + " with scm root address " +
                            scmRootAddress );
                        taskQueueExecutor.cancelTask( currentTask );

                        try
                        {
                            SlaveBuildAgentTransportClient client =
                                new SlaveBuildAgentTransportClient( new URL( buildAgentUrl ) );
View Full Code Here

Examples of org.apache.continuum.builder.distributed.executor.ThreadedDistributedBuildTaskQueueExecutor.cancelTask()

                    if ( currentTask.getProjectGroupId() == projectGroupId &&
                         currentTask.getScmRootAddress().equals( scmRootAddress ) )
                    {
                        log.info( "cancelling task for project group " + projectGroupId +
                                  " with scm root address " + scmRootAddress );
                        taskQueueExecutor.cancelTask( currentTask );

                        try
                        {
                            SlaveBuildAgentTransportClient client = new SlaveBuildAgentTransportClient( new URL( buildAgentUrl ) );
                            client.cancelBuild();
View Full Code Here

Examples of org.apache.flink.runtime.protocols.TaskOperationProtocol.cancelTask()

      assertEquals(ExecutionState.SCHEDULED, vertex.getExecutionState());
     
      // task manager mock
      TaskOperationProtocol taskManager = mock(TaskOperationProtocol.class);
      when(taskManager.submitTask(Matchers.any(TaskDeploymentDescriptor.class))).thenReturn(new TaskOperationResult(execId, true));
      when(taskManager.cancelTask(execId)).thenReturn(new TaskOperationResult(execId, true), new TaskOperationResult(execId, false));
     
      Instance instance = getInstance(taskManager);
      AllocatedSlot slot = instance.allocateSlot(new JobID());
     
      vertex.deployToSlot(slot);
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.