Class MultiThreadedImporter

java.lang.Object
de.hybris.platform.impex.jalo.Importer
de.hybris.platform.impex.jalo.MultiThreadedImporter
All Implemented Interfaces:
ImpExLogFilter.LocationProvider

public class MultiThreadedImporter extends Importer
Since:
3.1-u7
  • Constructor Details

  • Method Details

    • createImportReader

      protected ImpExImportReader createImportReader(CSVReader csvReader)
      Description copied from class: Importer
      Creates an ImpExImportReader instance for processing given input.
      Overrides:
      createImportReader in class Importer
      Parameters:
      csvReader - reader covering input stream
      Returns:
      new instance
    • createImportReaderForNextPass

      protected ImpExImportReader createImportReaderForNextPass()
      Description copied from class: Importer
      Creates an ImpExImportReader instance for next pass using dump handler for getting input stream and dump stream.
      Overrides:
      createImportReaderForNextPass in class Importer
      Returns:
      new reader instance for processing next pass
    • init

      protected void init() throws ImpExException
      Description copied from class: Importer
      Initializes the instance and switches to running state.
      Overrides:
      init in class Importer
      Throws:
      ImpExException - error while dump file creation
    • setLogFilter

      public void setLogFilter(ImpExLogFilter filter)
      Description copied from class: Importer
      Sets the logging filter to use while import. The default one extends each message with the current reader location except for info logs.
      Overrides:
      setLogFilter in class Importer
      Parameters:
      filter - new error handler instance
    • getMaxThreads

      public int getMaxThreads()
    • setMaxThreads

      public void setMaxThreads(int maxThreads)
    • getCurrentLocation

      public String getCurrentLocation()
      Description copied from class: Importer
      Gets the current location within input stream as text representation.
      Specified by:
      getCurrentLocation in interface ImpExLogFilter.LocationProvider
      Overrides:
      getCurrentLocation in class Importer
      Returns:
      current location text
      See Also: