public static void ExecuteActivity(IndexingActivity activity, bool waitForComplete, bool distribute) { var lucAct = activity.CreateLuceneActivity(); if (distribute) { lucAct.Distribute(); } lucAct.InternalExecute(); if (waitForComplete) { lucAct.WaitForComplete(); } }
public static void ExecuteActivityDirect(IndexingActivity activity) { var lucAct = activity.CreateLuceneActivity(); lucAct.Execute(); }
public static void ExecuteActivity(IndexingActivity activity, bool waitForComplete, bool distribute) { var lucAct = activity.CreateLuceneActivity(); //TODO: we need to call waitmultiple here if (distribute) lucAct.Distribute(); lucAct.InternalExecute(); if (waitForComplete) lucAct.WaitForComplete(); }