org.opennms.netmgt.eventd
Class DaoEventdServiceManager

java.lang.Object
  extended by org.opennms.netmgt.eventd.DaoEventdServiceManager
All Implemented Interfaces:
EventdServiceManager, org.springframework.beans.factory.InitializingBean

@Transactional(readOnly=true)
public class DaoEventdServiceManager
extends Object
implements org.springframework.beans.factory.InitializingBean, EventdServiceManager


Constructor Summary
DaoEventdServiceManager()
           
 
Method Summary
 void afterPropertiesSet()
           
 void dataSourceSync()
          Synchronize the in-memory cache with the service table in the database.
 int getServiceId(String serviceName)
          Lookup the service ID for a specific service by name.
 ServiceTypeDao getServiceTypeDao()
           
 void setServiceTypeDao(ServiceTypeDao serviceTypeDao)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DaoEventdServiceManager

public DaoEventdServiceManager()
Method Detail

getServiceId

public int getServiceId(String serviceName)
                 throws org.springframework.dao.DataAccessException
Description copied from interface: EventdServiceManager
Lookup the service ID for a specific service by name.

Specified by:
getServiceId in interface EventdServiceManager
Returns:
service ID for the given service name or -1 if not found
Throws:
org.springframework.dao.DataAccessException - if there is an error accessing the database

dataSourceSync

public void dataSourceSync()
Description copied from interface: EventdServiceManager
Synchronize the in-memory cache with the service table in the database.

Specified by:
dataSourceSync in interface EventdServiceManager

afterPropertiesSet

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

getServiceTypeDao

public ServiceTypeDao getServiceTypeDao()

setServiceTypeDao

public void setServiceTypeDao(ServiceTypeDao serviceTypeDao)


Copyright © 2009. All Rights Reserved.