Class SnmpInterfaceUpgrade

    • Constructor Detail

      • SnmpInterfaceUpgrade

        public SnmpInterfaceUpgrade​(int nodeId,
                                    java.lang.String foreignSource,
                                    java.lang.String foreignId,
                                    java.lang.String ifDescr,
                                    java.lang.String ifName,
                                    java.lang.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​(java.sql.ResultSet rs,
                                    boolean storeByForeignSource)
                             throws java.sql.SQLException
        Instantiates a new SNMP interface upgrade.
        Parameters:
        rs - the ResultSet
        storeByForeignSource - true, if the store by foreign source is enabled
        Throws:
        java.sql.SQLException - the SQL exception
    • Method Detail

      • getNodeDir

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

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

        public java.io.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 java.io.File getNodeDirectory​(int nodeId,
                                                java.lang.String foreignSource,
                                                java.lang.String foreignId)
        Gets the node directory.
        Parameters:
        nodeId - the node id
        foreignSource - the foreign source
        foreignId - the foreign id
        Returns:
        the node directory