Package com.sun.sgs.impl.util

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


    /*
     * Schedule persistent task to remove the failed server's node
     * ID from locally coordinated channels.
     */
    transactionScheduler.runTask(
        new AbstractKernelRunnable(
      "ScheduleRemoveFailedNodeFromLocalChannelsTask")
        {
      public void run() {
          taskService.scheduleTask(
        new ChannelImpl.
View Full Code Here

        }
        try {
      if (channelInfo.members.isEmpty()) {
          try {
            runTransactionalTask(
                new AbstractKernelRunnable(
              "removeNodeIdFromChannel") {
            public void run() {
          ChannelImpl channel = (ChannelImpl)
              getObjectForId(channelRefId);
          if (channel != null) {
View Full Code Here

        "add task to service event queue, channelId:{0}",
        channelRefId);
      }

      coordinatorNotifications.addTask(
          new AbstractKernelRunnable("ServiceEventQueue") {
        public void run() {
      ChannelImpl.serviceEventQueue(channelRefId);
        } }, taskOwner);
  }
View Full Code Here

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

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

        {
            TransactionScheduler transactionScheduler =
                systemRegistry.getComponent(TransactionScheduler.class);

            transactionScheduler.runTask(
    new AbstractKernelRunnable("UseStartupContext") {
        public void run() {
                        DataManager data = AppContext.getDataManager();
                        System.out.println("Data manager is " + data);
        } },  txnProxy.getCurrentOwner());
        }
View Full Code Here

      }
      final long coord = coordNodeId;
      final ChannelServiceImpl channelService =
    ChannelServiceImpl.getInstance();
      channelService.getTaskService().scheduleNonDurableTask(
          new AbstractKernelRunnable("SendServiceEventQueue") {
      public void run() {
          channelService.runIoTask(
       new IoRunnable() {
        public void run() throws IOException {
            coordinator.serviceEventQueue(channelRefId);
View Full Code Here

     * @param  exception an exception that occurred while setting up the
     *    client session, or {@code null}
     */
    private void notifySetupFailureAndDisconnect(final Exception exception) {
  scheduleNonTransactionalTask(
      new AbstractKernelRunnable("NotifySetupFailureAndDisconnect") {
    public void run() {
        try {
                        setupFailure(exception);
                    } finally {
                        handleDisconnect(false, false);
View Full Code Here

    sessionService.checkContext().
        addCommitAction(sessionRefId,
            new LoginResultAction(true, null), true);

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

TOP

Related Classes of com.sun.sgs.impl.util.AbstractKernelRunnable

Copyright © 2018 www.massapicom. 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.