Interface IfLabel

    • 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 id
        ifLabel - 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

        Parameters:
        nodeId - a int.
        ipAddr - a String object.
        Returns:
        a String object.
      • getIfLabelfromIfIndex

        String getIfLabelfromIfIndex​(int nodeId,
                                     InetAddress ipAddr,
                                     int ifIndex)

        getIfLabelfromIfIndex

        Parameters:
        nodeId - a int.
        ipAddr - a String object.
        ifIndex - a int.
        Returns:
        a String object.
      • 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)