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 void
afterPropertiesSet()
afterPropertiesSetEventIpcBroadcaster
getEventIpcBroadcaster()
getEventIpcBroadcastervoid
process(Log eventLog)
If synchronous mode is not specified, the event is broadcasted asynchronously by default.void
process(Log eventLog, boolean synchronous)
void
setEventIpcBroadcaster(EventIpcBroadcaster eventIpcManager)
setEventIpcBroadcaster
-
-
-
Method Detail
-
afterPropertiesSet
public void afterPropertiesSet() throws IllegalStateException
afterPropertiesSet
- Specified by:
afterPropertiesSet
in 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:
process
in interfaceEventProcessor
- Throws:
EventProcessorException
-
process
public void process(Log eventLog, boolean synchronous) throws EventProcessorException
- Specified by:
process
in interfaceEventProcessor
- Throws:
EventProcessorException
-
getEventIpcBroadcaster
public EventIpcBroadcaster getEventIpcBroadcaster()
getEventIpcBroadcaster
- Returns:
- a
EventIpcBroadcaster
object.
-
setEventIpcBroadcaster
public void setEventIpcBroadcaster(EventIpcBroadcaster eventIpcManager)
setEventIpcBroadcaster
- Parameters:
eventIpcManager
- aEventIpcBroadcaster
object.
-
-