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 java.lang.StringNO_IFLABEL
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.StringgetIfLabel(int nodeId, java.net.InetAddress ipAddr)getIfLabeljava.lang.StringgetIfLabel(java.lang.String name, java.lang.String descr, java.lang.String physAddr)getIfLabeljava.lang.StringgetIfLabelfromIfIndex(int nodeId, java.net.InetAddress ipAddr, int ifIndex)getIfLabelfromIfIndexjava.lang.StringgetIfLabelfromSnmpIfIndex(int nodeId, int ifIndex)Return the ifLabel as a string for the given node and ifIndex.java.util.Map<java.lang.String,java.lang.String>getInterfaceInfoFromIfLabel(int nodeId, java.lang.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 java.lang.String NO_IFLABEL
- See Also:
- Constant Field Values
-
-
Method Detail
-
getInterfaceInfoFromIfLabel
java.util.Map<java.lang.String,java.lang.String> getInterfaceInfoFromIfLabel(int nodeId, java.lang.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:
java.sql.SQLException- if error occurs accessing the database.
-
getIfLabel
java.lang.String getIfLabel(int nodeId, java.net.InetAddress ipAddr)getIfLabel
- Parameters:
nodeId- a int.ipAddr- aStringobject.- Returns:
- a
Stringobject.
-
getIfLabelfromIfIndex
java.lang.String getIfLabelfromIfIndex(int nodeId, java.net.InetAddress ipAddr, int ifIndex)getIfLabelfromIfIndex
- Parameters:
nodeId- a int.ipAddr- aStringobject.ifIndex- a int.- Returns:
- a
Stringobject.
-
getIfLabelfromSnmpIfIndex
java.lang.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
-
getIfLabel
java.lang.String getIfLabel(java.lang.String name, java.lang.String descr, java.lang.String physAddr)getIfLabel
- Parameters:
name- aStringobject.descr- aStringobject.physAddr- aStringobject.- Returns:
- a
Stringobject.
-
setSnmpInterfaceDao
void setSnmpInterfaceDao(SnmpInterfaceDao snmpInterfaceDao)
-
-