Package org.yamcs.events
Class EventProducerFactory
java.lang.Object
org.yamcs.events.EventProducerFactory
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic EventProducer
static EventProducer
getEventProducer
(String instance) static EventProducer
getEventProducer
(String yamcsInstance, String source, long repeatedEventTimeoutMillisec) static void
setMockup
(boolean queue) Configure the factory to produce mockup objects, optionally queuing the events in a queue
-
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
-
getEventProducer
- Throws:
RuntimeException
-
getEventProducer
- 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.
-