Class EventIpcBroadcastProcessor
- java.lang.Object
-
- org.opennms.netmgt.eventd.processor.EventIpcBroadcastProcessor
-
- All Implemented Interfaces:
EventProcessor,org.springframework.beans.factory.InitializingBean
public class EventIpcBroadcastProcessor extends Object implements EventProcessor, org.springframework.beans.factory.InitializingBean
EventProcessor that broadcasts events to other interested daemons with EventIpcBroadcaster.broadcastNow(Event).- Version:
- $Id: $
- Author:
- ranger
-
-
Constructor Summary
Constructors Constructor Description EventIpcBroadcastProcessor(com.codahale.metrics.MetricRegistry registry)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidafterPropertiesSet()afterPropertiesSetEventIpcBroadcastergetEventIpcBroadcaster()getEventIpcBroadcastervoidprocess(Log eventLog)If synchronous mode is not specified, the event is broadcasted asynchronously by default.voidprocess(Log eventLog, boolean synchronous)voidsetEventIpcBroadcaster(EventIpcBroadcaster eventIpcManager)setEventIpcBroadcaster
-
-
-
Method Detail
-
afterPropertiesSet
public void afterPropertiesSet() throws IllegalStateExceptionafterPropertiesSet
- Specified by:
afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean- Throws:
IllegalStateException- if any.
-
process
public void process(Log eventLog) throws EventProcessorException
If synchronous mode is not specified, the event is broadcasted asynchronously by default.- Specified by:
processin interfaceEventProcessor- Throws:
EventProcessorException
-
process
public void process(Log eventLog, boolean synchronous) throws EventProcessorException
- Specified by:
processin interfaceEventProcessor- Throws:
EventProcessorException
-
getEventIpcBroadcaster
public EventIpcBroadcaster getEventIpcBroadcaster()
getEventIpcBroadcaster
- Returns:
- a
EventIpcBroadcasterobject.
-
setEventIpcBroadcaster
public void setEventIpcBroadcaster(EventIpcBroadcaster eventIpcManager)
setEventIpcBroadcaster
- Parameters:
eventIpcManager- aEventIpcBroadcasterobject.
-
-