Class AsyncLaneSwitcher

java.lang.Object
org.apache.jackrabbit.oak.plugins.index.importer.AsyncLaneSwitcher

public class AsyncLaneSwitcher extends Object
Coordinates the switching of indexing lane for indexes which are to be imported. Its support idempotent operation i.e. if an indexer is switched to temp lane then a repeat of same operation would be no op.
  • Constructor Details

    • AsyncLaneSwitcher

      public AsyncLaneSwitcher()
  • Method Details

    • switchLane

      public static void switchLane(NodeBuilder idxBuilder, String laneName)
      Make a copy of current async value and replace it with one required for offline reindexing The switch lane operation can be safely repeated and if the index lane is found to be switched already it would not be modified
    • isLaneSwitched

      public static boolean isLaneSwitched(NodeBuilder idxBuilder)
    • getTempLaneName

      public static String getTempLaneName(String laneName)
    • revertSwitch

      public static void revertSwitch(NodeBuilder idxBuilder, String indexPath)
    • isNone

      public static boolean isNone(PropertyState previousAsync)