public class EventProducerFactory extends Object
| Constructor and Description |
|---|
EventProducerFactory() |
| Modifier and Type | Method and Description |
|---|---|
static EventProducer |
getEventProducer()
Creates an event producer based on the event-producer.yaml properties loaded from the classpath.
|
static EventProducer |
getEventProducer(String instance)
The instance passed as parameter will overwrite the instance in the config file if any.
|
static Queue<Yamcs.Event> |
getMockupQueue() |
static void |
setMockup(boolean queue)
Configure the factory to produce mockup objects, optionally queuing the events in a queue
|
public static void setMockup(boolean queue)
queue - - if true then queue all messages in the mockupQueue queue.public static Queue<Yamcs.Event> getMockupQueue()
public static EventProducer getEventProducer() throws RuntimeException
RuntimeException - in case the config files is found but contains errorspublic static EventProducer getEventProducer(String instance) throws RuntimeException
instance - - instance for which the producer is to be returnedRuntimeExceptionCopyright © 2019 Space Applications Services. All rights reserved.