Package org.opennms.netmgt.dao.mock
Class MockDistPollerDao
- java.lang.Object
-
- org.opennms.netmgt.dao.mock.AbstractMockDao<OnmsDistPoller,java.lang.String>
-
- org.opennms.netmgt.dao.mock.MockDistPollerDao
-
- All Implemented Interfaces:
DistPollerDao
,LegacyOnmsDao<OnmsDistPoller,java.lang.String>
,OnmsDao<OnmsDistPoller,java.lang.String>
,org.springframework.beans.factory.InitializingBean
public class MockDistPollerDao extends AbstractMockDao<OnmsDistPoller,java.lang.String> implements DistPollerDao
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.opennms.netmgt.dao.mock.AbstractMockDao
AbstractMockDao.NullEventForwarder
-
-
Field Summary
-
Fields inherited from interface org.opennms.netmgt.dao.api.DistPollerDao
DEFAULT_DIST_POLLER_ID
-
-
Constructor Summary
Constructors Constructor Description MockDistPollerDao()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
generateId(OnmsDistPoller dp)
protected java.lang.String
getId(OnmsDistPoller dp)
OnmsDistPoller
whoami()
This function returns theOnmsDistPoller
identity of the local system so that events and other objects can be associated with the local system.-
Methods inherited from class org.opennms.netmgt.dao.mock.AbstractMockDao
afterPropertiesSet, clear, countAll, countMatching, countMatching, delete, delete, findAll, findMatching, findMatching, flush, get, getAlarmAssociationDao, getAlarmDao, getAssetRecordDao, getCategoryDao, getDistPollerDao, getEventDao, getIpInterfaceDao, getMonitoredServiceDao, getMonitoringLocationDao, getNodeDao, getServiceRegistry, getServiceTypeDao, getSnmpInterfaceDao, initialize, load, lock, save, saveOrUpdate, update
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.opennms.netmgt.dao.api.OnmsDao
clear, countAll, countMatching, delete, delete, findAll, findMatching, flush, get, initialize, load, lock, save, saveOrUpdate, update
-
-
-
-
Method Detail
-
generateId
protected void generateId(OnmsDistPoller dp)
- Specified by:
generateId
in classAbstractMockDao<OnmsDistPoller,java.lang.String>
-
getId
protected java.lang.String getId(OnmsDistPoller dp)
- Specified by:
getId
in classAbstractMockDao<OnmsDistPoller,java.lang.String>
-
whoami
public OnmsDistPoller whoami()
Description copied from interface:DistPollerDao
This function returns theOnmsDistPoller
identity of the local system so that events and other objects can be associated with the local system.- Specified by:
whoami
in interfaceDistPollerDao
- Returns:
-
-