|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.opennms.netmgt.linkd.AbstractQueryManager
org.opennms.netmgt.linkd.HibernateEventWriter
public class HibernateEventWriter
| Field Summary |
|---|
| Fields inherited from class org.opennms.netmgt.linkd.AbstractQueryManager |
|---|
m_linkd |
| Fields inherited from interface org.opennms.netmgt.linkd.QueryManager |
|---|
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 Summary | |
|---|---|
HibernateEventWriter()
|
|
| Methods inherited from class org.opennms.netmgt.linkd.AbstractQueryManager |
|---|
getLinkd, getNode, processCdpCacheTable, processDot1DBase, processDot1DBasePortTable, processDot1DTpFdbTable, processDot1StpPortTable, processIpNetToMediaTable, processQBridgeDot1dTpFdbTable, processRouteTable, processStpNode, processVlanTable, sendNewSuspectEvent, setLinkd |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public HibernateEventWriter()
| Method Detail |
|---|
public List<LinkableNode> getSnmpNodeList()
throws SQLException
QueryManagergetSnmpNodeList
getSnmpNodeList in interface QueryManagerList object.
SQLException - if any.
public LinkableNode getSnmpNode(int nodeid)
throws SQLException
QueryManagergetSnmpNode
getSnmpNode in interface QueryManagernodeid - a int.
LinkableNode object.
SQLException - if any.
public void updateDeletedNodes()
throws SQLException
QueryManagerupdateDeletedNodes
updateDeletedNodes in interface QueryManagerSQLException - if any.
protected void markOldDataInactive(Connection dbConn,
Timestamp scanTime,
int nodeid)
throws SQLException
markOldDataInactive in class AbstractQueryManagerSQLException
public LinkableNode storeSnmpCollection(LinkableNode node,
SnmpCollection snmpColl)
throws SQLException
QueryManagerstoreSnmpCollection
storeSnmpCollection in interface QueryManagernode - a LinkableNode object.snmpColl - a SnmpCollection object.
LinkableNode object.
SQLException - if any.
public void storeDiscoveryLink(DiscoveryLink discoveryLink)
throws SQLException
QueryManagerstoreDiscoveryLink
storeDiscoveryLink in interface QueryManagerdiscoveryLink - a DiscoveryLink object.
SQLException - if any.
public void update(int nodeid,
char action)
throws SQLException
QueryManagerupdate
update in interface QueryManagernodeid - a int.action - a char.
SQLException - if any.
public void updateForInterface(int nodeid,
String ipAddr,
int ifIndex,
char action)
throws SQLException
QueryManagerupdateForInterface
updateForInterface in interface QueryManagernodeid - 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 AbstractQueryManagerSQLException
protected int getNodeidFromIp(Connection dbConn,
InetAddress cdpTargetIpAddr)
throws SQLException
getNodeidFromIp in class AbstractQueryManagerSQLException
protected RouterInterface getNodeidMaskFromIp(Connection dbConn,
InetAddress nexthop)
throws SQLException
getNodeidMaskFromIp in class AbstractQueryManagerSQLException
protected RouterInterface getNodeFromIp(Connection dbConn,
InetAddress nexthop)
throws SQLException
getNodeFromIp in class AbstractQueryManagerSQLException
protected int getSnmpIfType(Connection dbConn,
int nodeId,
Integer ifIndex)
throws SQLException
getSnmpIfType in class AbstractQueryManagerSQLException
protected List<String> getPhysAddrs(int nodeId,
DBUtils d,
Connection dbConn)
throws SQLException
getPhysAddrs in class AbstractQueryManagerSQLException
protected void saveIpRouteInterface(Connection dbConn,
OnmsIpRouteInterface saveMe)
throws SQLException
saveIpRouteInterface in class AbstractQueryManagerSQLException
protected void saveVlan(Connection dbConn,
OnmsVlan saveMe)
throws SQLException
saveVlan in class AbstractQueryManagerSQLException
protected void saveStpNode(Connection dbConn,
OnmsStpNode saveMe)
throws SQLException
saveStpNode in class AbstractQueryManagerSQLException
protected void saveStpInterface(Connection dbConn,
OnmsStpInterface saveMe)
throws SQLException
saveStpInterface in class AbstractQueryManagerSQLException
public void afterPropertiesSet()
throws Exception
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanExceptionpublic NodeDao getNodeDao()
getNodeDao in class AbstractQueryManagerpublic void setNodeDao(NodeDao nodeDao)
public IpInterfaceDao getIpInterfaceDao()
getIpInterfaceDao in class AbstractQueryManagerpublic void setIpInterfaceDao(IpInterfaceDao ipInterfaceDao)
public SnmpInterfaceDao getSnmpInterfaceDao()
public void setSnmpInterfaceDao(SnmpInterfaceDao snmpInterfaceDao)
public AtInterfaceDao getAtInterfaceDao()
getAtInterfaceDao in class AbstractQueryManagerpublic 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)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||