Class AsyncLaneSwitcher


  • public class AsyncLaneSwitcher
    extends java.lang.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.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String getTempLaneName​(java.lang.String laneName)  
      static boolean isLaneSwitched​(NodeBuilder idxBuilder)  
      static boolean isNone​(PropertyState previousAsync)  
      static void revertSwitch​(NodeBuilder idxBuilder, java.lang.String indexPath)  
      static void switchLane​(NodeBuilder idxBuilder, java.lang.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
      • Methods inherited from class java.lang.Object

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

      • AsyncLaneSwitcher

        public AsyncLaneSwitcher()
    • Method Detail

      • switchLane

        public static void switchLane​(NodeBuilder idxBuilder,
                                      java.lang.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 java.lang.String getTempLaneName​(java.lang.String laneName)
      • revertSwitch

        public static void revertSwitch​(NodeBuilder idxBuilder,
                                        java.lang.String indexPath)
      • isNone

        public static boolean isNone​(PropertyState previousAsync)