org.opennms.netmgt.eventd
Class JdbcEventdServiceManager
java.lang.Object
org.opennms.netmgt.eventd.JdbcEventdServiceManager
- All Implemented Interfaces:
- EventdServiceManager, org.springframework.beans.factory.InitializingBean
public class JdbcEventdServiceManager
- extends Object
- implements org.springframework.beans.factory.InitializingBean, EventdServiceManager
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JdbcEventdServiceManager
public JdbcEventdServiceManager()
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
getDataSource
public DataSource getDataSource()
setDataSource
public void setDataSource(DataSource dataSource)
Copyright © 2009. All Rights Reserved.