Package org.opennms.netmgt.ticketd
Class TroubleTicketer
- java.lang.Object
-
- org.opennms.netmgt.ticketd.TroubleTicketer
-
- All Implemented Interfaces:
SpringServiceDaemon
,EventListener
,org.springframework.beans.factory.DisposableBean
,org.springframework.beans.factory.InitializingBean
public class TroubleTicketer extends java.lang.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
Constructors Constructor Description TroubleTicketer()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
afterPropertiesSet()
SpringFramework method from implementation of the Spring Interfaceorg.springframework.beans.factory.InitializingBean
void
destroy()
destroystatic java.lang.String
getLoggingCategory()
java.lang.String
getName()
EventListener Interface required implementationvoid
onEvent(IEvent e)
Process a sent event.void
setEventIpcManager(EventIpcManager eventIpcManager)
setEventIpcManagervoid
setTicketerServiceLayer(TicketerServiceLayer ticketerServiceLayer)
setTicketerServiceLayervoid
start()
start
-
-
-
Method Detail
-
setEventIpcManager
public void setEventIpcManager(EventIpcManager eventIpcManager)
setEventIpcManager
- Parameters:
eventIpcManager
- aEventIpcManager
object.
-
setTicketerServiceLayer
public void setTicketerServiceLayer(TicketerServiceLayer ticketerServiceLayer)
setTicketerServiceLayer
- Parameters:
ticketerServiceLayer
- aTicketerServiceLayer
object.
-
afterPropertiesSet
public void afterPropertiesSet() throws java.lang.Exception
SpringFramework method from implementation of the Spring Interfaceorg.springframework.beans.factory.InitializingBean
- Specified by:
afterPropertiesSet
in interfaceorg.springframework.beans.factory.InitializingBean
- Throws:
java.lang.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 java.lang.Exception
start
- Specified by:
start
in interfaceSpringServiceDaemon
- Throws:
java.lang.Exception
- if any.
-
destroy
public void destroy() throws java.lang.Exception
destroy
- Specified by:
destroy
in interfaceorg.springframework.beans.factory.DisposableBean
- Throws:
java.lang.Exception
- if any.
-
getName
public java.lang.String getName()
EventListener Interface required implementation- Specified by:
getName
in interfaceEventListener
- Returns:
java.lang.String
representing the name of this service daemon
-
onEvent
public void onEvent(IEvent e)
Process a sent event. Event listener Interface required implementation- Specified by:
onEvent
in interfaceEventListener
- Parameters:
e
- aIEvent
object.
-
getLoggingCategory
public static java.lang.String getLoggingCategory()
-
-