public class HibernateEventWriter extends AbstractQueryManager implements org.springframework.beans.factory.InitializingBean
m_linkd
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, SNMP_IF_TYPE_ETHERNET, SNMP_IF_TYPE_L2_VLAN, SNMP_IF_TYPE_L3_VLAN, SNMP_IF_TYPE_PROP_VIRTUAL
Constructor and Description |
---|
HibernateEventWriter() |
getIfIndex, getLinkd, getNode, getOnmsStpNode, processCdp, processDot1DBasePortTable, processDot1DTpFdbTable, processDot1StpPortTable, processIpNetToMediaTable, processIsis, processLldp, processOspf, processQBridgeDot1dTpFdbTable, processRouteTable, processVlanTable, processWifi, sendNewSuspectEvent, setLinkd, storeSnmpVlanCollection
public List<LinkableSnmpNode> getSnmpNodeList()
QueryManager
getSnmpNodeList
getSnmpNodeList
in interface QueryManager
List
object.public LinkableSnmpNode getSnmpNode(int nodeid)
QueryManager
getSnmpNode
getSnmpNode
in interface QueryManager
nodeid
- a int.LinkableNode
object.public void updateDeletedNodes()
QueryManager
updateDeletedNodes
updateDeletedNodes
in interface QueryManager
protected void markOldDataInactive(Date scanTime, int nodeid)
markOldDataInactive
in class AbstractQueryManager
protected void deleteOlderData(Date scanTime, int nodeid)
deleteOlderData
in class AbstractQueryManager
@Transactional public LinkableNode storeSnmpCollection(LinkableNode node, SnmpCollection snmpColl)
QueryManager
storeSnmpCollection
storeSnmpCollection
in interface QueryManager
node
- a LinkableNode
object.snmpColl
- a SnmpCollection
object.LinkableNode
object.@Transactional public void storeDiscoveryLink(DiscoveryLink discoveryLink)
QueryManager
storeDiscoveryLink
storeDiscoveryLink
in interface QueryManager
discoveryLink
- a DiscoveryLink
object.public void update(int nodeid, OnmsArpInterface.StatusType action)
QueryManager
update
update
in interface QueryManager
nodeid
- a int.action
- a char.public void updateForInterface(int nodeid, String ipAddr, int ifIndex, OnmsArpInterface.StatusType action)
QueryManager
updateForInterface
updateForInterface
in interface QueryManager
nodeid
- a int.ipAddr
- a String
object.ifIndex
- a int.action
- a char.protected int getIfIndexByName(int targetCdpNodeId, String cdpTargetDevicePort)
getIfIndexByName
in class AbstractQueryManager
protected List<OnmsNode> getNodeidFromIp(InetAddress cdpTargetIpAddr)
getNodeidFromIp
in class AbstractQueryManager
protected List<RouterInterface> getRouteInterface(InetAddress nexthop, int ifindex)
getRouteInterface
in class AbstractQueryManager
protected int getSnmpIfType(int nodeId, Integer ifIndex)
getSnmpIfType
in class AbstractQueryManager
protected Map<Integer,String> getPhysAddrs(int nodeId)
getPhysAddrs
in class AbstractQueryManager
protected void saveIpRouteInterface(OnmsIpRouteInterface saveMe)
saveIpRouteInterface
in class AbstractQueryManager
protected void saveVlan(OnmsVlan saveMe)
saveVlan
in class AbstractQueryManager
protected void saveStpNode(OnmsStpNode saveMe)
saveStpNode
in class AbstractQueryManager
protected void saveStpInterface(OnmsStpInterface saveMe)
saveStpInterface
in class AbstractQueryManager
protected void saveAtInterface(OnmsAtInterface saveMe)
saveAtInterface
in class AbstractQueryManager
public void afterPropertiesSet() throws Exception
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
Exception
public NodeDao getNodeDao()
getNodeDao
in class AbstractQueryManager
public IpInterfaceDao getIpInterfaceDao()
getIpInterfaceDao
in class AbstractQueryManager
public SnmpInterfaceDao getSnmpInterfaceDao()
getSnmpInterfaceDao
in class AbstractQueryManager
public AtInterfaceDao getAtInterfaceDao()
getAtInterfaceDao
in class AbstractQueryManager
public VlanDao getVlanDao()
public StpNodeDao getStpNodeDao()
public StpInterfaceDao getStpInterfaceDao()
public IpRouteInterfaceDao getIpRouteInterfaceDao()
public DataLinkInterfaceDao getDataLinkInterfaceDao()
public void setDataLinkInterfaceDao(DataLinkInterfaceDao dataLinkInterfaceDao)
@Transactional public OnmsSnmpInterface getFromSysnameIpAddress(String lldpRemSysname, InetAddress lldpRemPortid)
getFromSysnameIpAddress
in class AbstractQueryManager
@Transactional protected OnmsSnmpInterface getFromSysnameIfName(String lldpRemSysname, String lldpRemPortid)
getFromSysnameIfName
in class AbstractQueryManager
@Transactional protected OnmsSnmpInterface getFromSysnameIfIndex(String lldpRemSysname, Integer lldpRemPortid)
getFromSysnameIfIndex
in class AbstractQueryManager
@Transactional protected OnmsSnmpInterface getFromSysnameMacAddress(String lldpRemSysname, String lldpRemPortid)
getFromSysnameMacAddress
in class AbstractQueryManager
@Transactional protected OnmsSnmpInterface getFromSysnameIfAlias(String lldpRemSysname, String lldpRemPortid)
getFromSysnameIfAlias
in class AbstractQueryManager
@Transactional protected OnmsSnmpInterface getFromSysnameAgentCircuitId(String lldpRemSysname, String lldpRemPortid)
getFromSysnameAgentCircuitId
in class AbstractQueryManager
protected OnmsSnmpInterface getFromSysnamePortComponent(String lldpRemSysname, String lldpRemPortid)
getFromSysnamePortComponent
in class AbstractQueryManager
Copyright © 2015. All rights reserved.