public class IfLabelDaoImpl extends AbstractIfLabel implements IfLabel
NO_IFLABEL
Constructor and Description |
---|
IfLabelDaoImpl() |
Modifier and Type | Method and Description |
---|---|
String |
getIfLabel(int nodeId,
InetAddress ipAddr)
getIfLabel
|
String |
getIfLabelfromIfIndex(int nodeId,
InetAddress ipAddr,
int ifIndex)
getIfLabelfromIfIndex
|
String |
getIfLabelfromSnmpIfIndex(int nodeId,
int ifIndex)
Return the ifLabel as a string for the given node and ifIndex.
|
static IfLabel |
getInstance() |
Map<String,String> |
getInterfaceInfoFromIfLabel(int nodeId,
String ifLabel)
Return a map of useful SNMP information for the interface specified by
the nodeId and ifLabel.
|
void |
setSnmpInterfaceDao(SnmpInterfaceDao snmpInterfaceDao) |
getIfLabel
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getIfLabel
public static IfLabel getInstance()
public Map<String,String> getInterfaceInfoFromIfLabel(int nodeId, String ifLabel)
getInterfaceInfoFromIfLabel
in interface IfLabel
nodeId
- Node idifLabel
- Interface label of format: SQLException
- if error occurs accessing the database.public String getIfLabel(int nodeId, InetAddress ipAddr)
getIfLabel
getIfLabel
in interface IfLabel
nodeId
- a int.ipAddr
- a String
object.String
object.public String getIfLabelfromIfIndex(int nodeId, InetAddress ipAddr, int ifIndex)
getIfLabelfromIfIndex
getIfLabelfromIfIndex
in interface IfLabel
nodeId
- a int.ipAddr
- a String
object.ifIndex
- a int.String
object.public String getIfLabelfromSnmpIfIndex(int nodeId, int ifIndex)
getIfLabelfromSnmpIfIndex
in interface IfLabel
nodeId
- a int.ifIndex
- a int.public void setSnmpInterfaceDao(SnmpInterfaceDao snmpInterfaceDao)
setSnmpInterfaceDao
in interface IfLabel
Copyright © 2021. All rights reserved.