@Override public PrefabGraph[] getAllPrefabGraphs(ResourceId resourceId) { OnmsResource resource = m_resourceDao.getResourceById(resourceId); return m_graphDao.getPrefabGraphsForResource(resource); }
@Override public List<OnmsAlarm> findMatchingAlarms(org.opennms.core.criteria.Criteria criteria) { return alarmDao.findMatching(criteria); } }
/** {@inheritDoc} */ @Override public OnmsResource getResourceById(ResourceId id) { return m_resourceDao.getResourceById(id); }
/** * {@inheritDoc} */ @Override public OnmsNode getNodeForId(int id) { return m_nodeDao.get(id); }
private void updateSubObjects(final OnmsAlarm alarm) { // Assume that the system ID is the ID of an OpenNMS system // instead of a Minion or Remote Poller getDistPollerDao().save((OnmsDistPoller)alarm.getDistPoller()); getEventDao().save(alarm.getLastEvent()); getNodeDao().save(alarm.getNode()); getServiceTypeDao().save(alarm.getServiceType()); }
private Optional<Integer> resolveNodeId(String location, InetAddress trapAddress) { // If there was no location in the trap message, assume that // it was generated in the default location if (location == null) { return cache.getFirstNodeId(MonitoringLocationDao.DEFAULT_MONITORING_LOCATION_ID, trapAddress); } return cache.getFirstNodeId(location, trapAddress); } }
/** {@inheritDoc} */ @Override public OnmsCategory getCategoryWithName(final String name) { return m_categoryDao.findByName(name); }
@Override public List<OnmsCategory> doInTransaction(TransactionStatus transactionStatus) { return m_categoryDao.findAll(); } });
@Override public List<OnmsIpInterface> findMatching(Criteria criteria) { return ipInterfaceDao.findMatching(criteria); } }
/** * <p>findTopLevelResources</p> * * @return a {@link java.util.List} object. */ @Override public List<OnmsResource> findTopLevelResources() { return m_resourceDao.findTopLevelResources(); }
/** {@inheritDoc} */ @Override public PrefabGraph[] findPrefabGraphsForResource(OnmsResource resource) { return m_graphDao.getPrefabGraphsForResource(resource); }
public MicroblogProfile getProfile(final String profile) { final MicroblogProfile mp = m_configDao.getProfile(profile); if (mp != null) { return mp; } else { return m_configDao.getDefaultProfile(); } }
/** * <p>getApplicationCount</p> * * @return a int. */ @Override public int getApplicationCount() { return m_applicationDao.countAll(); }
/** {@inheritDoc} */ @Override public boolean isViewName(final String viewName) { View view = ( viewName == null ? m_surveillanceConfigDao.getDefaultView() : m_surveillanceConfigDao.getView(viewName) ); return (view == null) ? false : true; }
@Override public Set<OnmsAttribute> load() { return m_resourceStorageDao.getAttributes(m_path); } }
@Override public Object execute() throws Exception { interfaceToNodeCache.dataSourceSync(); return null; } }
private void updateSubObjects(final OnmsAlarm alarm) { // Assume that the system ID is the ID of an OpenNMS system // instead of a Minion or Remote Poller getDistPollerDao().save((OnmsDistPoller)alarm.getDistPoller()); getEventDao().save(alarm.getLastEvent()); getNodeDao().save(alarm.getNode()); getServiceTypeDao().save(alarm.getServiceType()); }
@Override public PrefabGraph[] getAllPrefabGraphs(ResourceId resourceId) { OnmsResource resource = m_resourceDao.getResourceById(resourceId); return m_graphDao.getPrefabGraphsForResource(resource); }
@Override public OnmsCategory findCategoryByName(String categoryName) { return categoryDao.findByName(categoryName); } @Override