Examples of IoRunnable


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

      final BigInteger channelRefId = eventQueue.getChannelRefId();
      channelService.getTaskService().scheduleNonDurableTask(
          new AbstractKernelRunnable("SendServiceEventQueue") {
      public void run() {
          channelService.runIoTask(
       new IoRunnable() {
        public void run() throws IOException {
            coordinator.serviceEventQueue(channelRefId);
        } }, coord);
      }
    }, false);
View Full Code Here

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

   * the failed server.
   */
  if (server != null) {
      ChannelServiceImpl.getChannelService().addChannelTask(
    channelRefId,
    new IoRunnable() {
        public void run() throws IOException {
      server.leave(channelRefId, sessionRefId);
        } },
    nodeId);
  }
View Full Code Here

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

      HexDumper.toHexString(channelRefId.toByteArray()));
    }
    for (final long nodeId : channel.servers) {
        channelService.addChannelTask(
          channelRefId,
      new IoRunnable() {
          public void run() throws IOException {
        ChannelServer server = getChannelServer(nodeId);
        if (server != null) {
            server.refresh(channelName, channelRefId,
               channelDelivery);
View Full Code Here

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

      final String channelName = channel.name;
      final BigInteger channelRefId = channel.channelRefId;
      final Delivery channelDelivery = channel.delivery;
      ChannelServiceImpl.getChannelService().addChannelTask(
    channelRefId,
    new IoRunnable() {
        public void run() throws IOException {
      server.join(channelName, channelRefId,
            channelDelivery, sessionRefId);
        } },
    nodeId);
View Full Code Here

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

    ChannelServiceImpl.getChannelService();
      final BigInteger channelRefId = channel.channelRefId;
      for (final long nodeId : serverNodeIds) {
    channelService.addChannelTask(
        channelRefId,               
        new IoRunnable() {
      public void run() throws IOException {
          ChannelServer server = getChannelServer(nodeId);
          if (server != null) {
        server.leaveAll(channelRefId);
          }
View Full Code Here

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

      final BigInteger channelRefId = channel.channelRefId;
      final byte deliveryOrdinal = (byte) channel.delivery.ordinal();
      for (final long nodeId : channel.servers) {
    channelService.addChannelTask(
        channelRefId,
        new IoRunnable() {
      public void run() throws IOException {
          ChannelServer server = getChannelServer(nodeId);
          if (server != null) {
        server.send(channelRefId, message,
              deliveryOrdinal);
View Full Code Here

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

      final ChannelServiceImpl channelService =
    ChannelServiceImpl.getChannelService();
      for (final long nodeId : serverNodeIds) {
    channelService.addChannelTask(
        channelRefId,
        new IoRunnable() {
      public void run() throws IOException {
          ChannelServer server = getChannelServer(nodeId);
          if (server != null) {
        server.close(channelRefId);
          }
View Full Code Here

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

      }
      sessionService.scheduleNonTransactionalTask(
          new AbstractKernelRunnable("ServiceEventQueue") {
        public void run() {
      sessionService.runIoTask(
          new IoRunnable() {
        public void run() throws IOException {
            sessionServer.serviceEventQueue(idBytes);
        } },
          nodeId);
        }
View Full Code Here

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

    }
    sessionService.getTaskScheduler().scheduleTask(
        new AbstractKernelRunnable("ServiceEventQueue") {
      public void run() {
          sessionService.runIoTask(
        new IoRunnable() {
            public void run() throws IOException {
              sessionServer.serviceEventQueue(idBytes);
            } },
        nodeId);
      }
View Full Code Here

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

    /*
     * Send "send" notification to channel's servers.
     */
    for (final long nodeId : serverNodeIds) {
        boolean success = channelService.runIoTask(
          new IoRunnable() {
      public void run() throws IOException {
          ChannelServer server = getChannelServer(nodeId);
          if (server != null) {
        server.send(channelRefId, message, timestamp);
          }
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.