Examples of deleteTask()


Examples of com.centraview.projects.projectfacade.ProjectFacade.deleteTask()

        if(rowId[i] != null && !rowId[i].equals(""))
        {         
          int elementId = Integer.parseInt(rowId[i]);
          try
          {
            remote.deleteTask(elementId, individualId);
          } catch(AuthorizationFailedException ae) {
            String errorMessage = ae.getExceptionDescription();
            deleteLog.add(errorMessage);
          }
        }
View Full Code Here

Examples of com.centraview.projects.task.TaskLocal.deleteTask()

      InitialContext ic = CVUtility.getInitialContext();
      TaskLocalHome home = (TaskLocalHome)ic.lookup("local/Task");
      TaskLocal remote = (TaskLocal)home.create();
      remote.setDataSource(this.dataSource);

      remote.deleteTask(taskID, individualID);
    } catch (CreateException ce) {
      throw new EJBException(ce);
    } catch (NamingException re) {
      throw new EJBException(re);
    }
View Full Code Here

Examples of com.cloudtasks.shared.CloudTasksRequest.deleteTask()

    });

    tasksTable.deleteColumn.setFieldUpdater(new FieldUpdater<TaskProxy, String>() {
      public void update(int index, TaskProxy task, String value) {
        CloudTasksRequest request = requestFactory.cloudTasksRequest();
        request.deleteTask(task).fire();
        tasksList.remove(task);
      }
    });

    taskInput.getElement().setPropertyString("placeholder", "Add new tasks here");
View Full Code Here

Examples of com.google.appengine.api.labs.taskqueue.dev.LocalTaskQueue.deleteTask()

    LocalTaskQueue ltq = LocalTaskQueueTestConfig.getLocalTaskQueue();
    String defaultQueueName = QueueFactory.getDefaultQueue().getQueueName();
    QueueStateInfo qsi = ltq.getQueueStateInfo().get(defaultQueueName);
    List<TaskStateInfo> taskInfo = qsi.getTaskInfo();
    for (TaskStateInfo task : taskInfo) {
      ltq.deleteTask(defaultQueueName, task.getTaskName());
    }
  }

  public static Key prepareDropControlKey(String kindName) {
View Full Code Here

Examples of com.google.appengine.api.taskqueue.Queue.deleteTask()

     */
    @Override
    public void cancelTask(String id) {
      // stop the task
      Queue queue = QueueFactory.getDefaultQueue();
      queue.deleteTask(id);
     
      // remove stored task
      ObjectDatastore datastore = new AnnotationObjectDatastore();
      GaeTask storedTask = datastore.load(GaeTask.class, id);
      if (storedTask != null) {
View Full Code Here

Examples of com.google.appengine.api.taskqueue.Queue.deleteTask()

            List<TaskHandle> handles = queue.leaseTasks(30, TimeUnit.MINUTES, 100);
            assertFalse(handles.isEmpty());
            TaskHandle lh = handles.get(0);
            assertEquals(th.getName(), lh.getName());
        } finally {
            queue.deleteTask(th);
        }
    }

    @Test
    public void testPullPayload() throws Exception {
View Full Code Here

Examples of com.google.appengine.api.taskqueue.Queue.deleteTask()

            List<TaskHandle> handles = queue.leaseTasks(30, TimeUnit.MINUTES, 100);
            assertFalse(handles.isEmpty());
            TaskHandle lh = handles.get(0);
            assertEquals(th.getName(), lh.getName());
        } finally {
            queue.deleteTask(th);
        }
    }

    @Test
    public void testLeaseTasksOnlyReturnsSpecifiedNumberOfTasks() {
View Full Code Here

Examples of com.google.appengine.api.taskqueue.Queue.deleteTask()

        try {
            int countLimit = 1;
            List<TaskHandle> handles = queue.leaseTasks(10, TimeUnit.SECONDS, countLimit);
            assertEquals(countLimit, handles.size());
        } finally {
            queue.deleteTask(th1);
            queue.deleteTask(th2);
        }
    }

}
View Full Code Here

Examples of com.google.appengine.api.taskqueue.Queue.deleteTask()

            int countLimit = 1;
            List<TaskHandle> handles = queue.leaseTasks(10, TimeUnit.SECONDS, countLimit);
            assertEquals(countLimit, handles.size());
        } finally {
            queue.deleteTask(th1);
            queue.deleteTask(th2);
        }
    }

}
View Full Code Here

Examples of com.google.appengine.api.taskqueue.Queue.deleteTask()

    }

    @Test(expected = IllegalStateException.class)
    public void testDeleteNonExist() {
        Queue nonExistQueue = QueueFactory.getQueue("nonExistQueue");
        nonExistQueue.deleteTask("nonexist");
    }

    @Test
    public void testDelete() {
        String groupTag = "testDelete";
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.