Examples of TaskManager


Examples of com.sun.sgs.app.TaskManager

            // schedule tasks to handle up to count operations
            if (!(opsRef.get().isTaskRunning())) {
                opsRef.get().setTaskRunning(true);

                TaskManager tm = AppContext.getTaskManager();
                tm.scheduleTask(new SharedListRevalidateTask(sender, clientID,
                                                             count, opsRef));
            }
        }
View Full Code Here

Examples of com.sun.sgs.app.TaskManager

            // schedule a task to handle more
            if (size - num > 0) {
                logger.fine("Continue " + (size - num) + " remaining tasks " +
                            " with count " + count);

                TaskManager tm = AppContext.getTaskManager();
                tm.scheduleTask(new SharedListRevalidateTask(sender, clientID,
                                                             count, opsRef));
            } else {
                logger.fine("Done running task");
                opsRef.get().setTaskRunning(false);
            }
View Full Code Here

Examples of com.sun.sgs.app.TaskManager

     * <p>
     * Runs the task {@value #DELAY_MS} ms from now,
     * repeating every {@value #PERIOD_MS} ms.
     */
    public void initialize(Properties props) {
        TaskManager taskManager = AppContext.getTaskManager();
        taskManager.schedulePeriodicTask(this, DELAY_MS, PERIOD_MS);
    }
View Full Code Here

Examples of com.sun.sgs.app.TaskManager

     * <p>
     * Runs the task {@value #DELAY_MS} ms from now,
     * repeating every {@value #PERIOD_MS} ms.
     */
    public void initialize(Properties props) {
        TaskManager taskManager = AppContext.getTaskManager();
        taskManager.schedulePeriodicTask(this, DELAY_MS, PERIOD_MS);
    }
View Full Code Here

Examples of com.sun.sgs.app.TaskManager

     */
    public void initialize(Properties props) {
        // Hold onto the task (as a managed reference)
        setSubTask(new TrivialTimedTask());

        TaskManager taskManager = AppContext.getTaskManager();
        taskManager.schedulePeriodicTask(this, DELAY_MS, PERIOD_MS);
    }
View Full Code Here

Examples of com.sun.sgs.app.TaskManager

    public void initialize(Properties props) {
        TrivialTimedTask task = new TrivialTimedTask();

        logger.log(Level.INFO, "Created task: {0}", task);

        TaskManager taskManager = AppContext.getTaskManager();
        taskManager.schedulePeriodicTask(task, DELAY_MS, PERIOD_MS);
    }
View Full Code Here

Examples of com.sun.sgs.app.TaskManager

     * the actual removal in a separate task to avoid scaling problems.
     */
    private void removeChildrenAndEntries() {
  AppContext.getDataManager().markForUpdate(this);
  modifications++;
  TaskManager taskManager = AppContext.getTaskManager();
  if (isLeafNode()) {
      taskManager.scheduleTask(new RemoveNodeEntriesTask(this));
      table = null;
  } else {
            taskManager.scheduleTask(new RemoveNodesTask<K, V>(this));
      nodeDirectory = null;
  }
    }
View Full Code Here

Examples of com.vmware.vim.binding.vim.TaskManager

    * 200 tasks.
    *
    * @throws Exception
    */
   public static void dumpRecentTasks() throws Exception {
      TaskManager taskManager = VcContext.getService().getTaskManager();
      ManagedObjectReference taskMoRefs[] = taskManager.getRecentTask();
      for (ManagedObjectReference moRef : taskMoRefs) {
         Task task = MoUtil.getManagedObject(moRef);
         dumpTask(task);
      }
   }
View Full Code Here

Examples of com.vmware.vim25.mo.TaskManager

    }
    
    ServiceInstance si = new ServiceInstance(
      new URL(args[0]), args[1], args[2], true);
    
    TaskManager taskMgr = si.getTaskManager();

    if(taskMgr!=null)
    {
      Folder root = si.getRootFolder();
      TaskFilterSpec tfs = createTaskFilterSpec(root);
      TaskHistoryCollector thc =
          taskMgr.createCollectorForTasks(tfs);
     
      // Note: 10 <= pagesize <= 62
      thc.setCollectorPageSize(15);

      System.out.println("Tasks in latestPage:");
View Full Code Here

Examples of eu.stratosphere.nephele.taskmanager.TaskManager

      tm.setInteger(ConfigConstants.TASK_MANAGER_IPC_PORT_KEY, ipcPort + i);
      tm.setInteger(ConfigConstants.TASK_MANAGER_DATA_PORT_KEY, dataPort + i);

      GlobalConfiguration.includeConfiguration(tm);

      TaskManager t = new TaskManager();
      taskManagers.add(t);
    }
  }
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.