public class HibernateEventWriter extends AbstractQueryManager implements org.springframework.beans.factory.InitializingBean
m_linkd
ACTION_DELETE, ACTION_UPTODATE, CDP_ADDRESS_TYPE_IP_ADDRESS, SNMP_DOT1D_FDB_STATUS_INVALID, SNMP_DOT1D_FDB_STATUS_LEARNED, SNMP_DOT1D_FDB_STATUS_MGMT, SNMP_DOT1D_FDB_STATUS_OTHER, SNMP_DOT1D_FDB_STATUS_SELF
Constructor and Description |
---|
HibernateEventWriter() |
getFromSysnameAgentCircuitId, getFromSysnameIfAlias, getFromSysnameIfName, getFromSysnameMacAddress, getFromSysnamePortComponent, getIfIndex, getLinkd, getNode, processCdpCacheTable, processDot1DBase, processDot1DBasePortTable, processDot1DTpFdbTable, processDot1StpPortTable, processIpNetToMediaTable, processLldp, processOspf, processQBridgeDot1dTpFdbTable, processRouteTable, processStpInterfaces, processStpNode, processVlanTable, sendNewSuspectEvent, setLinkd
public List<LinkableNode> getSnmpNodeList() throws SQLException
QueryManager
getSnmpNodeList
getSnmpNodeList
in interface QueryManager
List
object.SQLException
- if any.public LinkableNode getSnmpNode(int nodeid) throws SQLException
QueryManager
getSnmpNode
getSnmpNode
in interface QueryManager
nodeid
- a int.LinkableNode
object.SQLException
- if any.public void updateDeletedNodes() throws SQLException
QueryManager
updateDeletedNodes
updateDeletedNodes
in interface QueryManager
SQLException
- if any.protected void markOldDataInactive(Connection dbConn, Timestamp scanTime, int nodeid) throws SQLException
markOldDataInactive
in class AbstractQueryManager
SQLException
protected void deleteOlderData(Connection dbConn, Timestamp scanTime, int nodeid) throws SQLException
deleteOlderData
in class AbstractQueryManager
SQLException
@Transactional public LinkableNode storeSnmpCollection(LinkableNode node, SnmpCollection snmpColl) throws SQLException
QueryManager
storeSnmpCollection
storeSnmpCollection
in interface QueryManager
node
- a LinkableNode
object.snmpColl
- a SnmpCollection
object.LinkableNode
object.SQLException
- if any.public void storeDiscoveryLink(DiscoveryLink discoveryLink) throws SQLException
QueryManager
storeDiscoveryLink
storeDiscoveryLink
in interface QueryManager
discoveryLink
- a DiscoveryLink
object.SQLException
- if any.public void update(int nodeid, char action) throws SQLException
QueryManager
update
update
in interface QueryManager
nodeid
- a int.action
- a char.SQLException
- if any.public void updateForInterface(int nodeid, String ipAddr, int ifIndex, char action) throws SQLException
QueryManager
updateForInterface
updateForInterface
in interface QueryManager
nodeid
- a int.ipAddr
- a String
object.ifIndex
- a int.action
- a char.SQLException
- if any.protected int getIfIndexByName(Connection dbConn, int targetCdpNodeId, String cdpTargetDevicePort) throws SQLException
getIfIndexByName
in class AbstractQueryManager
SQLException
protected List<Integer> getNodeidFromIp(Connection dbConn, InetAddress cdpTargetIpAddr) throws SQLException
getNodeidFromIp
in class AbstractQueryManager
SQLException
protected RouterInterface getNodeidMaskFromIp(Connection dbConn, InetAddress nexthop) throws SQLException
getNodeidMaskFromIp
in class AbstractQueryManager
SQLException
protected RouterInterface getNodeFromIp(Connection dbConn, InetAddress nexthop) throws SQLException
getNodeFromIp
in class AbstractQueryManager
SQLException
protected int getSnmpIfType(Connection dbConn, int nodeId, Integer ifIndex) throws SQLException
getSnmpIfType
in class AbstractQueryManager
SQLException
protected List<String> getPhysAddrs(int nodeId, DBUtils d, Connection dbConn) throws SQLException
getPhysAddrs
in class AbstractQueryManager
SQLException
protected void saveIpRouteInterface(Connection dbConn, OnmsIpRouteInterface saveMe) throws SQLException
saveIpRouteInterface
in class AbstractQueryManager
SQLException
protected void saveVlan(Connection dbConn, OnmsVlan saveMe) throws SQLException
saveVlan
in class AbstractQueryManager
SQLException
protected void saveStpNode(Connection dbConn, OnmsStpNode saveMe) throws SQLException
saveStpNode
in class AbstractQueryManager
SQLException
protected void saveStpInterface(Connection dbConn, OnmsStpInterface saveMe) throws SQLException
saveStpInterface
in class AbstractQueryManager
SQLException
public void afterPropertiesSet() throws Exception
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
Exception
public NodeDao getNodeDao()
getNodeDao
in class AbstractQueryManager
public void setNodeDao(NodeDao nodeDao)
public IpInterfaceDao getIpInterfaceDao()
getIpInterfaceDao
in class AbstractQueryManager
public void setIpInterfaceDao(IpInterfaceDao ipInterfaceDao)
public SnmpInterfaceDao getSnmpInterfaceDao()
getSnmpInterfaceDao
in class AbstractQueryManager
public void setSnmpInterfaceDao(SnmpInterfaceDao snmpInterfaceDao)
public AtInterfaceDao getAtInterfaceDao()
getAtInterfaceDao
in class AbstractQueryManager
public void setAtInterfaceDao(AtInterfaceDao atInterfaceDao)
public VlanDao getVlanDao()
public void setVlanDao(VlanDao vlanDao)
public StpNodeDao getStpNodeDao()
public void setStpNodeDao(StpNodeDao stpNodeDao)
public StpInterfaceDao getStpInterfaceDao()
public void setStpInterfaceDao(StpInterfaceDao stpInterfaceDao)
public IpRouteInterfaceDao getIpRouteInterfaceDao()
public void setIpRouteInterfaceDao(IpRouteInterfaceDao ipRouteInterfaceDao)
public DataLinkInterfaceDao getDataLinkInterfaceDao()
public void setDataLinkInterfaceDao(DataLinkInterfaceDao dataLinkInterfaceDao)
@Transactional public Integer getFromSysnameIpAddress(String lldpRemSysname, InetAddress lldpRemPortid)
getFromSysnameIpAddress
in class AbstractQueryManager
Copyright © 2015. All Rights Reserved.