Package com.sun.sgs.impl.util

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


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

  this.identity = identity;
  loginCompletionFuture =
      new LoginCompletionFuture(this, completionHandler);
 
  scheduleNonTransactionalTask(
      new AbstractKernelRunnable("HandleLoginRequest") {
    public void run() {
        handleLoginRequest();
    } });

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

      future.done();
      completionHandler.completed(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

      completionHandler.completed(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

  // TBD: Due to the scheduler's behavior, this notification
  // may happen out of order with respect to the
  // 'notifyLoggedIn' callback.  Also, this notification may
  // also happen even though 'notifyLoggedIn' was not invoked.
  // Are these behaviors okay?  -- ann (3/19/07)
  scheduleTask(new AbstractKernelRunnable("NotifyLoggedOut") {
    public void run() {
        identity.notifyLoggedOut();
    } });
  if (sessionService.removeUserLogin(identity, this)) {
      deactivateIdentity();
  }

  if (getCurrentState() != State.DISCONNECTED) {
      if (graceful) {
    assert !closeConnection;
      }

      if (closeConnection) {
    closeConnection();
      }
  }

  if (sessionRefId != null) {
      scheduleTask(
        new AbstractKernelRunnable("NotifyListenerAndRemoveSession") {
          public void run() {
        ClientSessionImpl sessionImpl =
      ClientSessionImpl.getSession(dataService, sessionRefId);
        sessionImpl.notifyListenerAndRemoveSession(
      dataService, graceful, true);
View Full Code Here

            if (state != State.DISCONNECTED) {
                state = State.DISCONNECTING;
      }
        }
  scheduleNonTransactionalTask(
    new AbstractKernelRunnable("HandleDisconnect") {
      public void run() {
    handleDisconnect(graceful, closeConnection);
      } });
    }
View Full Code Here

    private void enqueueCompletionNotification(
  final RequestCompletionHandler<Void> completionHandler,
  final CompletionFutureImpl future)
{
  taskQueue.addTask(
      new AbstractKernelRunnable("ScheduleCompletionNotification") {
    public void run() {
        future.done();
        completionHandler.completed(future);
    } }, identity);
    }
View Full Code Here

        "from nodeId:{1} to node:{2}",
        identity, sessionService.getLocalNodeId(), node);
      }
     
      scheduleNonTransactionalTask(
          new AbstractKernelRunnable("SendLoginRedirectMessage") {
        public void run() {
      try {
                            try {
                                loginRedirect(node);
                            } catch (Exception ex) {
View Full Code Here

     */
    private void sendLoginFailureAndDisconnect(
   final LoginFailureException exception)
    {
  scheduleNonTransactionalTask(
      new AbstractKernelRunnable("SendLoginFailureMessage") {
    public void run() {
        try {
                        loginFailure(exception);
                    } finally {
                        handleDisconnect(false, false);
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.