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 java.lang.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 class
TransactionAwareEventForwarder.PendingEventsHolder
static class
TransactionAwareEventForwarder.PendingEventsSynchronization
-
Constructor Summary
Constructors Constructor Description TransactionAwareEventForwarder()
TransactionAwareEventForwarder(EventForwarder forwarder)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
afterPropertiesSet()
void
releasePendingEventsList(java.util.List<Log> pendingEvents)
java.util.List<Log>
requestPendingEventsList()
void
sendNow(Event event)
Asynchronously sends an event to eventd.void
sendNow(Log eventLog)
Asynchronously sends a set of events to eventd.void
sendNowSync(Event event)
Synchronously sends an event to eventd.void
sendNowSync(Log eventLog)
Synchronously sends a set of events to eventd.void
setEventForwarder(EventForwarder eventForwarder)
-
-
-
Constructor Detail
-
TransactionAwareEventForwarder
public TransactionAwareEventForwarder()
-
TransactionAwareEventForwarder
public TransactionAwareEventForwarder(EventForwarder forwarder) throws java.lang.Exception
- Throws:
java.lang.Exception
-
-
Method Detail
-
setEventForwarder
public void setEventForwarder(EventForwarder eventForwarder)
-
afterPropertiesSet
public void afterPropertiesSet() throws java.lang.Exception
- Specified by:
afterPropertiesSet
in interfaceorg.springframework.beans.factory.InitializingBean
- Throws:
java.lang.Exception
-
sendNow
public void sendNow(Event event)
Asynchronously sends an event to eventd.- Specified by:
sendNow
in interfaceEventForwarder
- Parameters:
event
- aEvent
object.
-
sendNow
public void sendNow(Log eventLog)
Description copied from interface:EventForwarder
Asynchronously sends a set of events to eventd.- Specified by:
sendNow
in interfaceEventForwarder
- Parameters:
eventLog
- aLog
object.
-
sendNowSync
public void sendNowSync(Event event)
Description copied from interface:EventForwarder
Synchronously sends an event to eventd.- Specified by:
sendNowSync
in interfaceEventForwarder
- Parameters:
event
- aEvent
object.
-
sendNowSync
public void sendNowSync(Log eventLog)
Description copied from interface:EventForwarder
Synchronously sends a set of events to eventd.- Specified by:
sendNowSync
in interfaceEventForwarder
- Parameters:
eventLog
- aLog
object.
-
requestPendingEventsList
public java.util.List<Log> requestPendingEventsList()
-
releasePendingEventsList
public void releasePendingEventsList(java.util.List<Log> pendingEvents)
-
-