Package com.sun.sgs.impl.util

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


      localNodeId = dataService.getLocalNodeId();
      watchdogService.addRecoveryListener(
    new ClientSessionServiceRecoveryListener());
     
      transactionScheduler.runTask(
    new AbstractKernelRunnable("CheckServiceVersion") {
        public void run() {
      checkServiceVersion(
          VERSION_KEY, MAJOR_VERSION, MINOR_VERSION);
        } },  taskOwner);
     
      /* Store the ClientSessionServer proxy in the data store. */
      transactionScheduler.runTask(
    new AbstractKernelRunnable("StoreClientSessionServiceProxy") {
        public void run() {
      // TBD: this could use a BindingKeyedMap.
      dataService.setServiceBinding(
          getClientSessionServerKey(localNodeId),
          new ManagedSerializable<ClientSessionServer>(
View Full Code Here


      }
      throw e;
  }
 
  transactionScheduler.runTask(
            new AbstractKernelRunnable("AddProtocolDescriptorMapping") {
    public void run() {
        getProtocolDescriptorsMap().
      put(localNodeId,
          Collections.singleton(
        protocolAcceptor.getDescriptor()));
View Full Code Here

        if (logger.isLoggable(Level.FINE)) {
            logger.log(Level.FINE, "Reporting change in health to " + health);
        }
        taskScheduler.scheduleTask(
            new AbstractKernelRunnable("ReportHealth") {
                public void run() {
                   watchdogService.reportHealth(health, CLASSNAME);
                }
            }, taskOwner);
    }
View Full Code Here

      if (taskQueue == null) {
    taskQueue = newTaskQueue;
      }
  }
  taskQueue.addTask(
      new AbstractKernelRunnable("ServiceEventQueue") {
    public void run() {
        if (getHandler(sessionRefId) != null) {
      ClientSessionImpl.serviceEventQueue(sessionId);
        }
    } }, taskOwner);
View Full Code Here

      msgTimestamps[i] = memberInfo.msgTimestamp;
      i++;
        }
    }
    taskScheduler.scheduleTask(
        new AbstractKernelRunnable("relocateMemberships") {
      public void run() {
          runIoTask(new IoRunnable() {
              public void run() throws IOException {
            getChannelServer(newNodeId).
          relocateChannelMemberships(
View Full Code Here

      handler.completed();
      return;
        }
         
        transactionScheduler.scheduleTask(
          new AbstractKernelRunnable("AddMoveEvent") {
      public void run() {
          ClientSessionImpl session =
        ClientSessionImpl.getSession(
            dataService, sessionHandler.sessionRefId);
          if (session != null) {
View Full Code Here

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

    // Modify ClientSession's state to indicate that it has been
    // relocated to the local node.
    try {
        transactionScheduler.runTask(
      new AbstractKernelRunnable(
          "RelocateSessionToLocalNode")
      {
          public void run() {
        ClientSessionImpl session =
            ClientSessionImpl.getSession(
View Full Code Here

    /*
     * Schedule persistent tasks to perform recovery.
     */
    transactionScheduler.runTask(
        new AbstractKernelRunnable("ScheduleRecoveryTasks") {
      public void run() {
          /*
           * For each session on the failed node, notify
           * the session's ClientSessionListener and
           * clean up the session's persistent data and
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.