Examples of AbstractKernelRunnable


Examples of com.sun.sgs.impl.util.AbstractKernelRunnable

      /*
       * Check service version.
       */
      transactionScheduler.runTask(
    new AbstractKernelRunnable("CheckServiceVersion") {
        public void run() {
      checkServiceVersion(
          VERSION_KEY, MAJOR_VERSION, MINOR_VERSION);
        } },  taskOwner);
     
      /*
       * Create channel server map, keyed by node ID.  Then store
       * channel server in the channel server map.
       */
      transactionScheduler.runTask(
    new AbstractKernelRunnable("StoreChannelServerProxy") {
        public void run() {
      getChannelServerMap().put(
          Long.toString(localNodeId), serverProxy);
        } },
    taskOwner);
View Full Code Here

Examples of com.sun.sgs.impl.util.AbstractKernelRunnable

    void addChannelTask(
  BigInteger channelRefId, final IoRunnable ioTask, final long nodeId)
    {
  addChannelTask(
      channelRefId,
      new AbstractKernelRunnable("RunIoTask") {
    public void run() {
        runIoTask(ioTask, nodeId);
    } });
    }
View Full Code Here

Examples of com.sun.sgs.impl.util.AbstractKernelRunnable

        dataService, returnedListener);

    sessionService.addLoginResult(sessionImpl, true, null);
   
    sessionService.scheduleTaskOnCommit(
        new AbstractKernelRunnable("NotifyLoggedIn") {
      public void run() {
          logger.log(
              Level.FINE,
        "calling notifyLoggedIn on identity:{0}",
        identity);
View Full Code Here

Examples of com.sun.sgs.impl.util.AbstractKernelRunnable

       
        /*
         * Check service version.
         */
        transactionScheduler.runTask(
      new AbstractKernelRunnable("CheckServiceVersion") {
                public void run() {
                    checkServiceVersion(
                        NodeMapUtil.VERSION_KEY,
                        NodeMapUtil.MAJOR_VERSION,
                        NodeMapUtil.MINOR_VERSION);
View Full Code Here

Examples of com.sun.sgs.impl.util.AbstractKernelRunnable

                NodeMapUtil.getStatusKey(id, newNodeId, serviceName);
       
        final IdentityMO newidmo = new IdentityMO(id, newNodeId);
       
        try {
            runTransactionally(new AbstractKernelRunnable("MoveIdentity") {
                public void run() {                  
                    // First, we clean up any old mappings.
                    if (oldNode != null) {
                        try {
                            // Find the old IdentityMO, with the old node info.
View Full Code Here

Examples of com.sun.sgs.impl.util.AbstractKernelRunnable

        if (taskQueue == null) {
      taskQueue = newTaskQueue;
        }
    }
    taskQueue.addTask(
      new AbstractKernelRunnable("ServiceEventQueue") {
        public void run() {
      ChannelImpl.serviceEventQueue(channelRefId);
        } }, taskOwner);
           
      } finally {
View Full Code Here

Examples of com.sun.sgs.impl.util.AbstractKernelRunnable

     */
    final Set<BigInteger> newLocalMembers =
        Collections.synchronizedSet(new HashSet<BigInteger>());
    try {
        transactionScheduler.runTask(
      new AbstractKernelRunnable("getNewLocalMembers") {
          public void run() {
        newLocalMembers.addAll(
            ChannelImpl.getSessionRefIdsForNode(
          channelRefId, localNodeId));
          } }, taskOwner);
View Full Code Here

Examples of com.sun.sgs.impl.util.AbstractKernelRunnable

       * currently a member of.
       */
      if (channelSet != null) {
    for (final BigInteger channelRefId : channelSet) {
        transactionScheduler.scheduleTask(
      new AbstractKernelRunnable("RemoveSessionFromChannel") {
          public void run() {
        ChannelImpl.removeSessionFromChannel(
            localNodeId, sessionRefId, channelRefId);
          }
      }, taskOwner);
View Full Code Here

Examples of com.sun.sgs.impl.util.AbstractKernelRunnable

    /*
     * Schedule persistent tasks to perform recovery.
     */
    transactionScheduler.runTask(
        new AbstractKernelRunnable("ScheduleRecoveryTasks") {
      public void run() {
          /*
           * Reassign each failed coordinator to a new node.
           */
          taskService.scheduleTask(
View Full Code Here

Examples of com.sun.sgs.impl.util.AbstractKernelRunnable

    /*
     * Schedule persistent task to remove the failed sessions of
     * locally coordinated channels.
     */
    transactionScheduler.runTask(
        new AbstractKernelRunnable(
      "ScheduleRemoveFailedSessionsFromLocalChannelsTask")
        {
      public void run() {
          taskService.scheduleTask(
        new ChannelImpl.
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.