Package org.opennms.netmgt.dao
Class DatabasePopulator
- java.lang.Object
-
- org.opennms.netmgt.dao.DatabasePopulator
-
- Direct Known Subclasses:
BsmDatabasePopulator
public class DatabasePopulator extends Object
Populates a test database with some entities (nodes, interfaces, services). Example usage:private DatabasePopulator m_populator;
- Author:
- DJ Gregor
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
DatabasePopulator.DaoSupport<T extends OnmsDao<?,?>>
static interface
DatabasePopulator.Extension<T extends OnmsDao<?,?>>
-
Constructor Summary
Constructors Constructor Description DatabasePopulator()
-
Method Summary
-
-
-
Method Detail
-
addExtension
public void addExtension(DatabasePopulator.Extension extension)
-
populateInSeparateTransaction
public boolean populateInSeparateTransaction()
-
setPopulateInSeparateTransaction
public void setPopulateInSeparateTransaction(boolean pop)
-
setResetInSeperateTransaction
public void setResetInSeperateTransaction(boolean resetInSeperateTransaction)
-
populateDatabase
public void populateDatabase()
-
resetDatabase
public void resetDatabase()
-
getService
public OnmsServiceType getService(String serviceName)
-
buildEvent
public OnmsEvent buildEvent(OnmsDistPoller distPoller)
-
getAlarmDao
public AlarmDao getAlarmDao()
-
setAlarmDao
public void setAlarmDao(AlarmDao alarmDao)
-
getAlarmAssociationDao
public AlarmAssociationDao getAlarmAssociationDao()
-
setAlarmAssociationDao
public void setAlarmAssociationDao(AlarmAssociationDao dao)
-
getAssetRecordDao
public AssetRecordDao getAssetRecordDao()
-
setAssetRecordDao
public void setAssetRecordDao(AssetRecordDao assetRecordDao)
-
getCategoryDao
public CategoryDao getCategoryDao()
-
setCategoryDao
public void setCategoryDao(CategoryDao categoryDao)
-
getDistPollerDao
public DistPollerDao getDistPollerDao()
-
setDistPollerDao
public void setDistPollerDao(DistPollerDao distPollerDao)
-
getEventDao
public EventDao getEventDao()
-
setEventDao
public void setEventDao(EventDao eventDao)
-
getIpInterfaceDao
public IpInterfaceDao getIpInterfaceDao()
-
setIpInterfaceDao
public void setIpInterfaceDao(IpInterfaceDao ipInterfaceDao)
-
getMonitoredServiceDao
public MonitoredServiceDao getMonitoredServiceDao()
-
setMonitoredServiceDao
public void setMonitoredServiceDao(MonitoredServiceDao monitoredServiceDao)
-
getNodeDao
public NodeDao getNodeDao()
-
setNodeDao
public void setNodeDao(NodeDao nodeDao)
-
getNotificationDao
public NotificationDao getNotificationDao()
-
setNotificationDao
public void setNotificationDao(NotificationDao notificationDao)
-
getOutageDao
public OutageDao getOutageDao()
-
setOutageDao
public void setOutageDao(OutageDao outageDao)
-
getServiceTypeDao
public ServiceTypeDao getServiceTypeDao()
-
setServiceTypeDao
public void setServiceTypeDao(ServiceTypeDao serviceTypeDao)
-
getSnmpInterfaceDao
public SnmpInterfaceDao getSnmpInterfaceDao()
-
setSnmpInterfaceDao
public void setSnmpInterfaceDao(SnmpInterfaceDao snmpInterfaceDao)
-
getUserNotificationDao
public UserNotificationDao getUserNotificationDao()
-
setUserNotificationDao
public void setUserNotificationDao(UserNotificationDao userNotificationDao)
-
getNode1
public OnmsNode getNode1()
-
getNode2
public OnmsNode getNode2()
-
getNode3
public OnmsNode getNode3()
-
getNode4
public OnmsNode getNode4()
-
getNode5
public OnmsNode getNode5()
-
getNode6
public OnmsNode getNode6()
-
getLocRDU
public OnmsMonitoringLocation getLocRDU()
-
getLocFD
public OnmsMonitoringLocation getLocFD()
-
getMonitoringLocationDao
public MonitoringLocationDao getMonitoringLocationDao()
-
setMonitoringLocationDao
public void setMonitoringLocationDao(MonitoringLocationDao monitoringLocationDao)
-
getApplicationDao
public ApplicationDao getApplicationDao()
-
setApplicationDao
public void setApplicationDao(ApplicationDao applicationDao)
-
getAcknowledgmentDao
public AcknowledgmentDao getAcknowledgmentDao()
-
setAcknowledgmentDao
public void setAcknowledgmentDao(AcknowledgmentDao acknowledgmentDao)
-
getTransactionTemplate
public org.springframework.transaction.support.TransactionOperations getTransactionTemplate()
-
setTransactionTemplate
public void setTransactionTemplate(org.springframework.transaction.support.TransactionOperations transactionOperation)
-
-