Package org.opennms.netmgt.dao.api
Interface IfLabel
-
- All Known Implementing Classes:
AbstractIfLabel,IfLabelDaoImpl
public interface IfLabel
-
-
Field Summary
Fields Modifier and Type Field Description static StringNO_IFLABEL
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringgetIfLabel(int nodeId, InetAddress ipAddr)getIfLabelStringgetIfLabel(String name, String descr, String physAddr)getIfLabelStringgetIfLabelfromIfIndex(int nodeId, InetAddress ipAddr, int ifIndex)getIfLabelfromIfIndexStringgetIfLabelfromSnmpIfIndex(int nodeId, int ifIndex)Return the ifLabel as a string for the given node and ifIndex.Map<String,String>getInterfaceInfoFromIfLabel(int nodeId, String ifLabel)Return a map of useful SNMP information for the interface specified by the nodeId and ifLabel.voidsetSnmpInterfaceDao(SnmpInterfaceDao snmpInterfaceDao)
-
-
-
Field Detail
-
NO_IFLABEL
static final String NO_IFLABEL
- See Also:
- Constant Field Values
-
-
Method Detail
-
getInterfaceInfoFromIfLabel
Map<String,String> getInterfaceInfoFromIfLabel(int nodeId, String ifLabel)
Return a map of useful SNMP information for the interface specified by the nodeId and ifLabel. Essentially a "decoding" algorithm for the ifLabel.- Parameters:
nodeId- Node idifLabel- Interface label of format:- - Returns:
- Map of SNMP info keyed by 'snmpInterface' table column names for the interface specified by nodeId and ifLabel args.
- Throws:
SQLException- if error occurs accessing the database.
-
getIfLabel
String getIfLabel(int nodeId, InetAddress ipAddr)
getIfLabel
-
getIfLabelfromIfIndex
String getIfLabelfromIfIndex(int nodeId, InetAddress ipAddr, int ifIndex)
getIfLabelfromIfIndex
-
getIfLabelfromSnmpIfIndex
String getIfLabelfromSnmpIfIndex(int nodeId, int ifIndex)
Return the ifLabel as a string for the given node and ifIndex. Intended for use with non-ip interfaces.- Parameters:
nodeId- a int.ifIndex- a int.- Returns:
- String
-
setSnmpInterfaceDao
void setSnmpInterfaceDao(SnmpInterfaceDao snmpInterfaceDao)
-
-