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);

View Full Code Here

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

    private void notifyNodeListeners(final Node node) {

  for (NodeListener listener : nodeListeners.keySet()) {
      final NodeListener nodeListener = listener;
      taskScheduler.scheduleTask(
    new AbstractKernelRunnable("NotifyNodeListeners") {
        public void run() {
      if (!shuttingDown() &&
                            isLocalNodeAliveNonTransactional())
      {
                            nodeListener.nodeHealthUpdate(node);
View Full Code Here

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

      final RecoveryListener recoveryListener = listener;
      final SimpleCompletionHandler handler =
    new RecoveryCompletionHandler(node, listener);
      handlers.add(handler);
      taskScheduler.scheduleTask(
    new AbstractKernelRunnable("NotifyRecoveryListeners") {
        public void run() {
      try {
          if (!shuttingDown() &&
        isLocalNodeAliveNonTransactional())
          {
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

      contextFactory = new ContextFactory(contextMap);
      synchronized (stateLock) {
    state = State.RUNNING;
      }
      systemRegistry.getComponent(TransactionScheduler.class).runTask(
        new AbstractKernelRunnable("BindDataServiceHeader") {
      public void run() {
          DataServiceHeader header;
          try {
        header = (DataServiceHeader)
            getServiceBinding(CLASSNAME + ".header");
View Full Code Here

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);

View Full Code Here

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

    // Forward unreliable message directly to client session's
    // server node.
    final ClientSessionServer server =
        sessionService.getClientSessionServer(nodeId);
    sessionService.taskService.scheduleNonDurableTask(
        new AbstractKernelRunnable("SendUnreliableMessage") {
            public void run() {
          try {
        server.send(idBytes, msgBytes, (byte)
              delivery.ordinal());
          } catch (IOException e) {
View Full Code Here

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

      Level.WARNING, e,
      "invoking disconnected callback on listener:{0} " +
      "for session:{1} throws",
      listener, this);
        sessionService.scheduleTask(
      new AbstractKernelRunnable(
          "NotifyListenerAndRemoveSession")
      {
          public void run() {
        ClientSessionImpl sessionImpl =
            ClientSessionImpl.getSession(
View Full Code Here

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

         * error here.
         */
        return;
    }
    sessionService.getTaskScheduler().scheduleTask(
        new AbstractKernelRunnable("ServiceEventQueue") {
      public void run() {
          sessionService.runIoTask(
        new IoRunnable() {
            public void run() throws IOException {
              sessionServer.serviceEventQueue(idBytes);
View Full Code Here

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

    protected final void scheduleRead() {
  if (logger.isLoggable(Level.FINEST)) {
      logger.log(Level.FINEST, "scheduling read, protocol:{0}", this);
  }
  acceptor.scheduleNonTransactionalTask(
      new AbstractKernelRunnable("ResumeReadOnReadHandler") {
    public void run() {
        logger.log(
      Level.FINER, "resuming reads protocol:{0}", this);
        readNow();
    } });
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.