org.opennms.netmgt.dao
Class TransactionAwareEventForwarder

java.lang.Object
  extended by 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.

Version:
$Id: $
Author:
Mathew Brozowski, DJ Gregor, Mathew Brozowski, DJ Gregor

Nested Class Summary
static class TransactionAwareEventForwarder.PendingEventsHolder
           
static class TransactionAwareEventForwarder.PendingEventsSynchronization
           
 
Constructor Summary
TransactionAwareEventForwarder()
          Constructor for TransactionAwareEventForwarder.
TransactionAwareEventForwarder(EventForwarder forwarder)
          Constructor for TransactionAwareEventForwarder.
 
Method Summary
 void afterPropertiesSet()
          afterPropertiesSet
 void releasePendingEventsList(List<Log> pendingEvents)
          releasePendingEventsList
 List<Log> requestPendingEventsList()
          requestPendingEventsList
 void sendNow(Event event)
          Called by a service to send an event to eventd
 void sendNow(Log eventLog)
          sendNow
 void setEventForwarder(EventForwarder eventForwarder)
          setEventForwarder
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TransactionAwareEventForwarder

public TransactionAwareEventForwarder()

Constructor for TransactionAwareEventForwarder.


TransactionAwareEventForwarder

public TransactionAwareEventForwarder(EventForwarder forwarder)
                               throws Exception

Constructor for TransactionAwareEventForwarder.

Parameters:
forwarder - a EventForwarder object.
Throws:
Exception - if any.
Method Detail

setEventForwarder

public void setEventForwarder(EventForwarder eventForwarder)

setEventForwarder

Parameters:
eventForwarder - a EventForwarder object.

afterPropertiesSet

public void afterPropertiesSet()
                        throws Exception

afterPropertiesSet

Specified by:
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
Throws:
Exception - if any.

sendNow

public void sendNow(Event event)
Called by a service to send an event to eventd

Specified by:
sendNow in interface EventForwarder
Parameters:
event - a Event object.

sendNow

public void sendNow(Log eventLog)

sendNow

Specified by:
sendNow in interface EventForwarder
Parameters:
eventLog - a Log object.

requestPendingEventsList

public List<Log> requestPendingEventsList()

requestPendingEventsList

Returns:
a List object.

releasePendingEventsList

public void releasePendingEventsList(List<Log> pendingEvents)

releasePendingEventsList

Parameters:
pendingEvents - a List object.


Copyright © 2011. All Rights Reserved.