Examples of scheduleTask()


Examples of com.linkedin.helix.Mocks.MockHelixTaskExecutor.scheduleTask()

                                        message,
                                        context,
                                        currentStateDelta,
                                        executor);

    executor.scheduleTask(message, handler, context);
    while (!executor.isDone(msgId + "/" + message.getPartitionName()))
    {
      Thread.sleep(500);
    }
    AssertJUnit.assertTrue(stateModel.stateModelInvoked);
View Full Code Here

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

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

            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.scheduleTask()

    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.sun.sgs.app.TaskManager.scheduleTask()

  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.sun.sgs.kernel.TransactionScheduler.scheduleTask()

    for (SgsTestNode node : nodes) {
        TransactionScheduler localTxnScheduler =
      node.getSystemRegistry().
          getComponent(TransactionScheduler.class);
        Identity identity = node.getProxy().getCurrentOwner();
        localTxnScheduler.scheduleTask(
            new TestAbstractKernelRunnable() {
          public void run() {
        DataManager dataManager =
            AppContext.getDataManager();
        Counter counter;
View Full Code Here

Examples of com.sun.sgs.service.TaskService.scheduleTask()

       * Schedule a task to reassign the next channel coordinator, or
       * if done with coordinator reassignment, remove the recovered
       * node's  mapping from the node-to-event-queues map.
       */
      if (channelIter.hasNext()) {
    taskService.scheduleTask(this);
      }
  }
    }

    /**
 
View Full Code Here

Examples of com.sun.sgs.service.TaskService.scheduleTask()

    return;
      }
     
      BigInteger channelRefId = new BigInteger(iter.next());
      TaskService taskService = ChannelServiceImpl.getTaskService();
      taskService.scheduleTask(
    new RemoveFailedSessionsFromChannelTask(
        failedNodeId, channelRefId));
       
      // Schedule a task to remove failed sessions from next
      // locally coordinated channel.
View Full Code Here

Examples of com.sun.sgs.service.TaskService.scheduleTask()

        failedNodeId, channelRefId));
       
      // Schedule a task to remove failed sessions from next
      // locally coordinated channel.
      if (iter.hasNext()) {
    taskService.scheduleTask(this);
      }
  }
    }

    /**
 
View Full Code Here

Examples of com.sun.sgs.service.TaskService.scheduleTask()

    ClientSessionServiceImpl.getDataService();
      String key = dataService.nextServiceBoundName(lastKey);
      if (key != null && key.startsWith(nodePrefix)) {
    TaskService taskService =
        ClientSessionServiceImpl.getTaskService();
    taskService.scheduleTask(
        new CleanupDisconnectedSessionTask(key));
    lastKey = key;
    taskService.scheduleTask(this);
      }
  }
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.