Class ElasticsearchMigration

  • All Implemented Interfaces:
    org.exoplatform.container.component.ComponentPlugin

    public class ElasticsearchMigration
    extends org.exoplatform.commons.upgrade.UpgradeProductPlugin
    • Field Summary

      • Fields inherited from class org.exoplatform.commons.upgrade.UpgradeProductPlugin

        asyncUpgradeExecution, executeOnlyOnce, OLD_PRODUCT_GROUP_ID, oldProductGroupId, PRODUCT_GROUP_ID, productGroupId, targetVersion, UPGRADE_COMPLETED_STATUS, UPGRADE_PLUGIN_ASYNC, UPGRADE_PLUGIN_ENABLE, UPGRADE_PLUGIN_EXECUTE_ONCE_PARAMETER, UPGRADE_PLUGIN_EXECUTION_ORDER, UPGRADE_PLUGIN_TARGET_PARAMETER
      • Fields inherited from class org.exoplatform.container.component.BaseComponentPlugin

        desc, name
    • Constructor Summary

      Constructors 
      Constructor Description
      ElasticsearchMigration​(org.exoplatform.container.configuration.ConfigurationManager configurationManager, org.exoplatform.analytics.es.AnalyticsESClient analyticsESClient, org.exoplatform.analytics.api.service.StatisticDataProcessorService statisticDataProcessorService, org.exoplatform.analytics.es.AnalyticsIndexingServiceConnector analyticsIndexingConnector, org.exoplatform.container.xml.InitParams initParams)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      String getReindexQuery​(boolean withType)  
      boolean isEnabled()  
      void processUpgrade​(String oldVersion, String newVersion)  
      boolean shouldProceedToUpgrade​(String newVersion, String previousGroupVersion, org.exoplatform.commons.upgrade.UpgradePluginExecutionContext previousUpgradePluginExecution)  
      • Methods inherited from class org.exoplatform.commons.upgrade.UpgradeProductPlugin

        afterUpgrade, beforeUpgrade, equals, getPluginExecutionOrder, getProductGroupId, getTargetVersion, getValue, hashCode, isAsyncUpgradeExecution, isExecuteOnlyOnce, shouldProceedToUpgrade, storeValueForPlugin
      • Methods inherited from class org.exoplatform.container.component.BaseComponentPlugin

        getDescription, getName, setDescription, setName
    • Constructor Detail

      • ElasticsearchMigration

        public ElasticsearchMigration​(org.exoplatform.container.configuration.ConfigurationManager configurationManager,
                                      org.exoplatform.analytics.es.AnalyticsESClient analyticsESClient,
                                      org.exoplatform.analytics.api.service.StatisticDataProcessorService statisticDataProcessorService,
                                      org.exoplatform.analytics.es.AnalyticsIndexingServiceConnector analyticsIndexingConnector,
                                      org.exoplatform.container.xml.InitParams initParams)
    • Method Detail

      • isEnabled

        public boolean isEnabled()
        Overrides:
        isEnabled in class org.exoplatform.commons.upgrade.UpgradeProductPlugin
      • shouldProceedToUpgrade

        public boolean shouldProceedToUpgrade​(String newVersion,
                                              String previousGroupVersion,
                                              org.exoplatform.commons.upgrade.UpgradePluginExecutionContext previousUpgradePluginExecution)
        Overrides:
        shouldProceedToUpgrade in class org.exoplatform.commons.upgrade.UpgradeProductPlugin
      • processUpgrade

        public void processUpgrade​(String oldVersion,
                                   String newVersion)
        Specified by:
        processUpgrade in class org.exoplatform.commons.upgrade.UpgradeProductPlugin