@Override public OnmsSnmpInterface doUpdate(final OnmsSnmpInterface dbSnmpIface) { // update the interface that was found dbSnmpIface.mergeSnmpInterfaceAttributes(snmpInterface); LOG.info("Updating SnmpInterface {}", dbSnmpIface); m_snmpInterfaceDao.update(dbSnmpIface); m_snmpInterfaceDao.flush(); return dbSnmpIface; }
@Override public OnmsSnmpInterface doUpdate(final OnmsSnmpInterface dbSnmpIface) { // update the interface that was found dbSnmpIface.mergeSnmpInterfaceAttributes(snmpInterface); LOG.info("Updating SnmpInterface {}", dbSnmpIface); m_snmpInterfaceDao.update(dbSnmpIface); m_snmpInterfaceDao.flush(); return dbSnmpIface; }
@Override public OnmsSnmpInterface doInsert() { // add the interface to the node, if it wasn't found final OnmsNode dbNode = m_nodeDao.load(nodeId); assertNotNull(dbNode, "no node found with nodeId %d", nodeId); // for performance reasons we don't add the snmp interface to the node so we avoid loading all the interfaces // setNode only sets the node in the interface snmpInterface.setNode(dbNode); LOG.info("Saving SnmpInterface {}", snmpInterface); m_snmpInterfaceDao.save(snmpInterface); m_snmpInterfaceDao.flush(); return snmpInterface; }
@Override public OnmsSnmpInterface doInsert() { // add the interface to the node, if it wasn't found final OnmsNode dbNode = m_nodeDao.load(nodeId); assertNotNull(dbNode, "no node found with nodeId %d", nodeId); // for performance reasons we don't add the snmp interface to the node so we avoid loading all the interfaces // setNode only sets the node in the interface snmpInterface.setNode(dbNode); LOG.info("Saving SnmpInterface {}", snmpInterface); m_snmpInterfaceDao.save(snmpInterface); m_snmpInterfaceDao.flush(); return snmpInterface; }
m_alarmDao.flush(); m_eventDao.flush(); m_snmpInterfaceDao.flush(); m_ipInterfaceDao.flush(); m_nodeDao.flush();