Class IfLabelDaoImpl

    • Constructor Detail

      • IfLabelDaoImpl

        public IfLabelDaoImpl()
    • Method Detail

      • getInstance

        public static IfLabel getInstance()
      • getInterfaceInfoFromIfLabel

        public 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.
        Specified by:
        getInterfaceInfoFromIfLabel in interface 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.
      • getIfLabelfromIfIndex

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

        getIfLabelfromIfIndex

        Specified by:
        getIfLabelfromIfIndex in interface IfLabel
        Parameters:
        nodeId - a int.
        ipAddr - a String object.
        ifIndex - a int.
        Returns:
        a String object.
      • getIfLabelfromSnmpIfIndex

        public 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.
        Specified by:
        getIfLabelfromSnmpIfIndex in interface IfLabel
        Parameters:
        nodeId - a int.
        ifIndex - a int.
        Returns:
        String