Class SnmpInterfaceUpgrade

    • Constructor Detail

      • SnmpInterfaceUpgrade

        public SnmpInterfaceUpgrade​(int nodeId,
                                    String foreignSource,
                                    String foreignId,
                                    String ifDescr,
                                    String ifName,
                                    String physAddr,
                                    boolean storeByForeignSource)
        Instantiates a new SNMP interface upgrade.
        Parameters:
        nodeId - the node id
        foreignSource - the foreign source
        foreignId - the foreign id
        ifDescr - the SNMP interface description
        ifName - the SNMP interface name
        physAddr - the SNMP physical address
        storeByForeignSource - true, if store by foreign source is enabled
      • SnmpInterfaceUpgrade

        public SnmpInterfaceUpgrade​(ResultSet rs,
                                    boolean storeByForeignSource)
                             throws SQLException
        Instantiates a new SNMP interface upgrade.
        Parameters:
        rs - the ResultSet
        storeByForeignSource - true, if the store by foreign source is enabled
        Throws:
        SQLException - the SQL exception
    • Method Detail

      • getNodeDir

        public File getNodeDir()
        Gets the node directory.
        Returns:
        the node directory
      • getOldInterfaceDir

        public File getOldInterfaceDir()
        Gets the old interface directory.
        Returns:
        the old interface directory
      • getNewInterfaceDir

        public File getNewInterfaceDir()
        Gets the new interface directory.
        Returns:
        the new interface directory
      • shouldMerge

        public boolean shouldMerge()
        Checks if the interface directories should be merged.
        Returns:
        true, if the interface directory should be merged
      • getNodeDirectory

        protected File getNodeDirectory​(int nodeId,
                                        String foreignSource,
                                        String foreignId)
        Gets the node directory.
        Parameters:
        nodeId - the node id
        foreignSource - the foreign source
        foreignId - the foreign id
        Returns:
        the node directory