Package backtype.storm.utils

Examples of backtype.storm.utils.DisruptorQueue.publish()


   
    for (Entry<String, DisruptorQueue> entry: queues.entrySet()) {
      String name = entry.getKey();
      DisruptorQueue queue = entry.getValue();
      Tick tick = new Tick(name);
      queue.publish(tick);
      LOG.debug("Issue time tick " + name);
    }
   
  }
View Full Code Here


    int taskid = tuple.getTargetTaskId();

    DisruptorQueue exeQueue = innerTaskTransfer.get(taskid);
    if (exeQueue != null) {
      exeQueue.publish(tuple);
    } else {
      serializeQueue.publish(tuple);
    }

  }
View Full Code Here

      LOG.warn("Received invalid message directed at port " + task
          + ". Dropping...");
      return;
    }

    queue.publish(message.message());

  }

}
View Full Code Here

        .println("!!!!!!!!!!!!!!!!Begin testMessageDisorder!!!!!!!!!!");
    // Set queue length to bigger enough
    DisruptorQueue queue = createQueue("messageOrder", ProducerType.MULTI,
        128);

    queue.publish("1");

    Runnable producer = new Producer(queue);

    final Object[] result = new Object[1];
    Runnable consumer = new Consumer(queue, new EventHandler<Object>() {
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.