Package org.marketcetera.eventbus.server
Class EventBusEsperConnector
- java.lang.Object
-
- org.marketcetera.eventbus.server.EventBusEsperConnector
-
public class EventBusEsperConnector extends Object
Connects the system Esper default space to the event bus.- Since:
- $Release$
- Version:
- $Id$
- Author:
- Colin DuPlantis
-
-
Field Summary
Fields Modifier and Type Field Description private com.codahale.metrics.MeteresperEventMetricrecords the rate at which events enter the Esper space from the event busprivate EsperEngineesperRuntimeprovides access to the Esper engineprivate EventBusServiceeventBusServiceprovides access to event bus servicesprivate MetricServicemetricsServiceprovides access to metrics service
-
Constructor Summary
Constructors Constructor Description EventBusEsperConnector()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private voidprocessEvent(EsperEvent inEvent)Process the given Esper event.voidreceiveEvents(EsperEvent inEvent)ReceiveEsperEventevents.voidreceiveEvents(HasEsperEvent inEvent)ReceiveHasEsperEventevents.voidstart()Validate and start the object.voidstop()Stops the object.
-
-
-
Field Detail
-
esperEventMetric
private com.codahale.metrics.Meter esperEventMetric
records the rate at which events enter the Esper space from the event bus
-
metricsService
@Autowired private MetricService metricsService
provides access to metrics service
-
eventBusService
@Autowired private EventBusService eventBusService
provides access to event bus services
-
esperRuntime
@Autowired private EsperEngine esperRuntime
provides access to the Esper engine
-
-
Method Detail
-
start
@PostConstruct public void start()
Validate and start the object.
-
stop
@PreDestroy public void stop()
Stops the object.
-
receiveEvents
public void receiveEvents(EsperEvent inEvent)
ReceiveEsperEventevents.- Parameters:
inEvent- anEsperEventvalue
-
receiveEvents
public void receiveEvents(HasEsperEvent inEvent)
ReceiveHasEsperEventevents.- Parameters:
inEvent- aHasEsperEventvalue
-
processEvent
private void processEvent(EsperEvent inEvent)
Process the given Esper event.- Parameters:
inEvent- anEsperEventvalue
-
-