Package com.sun.sgs.app

Examples of com.sun.sgs.app.TaskManager.scheduleTask()


            // 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


            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

    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

  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

    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

  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

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.