Package jadx.gui.search
Class SearchTask
- java.lang.Object
-
- jadx.gui.jobs.CancelableBackgroundTask
-
- jadx.gui.search.SearchTask
-
- All Implemented Interfaces:
Cancelable,IBackgroundTask
public class SearchTask extends CancelableBackgroundTask
-
-
Constructor Summary
Constructors Constructor Description SearchTask(MainWindow mainWindow, java.util.function.Consumer<JNode> results, java.util.function.BiConsumer<ITaskInfo,java.lang.Boolean> onFinish)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddProviderJob(ISearchProvider provider)booleanaddResult(JNode resultNode)booleancheckMemoryUsage()Executor will check memory usage on every tick and cancel job if no free memory available.voidfetchResults()intgetCancelTimeoutMS()@Nullable java.util.function.Consumer<ITaskProgress>getProgressListener()Return progress notifications listener (use executor tick rate and thread) (Optional)intgetShutdownTimeoutMS()@NotNull ITaskProgressgetTaskProgress()Get task progress (Optional)java.lang.StringgetTitle()voidonFinish(ITaskInfo task)Executed on the Event Dispatch Thread after the all jobs finished.jadx.api.utils.tasks.ITaskExecutorscheduleTasks()voidsetProgressListener(java.util.function.Consumer<ITaskProgress> progressListener)voidsetResultsLimit(int limit)voidwaitTask()-
Methods inherited from class jadx.gui.jobs.CancelableBackgroundTask
canBeCanceled, cancel, isCanceled, resetCancel
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface jadx.gui.jobs.IBackgroundTask
onDone, timeLimit
-
-
-
-
Constructor Detail
-
SearchTask
public SearchTask(MainWindow mainWindow, java.util.function.Consumer<JNode> results, java.util.function.BiConsumer<ITaskInfo,java.lang.Boolean> onFinish)
-
-
Method Detail
-
addProviderJob
public void addProviderJob(ISearchProvider provider)
-
setResultsLimit
public void setResultsLimit(int limit)
-
fetchResults
public void fetchResults()
-
addResult
public boolean addResult(JNode resultNode)
-
waitTask
public void waitTask()
-
getTitle
public java.lang.String getTitle()
-
scheduleTasks
public jadx.api.utils.tasks.ITaskExecutor scheduleTasks()
-
onFinish
public void onFinish(ITaskInfo task)
Description copied from interface:IBackgroundTaskExecuted on the Event Dispatch Thread after the all jobs finished.
-
checkMemoryUsage
public boolean checkMemoryUsage()
Description copied from interface:IBackgroundTaskExecutor will check memory usage on every tick and cancel job if no free memory available.
-
getTaskProgress
@NotNull public @NotNull ITaskProgress getTaskProgress()
Description copied from interface:IBackgroundTaskGet task progress (Optional)
-
setProgressListener
public void setProgressListener(java.util.function.Consumer<ITaskProgress> progressListener)
-
getProgressListener
@Nullable public @Nullable java.util.function.Consumer<ITaskProgress> getProgressListener()
Description copied from interface:IBackgroundTaskReturn progress notifications listener (use executor tick rate and thread) (Optional)
-
getCancelTimeoutMS
public int getCancelTimeoutMS()
-
getShutdownTimeoutMS
public int getShutdownTimeoutMS()
-
-