Class AsyncLaneSwitcher
java.lang.Object
org.apache.jackrabbit.oak.plugins.index.importer.AsyncLaneSwitcher
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringgetTempLaneName(String laneName) static booleanisLaneSwitched(NodeBuilder idxBuilder) static booleanisNone(PropertyState previousAsync) static voidrevertSwitch(NodeBuilder idxBuilder, String indexPath) static voidswitchLane(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
-
Constructor Details
-
AsyncLaneSwitcher
public AsyncLaneSwitcher()
-
-
Method Details
-
switchLane
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
-
getTempLaneName
-
revertSwitch
-
isNone
-