|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.opennms.netmgt.linkd.DbEventWriter
public class DbEventWriter
This class is used to store informations owned by SnmpCollection and DiscoveryLink Classes in DB. When saving SNMP Collection it populate Bean LinkableNode with information for DiscoveryLink. It performs data test for DiscoveryLink. Also take correct action on DB tables in case node is deleted service SNMP is discovered, service SNMP is Lost and Regained Also this class holds
| Field Summary |
|---|
| 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 | |
|---|---|
DbEventWriter()
Constructor for DbEventWriter. |
|
| Method Summary | |
|---|---|
Linkd |
getLinkd()
|
LinkableNode |
getSnmpNode(int nodeid)
getSnmpNode |
List<LinkableNode> |
getSnmpNodeList()
getSnmpNodeList |
String |
getSnmpPrimaryIp(int nodeid)
getSnmpPrimaryIp |
void |
setJdbcTemplate(org.springframework.jdbc.core.JdbcTemplate jdbcTemplate)
setJdbcTemplate |
void |
setLinkd(Linkd linkd)
|
void |
storeDiscoveryLink(DiscoveryLink discovery)
storeDiscoveryLink |
LinkableNode |
storeSnmpCollection(LinkableNode node,
SnmpCollection snmpcoll)
storeSnmpCollection |
void |
update(int nodeid,
char status)
update |
void |
updateDeletedNodes()
updateDeletedNodes |
void |
updateForInterface(int nodeId,
String ipAddr,
int ifIndex,
char status)
updateForInterface |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DbEventWriter()
Constructor for DbEventWriter.
| Method Detail |
|---|
public void setLinkd(Linkd linkd)
linkd - the linkd to setpublic Linkd getLinkd()
public void storeDiscoveryLink(DiscoveryLink discovery)
throws SQLException
storeDiscoveryLink
storeDiscoveryLink in interface QueryManagerdiscovery - a DiscoveryLink object.
SQLException - if any.
public LinkableNode storeSnmpCollection(LinkableNode node,
SnmpCollection snmpcoll)
throws SQLException
storeSnmpCollection
storeSnmpCollection in interface QueryManagernode - a LinkableNode object.snmpcoll - a SnmpCollection object.
LinkableNode object.
SQLException - if any.
public void update(int nodeid,
char status)
throws SQLException
update
update in interface QueryManagernodeid - a int.status - a char.
SQLException - if any.
public LinkableNode getSnmpNode(int nodeid)
throws SQLException
getSnmpNode
getSnmpNode in interface QueryManagernodeid - a int.
LinkableNode object.
SQLException - if any.
public List<LinkableNode> getSnmpNodeList()
throws SQLException
getSnmpNodeList
getSnmpNodeList in interface QueryManagerList object.
SQLException - if any.
public void updateDeletedNodes()
throws SQLException
updateDeletedNodes
updateDeletedNodes in interface QueryManagerSQLException - if any.
public void updateForInterface(int nodeId,
String ipAddr,
int ifIndex,
char status)
throws SQLException
updateForInterface
updateForInterface in interface QueryManagernodeId - a int.ipAddr - a String object.ifIndex - a int.status - a char.
SQLException - if any.
public String getSnmpPrimaryIp(int nodeid)
throws SQLException
getSnmpPrimaryIp
getSnmpPrimaryIp in interface QueryManagernodeid - a int.
String object.
SQLException - if any.public void setJdbcTemplate(org.springframework.jdbc.core.JdbcTemplate jdbcTemplate)
setJdbcTemplate
setJdbcTemplate in interface QueryManagerjdbcTemplate - a JdbcTemplate object.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||