Package org.opennms.netmgt.dao
Class TransactionAwareEventForwarder
- java.lang.Object
-
- org.opennms.netmgt.dao.TransactionAwareEventForwarder
-
- All Implemented Interfaces:
EventForwarder,org.springframework.beans.factory.InitializingBean
public class TransactionAwareEventForwarder extends Object implements EventForwarder, org.springframework.beans.factory.InitializingBean
TransactionAwareEventForwarder class.
- Author:
- Mathew Brozowski, DJ Gregor
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTransactionAwareEventForwarder.PendingEventsHolderstatic classTransactionAwareEventForwarder.PendingEventsSynchronization
-
Constructor Summary
Constructors Constructor Description TransactionAwareEventForwarder()TransactionAwareEventForwarder(EventForwarder forwarder)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidafterPropertiesSet()voidreleasePendingEventsList(List<Log> pendingEvents)List<Log>requestPendingEventsList()voidsendNow(Event event)Asynchronously sends an event to eventd.voidsendNow(Log eventLog)Asynchronously sends a set of events to eventd.voidsendNowSync(Event event)Synchronously sends an event to eventd.voidsendNowSync(Log eventLog)Synchronously sends a set of events to eventd.voidsetEventForwarder(EventForwarder eventForwarder)
-
-
-
Constructor Detail
-
TransactionAwareEventForwarder
public TransactionAwareEventForwarder()
-
TransactionAwareEventForwarder
public TransactionAwareEventForwarder(EventForwarder forwarder) throws Exception
- Throws:
Exception
-
-
Method Detail
-
setEventForwarder
public void setEventForwarder(EventForwarder eventForwarder)
-
afterPropertiesSet
public void afterPropertiesSet() throws Exception- Specified by:
afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean- Throws:
Exception
-
sendNow
public void sendNow(Event event)
Asynchronously sends an event to eventd.- Specified by:
sendNowin interfaceEventForwarder- Parameters:
event- aEventobject.
-
sendNow
public void sendNow(Log eventLog)
Description copied from interface:EventForwarderAsynchronously sends a set of events to eventd.- Specified by:
sendNowin interfaceEventForwarder- Parameters:
eventLog- aLogobject.
-
sendNowSync
public void sendNowSync(Event event)
Description copied from interface:EventForwarderSynchronously sends an event to eventd.- Specified by:
sendNowSyncin interfaceEventForwarder- Parameters:
event- aEventobject.
-
sendNowSync
public void sendNowSync(Log eventLog)
Description copied from interface:EventForwarderSynchronously sends a set of events to eventd.- Specified by:
sendNowSyncin interfaceEventForwarder- Parameters:
eventLog- aLogobject.
-
-