Package org.yamcs.events
Class EventProducerFactory
- java.lang.Object
-
- org.yamcs.events.EventProducerFactory
-
public class EventProducerFactory extends Object
-
-
Constructor Summary
Constructors Constructor Description EventProducerFactory()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static EventProducergetEventProducer()static EventProducergetEventProducer(String instance)static EventProducergetEventProducer(String yamcsInstance, String source, long repeatedEventTimeoutMillisec)static Queue<Db.Event>getMockupQueue()static voidsetMockup(boolean queue)Configure the factory to produce mockup objects, optionally queuing the events in a queue
-
-
-
Method Detail
-
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.
-
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 eventsrepeatedEventTimeoutMillisec- suppress events that repeat in this interval- Returns:
- an event producer for the given instance, source and with the repeated event reduction turned on.
-
-