Class AsyncLaneSwitcher
- java.lang.Object
-
- org.apache.jackrabbit.oak.plugins.index.importer.AsyncLaneSwitcher
-
public class AsyncLaneSwitcher extends java.lang.ObjectCoordinates 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 Summary
Constructors Constructor Description AsyncLaneSwitcher()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.StringgetTempLaneName(java.lang.String laneName)static booleanisLaneSwitched(NodeBuilder idxBuilder)static booleanisNone(PropertyState previousAsync)static voidrevertSwitch(NodeBuilder idxBuilder, java.lang.String indexPath)static voidswitchLane(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
-
-
-
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)
-
-