Package com.sun.sgs.impl.util

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


   */
  protected void completed() {
     
      try {
        channelService.runTransactionalTask(
    new AbstractKernelRunnable("MarkChannelEventCompleted") {
        public void run() {
      ChannelEvent event = (ChannelEvent)
          getObjectForId(eventRefId);
      if (event != null) {
          event.completed();
View Full Code Here


   */
  protected void removeNodeIdFromChannel(final long nodeId) {
     
      try {
    channelService.runTransactionalTask(
       new AbstractKernelRunnable("removeNodeIdFromChannel") {
        public void run() {
      ChannelImpl channel = getChannel();
      if (channel != null) {
          channel.removeServerNodeId(nodeId);
      }
View Full Code Here

       * Remove channel's persistent data and, optionally, the
       * channel's name binding.
       */
      try {
    channelService.runTransactionalTask(
      new AbstractKernelRunnable("RemoveClosedChannel") {
        public void run() {
      ChannelImpl channel = (ChannelImpl)
          getObjectForId(channelRefId);
      if (channel != null) {
          channel.removeChannel(removeName);
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

    logger.log(
        Level.FINE, "Scheduling clean up of session:{0} that " +
        "failed to relocate to local node:{1}",
        info.identity, localNodeId);
    transactionScheduler.scheduleTask(
         new AbstractKernelRunnable("RemoveNonrelocatedSession") {
      public void run() {
          ClientSessionImpl sessionImpl =
        ClientSessionImpl.getSession(
            dataService, info.sessionRefId);
          if (sessionImpl != null) {
View Full Code Here

    return;
      }
      isPreparing = true;
      for (final PrepareCompletionHandler handler : preparers) {
    taskScheduler.scheduleTask(
      new AbstractKernelRunnable("PrepareToRelocateSession") {
        public void run() {
      try {
          handler.listener.prepareToRelocate(
        sessionRefId, newNodeId, handler);
      } catch (Exception e) {
View Full Code Here

  setupCompletionFuture =
      new SetupCompletionFuture(this, completionHandler);

  final boolean loggingIn = sessionRefId == null;
  scheduleNonTransactionalTask(
      new AbstractKernelRunnable("HandleLoginOrRelocateRequest") {
    public void run() {
        setupClientSession(loggingIn);
    } });

  if (logger.isLoggable(Level.FINEST)) {
View Full Code Here

      new RequestCompletionFuture(completionHandler);
  if (!readyForRequests(future)) {
      return;
  }
  taskQueue.addTask(
      new AbstractKernelRunnable("NotifyListenerMessageReceived") {
    public void run() {
        ClientSessionImpl sessionImpl =
      ClientSessionImpl.getSession(dataService, sessionRefId);
        if (sessionImpl != null) {
      if (isConnected()) {
View Full Code Here

      new RequestCompletionFuture(completionHandler);
  if (!readyForRequests(future)) {
      return;
  }
  taskQueue.addTask(
      new AbstractKernelRunnable("HandleChannelMessage") {
    public void run() {
        ClientSessionImpl sessionImpl =
      ClientSessionImpl.getSession(dataService, sessionRefId);
        if (sessionImpl != null) {
      if (isConnected()) {
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.