com.ibm.commerce.catalog.facade.server.event.consumer

Class CatalogEntrySubTypeIndexing

  • java.lang.Object
    • com.ibm.commerce.catalog.facade.server.event.consumer.CatalogEntrySubTypeIndexing
  • All Implemented Interfaces:
    java.lang.Runnable


    public class CatalogEntrySubTypeIndexing
    extends java.lang.Object
    implements java.lang.Runnable
    This class calls the solr server object to perform indexing.
    • Constructor Summary

      Constructors 
      Constructor and Description
      CatalogEntrySubTypeIndexing(java.lang.Long masterCatalogId, boolean fullBuild, java.lang.String configPath, java.lang.String indexSubType)
      The constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      java.util.List<java.lang.String> getJobSummary()
      Returns the job summary.
      java.lang.Throwable getThrowable()
      Returns the exception from prior execution.
      void run()
      This method will invoke the data pre-process and the data import handler to index catalog entry cores.
      void setSource(com.ibm.commerce.foundation.dataimport.process.DataImportProcessConstants.IndexingSource source)
      Set the invoking source of buildindex
      void setValidateIndexAfterBuild(java.lang.String validate)
      Sets the validating index after building flag.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • CatalogEntrySubTypeIndexing

        public CatalogEntrySubTypeIndexing(java.lang.Long masterCatalogId,
                                           boolean fullBuild,
                                           java.lang.String configPath,
                                           java.lang.String indexSubType)
        The constructor.
        Parameters:
        masterCatalogId - The master catalog Id.
        fullBuild - The flag to indicate if it is a full index build. true: full index build. false: the delta index update.
        configPath - The configuration directory which contains the configuration files for data pre-preocess.
        indexSubType - The indexSubType which needs to be indexed
    • Method Detail

      • run

        public void run()
        This method will invoke the data pre-process and the data import handler to index catalog entry cores.
        Specified by:
        run in interface java.lang.Runnable
      • setSource

        public void setSource(com.ibm.commerce.foundation.dataimport.process.DataImportProcessConstants.IndexingSource source)
        Set the invoking source of buildindex
        Parameters:
        source - The source type to indicate where the index build from.
      • setValidateIndexAfterBuild

        public void setValidateIndexAfterBuild(java.lang.String validate)
        Sets the validating index after building flag.
        Parameters:
        validate - The flag to indicate if to validate the index after building.
      • getThrowable

        public java.lang.Throwable getThrowable()
        Returns the exception from prior execution.
        Returns:
        Throwable of prior run. Null if no error found.
      • getJobSummary

        public java.util.List<java.lang.String> getJobSummary()
        Returns the job summary.
        Returns:
        The job summary.