Class EventProducerFactory

java.lang.Object
org.yamcs.events.EventProducerFactory

public class EventProducerFactory extends Object
  • Constructor Details

    • EventProducerFactory

      public EventProducerFactory()
  • Method Details

    • setMockup

      public static void setMockup(boolean queue)
      Configure the factory to produce mockup objects, optionally queuing the events in a queue
      Parameters:
      queue - - if true then queue all messages in the mockupQueue queue.
    • getMockupQueue

      public static Queue<Db.Event> getMockupQueue()
    • getEventProducer

      public static EventProducer getEventProducer() throws RuntimeException
      Throws:
      RuntimeException
    • getEventProducer

      public static EventProducer getEventProducer(String instance)
      Parameters:
      instance - instance for which the producer is to be returned
      Returns:
      an EventProducer
    • getEventProducer

      public static EventProducer getEventProducer(String yamcsInstance, String source, long repeatedEventTimeoutMillisec)
      Parameters:
      yamcsInstance -
      source - source for the events
      repeatedEventTimeoutMillisec - suppress events that repeat in this interval
      Returns:
      an event producer for the given instance, source and with the repeated event reduction turned on.