org.opennms.netmgt.utils
Class TransactionAwareEventIpcManagerProxy

java.lang.Object
  extended by org.opennms.netmgt.utils.TransactionAwareEventIpcManagerProxy
All Implemented Interfaces:
EventIpcManager, EventProxy, EventSubscriptionService, org.springframework.beans.factory.InitializingBean

public class TransactionAwareEventIpcManagerProxy
extends Object
implements EventIpcManager, org.springframework.beans.factory.InitializingBean

Author:
Mathew Brozowski, DJ Gregor

Nested Class Summary
static class TransactionAwareEventIpcManagerProxy.PendingEventsHolder
           
static class TransactionAwareEventIpcManagerProxy.PendingEventsSynchronization
           
 
Constructor Summary
TransactionAwareEventIpcManagerProxy()
           
 
Method Summary
 void addEventListener(EventListener listener)
           
 void addEventListener(EventListener listener, Collection<String> ueis)
           
 void addEventListener(EventListener listener, String uei)
           
 void afterPropertiesSet()
           
 void releasePendingEventsList(List<Log> pendingEvents)
           
 void removeEventListener(EventListener listener)
           
 void removeEventListener(EventListener listener, Collection<String> ueis)
           
 void removeEventListener(EventListener listener, String uei)
           
 List<Log> requestPendingEventsList()
           
 void send(Event event)
           
 void send(Log eventLog)
           
 void sendNow(Event event)
          Called by a service to send an event to eventd
 void sendNow(Log eventLog)
          Called by a service to send a set of events to eventd
 void setEventIpcManager(EventIpcManager eventIpcManager)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TransactionAwareEventIpcManagerProxy

public TransactionAwareEventIpcManagerProxy()
Method Detail

setEventIpcManager

public void setEventIpcManager(EventIpcManager eventIpcManager)

afterPropertiesSet

public void afterPropertiesSet()
                        throws Exception
Specified by:
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
Throws:
Exception

addEventListener

public void addEventListener(EventListener listener,
                             Collection<String> ueis)
Specified by:
addEventListener in interface EventSubscriptionService

addEventListener

public void addEventListener(EventListener listener,
                             String uei)
Specified by:
addEventListener in interface EventSubscriptionService

addEventListener

public void addEventListener(EventListener listener)
Specified by:
addEventListener in interface EventSubscriptionService

removeEventListener

public void removeEventListener(EventListener listener,
                                Collection<String> ueis)
Specified by:
removeEventListener in interface EventSubscriptionService

removeEventListener

public void removeEventListener(EventListener listener,
                                String uei)
Specified by:
removeEventListener in interface EventSubscriptionService

removeEventListener

public void removeEventListener(EventListener listener)
Specified by:
removeEventListener in interface EventSubscriptionService

send

public void send(Event event)
          throws EventProxyException
Specified by:
send in interface EventProxy
Throws:
EventProxyException

send

public void send(Log eventLog)
          throws EventProxyException
Specified by:
send in interface EventProxy
Throws:
EventProxyException

sendNow

public void sendNow(Event event)
Description copied from interface: EventIpcManager
Called by a service to send an event to eventd

Specified by:
sendNow in interface EventIpcManager

sendNow

public void sendNow(Log eventLog)
Description copied from interface: EventIpcManager
Called by a service to send a set of events to eventd

Specified by:
sendNow in interface EventIpcManager

requestPendingEventsList

public List<Log> requestPendingEventsList()

releasePendingEventsList

public void releasePendingEventsList(List<Log> pendingEvents)


Copyright © 2009. All Rights Reserved.