org.opennms.netmgt.ticketd
Class TroubleTicketer

java.lang.Object
  extended by org.opennms.netmgt.ticketd.TroubleTicketer
All Implemented Interfaces:
SpringServiceDaemon, EventListener, org.springframework.beans.factory.InitializingBean

public class TroubleTicketer
extends Object
implements SpringServiceDaemon, EventListener

Manages Events trouble ticket related events and passes them to the service layer implementation.

Author:
Mathew Brozowski, David Hustace

Constructor Summary
TroubleTicketer()
           
 
Method Summary
 void afterPropertiesSet()
          SpringFramework method from implementation of the Spring Interface org.springframework.beans.factory.InitializingBean
 String getName()
          EventListener Interface required implementation
 void onEvent(Event e)
          Eventlistner Interface required implementation
 void setEventIpcManager(EventIpcManager eventIpcManager)
           
 void setTicketerServiceLayer(TicketerServiceLayer ticketerServiceLayer)
           
 void start()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TroubleTicketer

public TroubleTicketer()
Method Detail

setEventIpcManager

public void setEventIpcManager(EventIpcManager eventIpcManager)
Parameters:
eventIpcManager -

setTicketerServiceLayer

public void setTicketerServiceLayer(TicketerServiceLayer ticketerServiceLayer)
Parameters:
ticketerServiceLayer -

afterPropertiesSet

public void afterPropertiesSet()
                        throws Exception
SpringFramework method from implementation of the Spring Interface org.springframework.beans.factory.InitializingBean

Specified by:
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
Throws:
Exception - An exception is thrown when detecting an invalid state such as data not properly initialized or this method called more then once.

start

public void start()
           throws Exception
Specified by:
start in interface SpringServiceDaemon
Throws:
Exception

getName

public String getName()
EventListener Interface required implementation

Specified by:
getName in interface EventListener
Returns:
java.lang.String representing the name of this service daemon

onEvent

public void onEvent(Event e)
Eventlistner Interface required implementation

Specified by:
onEvent in interface EventListener
Parameters:
e - Event received from Eventd


Copyright © 2009. All Rights Reserved.