Package ghidra.framework.task
Interface GTaskListener
- All Known Implementing Classes:
GTaskListenerAdapter
public interface GTaskListener
Interface used to track the state of a GTaskManager
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Called when a task listener is added so that the listener can get all the initial state of the taskManger while the taskManager is in a locked state where nothing will change.void
suspendedStateChanged
(boolean suspended) Notification that the GTaskManager has been suspended or resumed.void
taskCompleted
(GScheduledTask task, GTaskResult result) Notification that a task is no longer running regardless of whether it completed normally, was cancelled, or threw an unhandled exception.void
taskGroupCompleted
(GTaskGroup taskGroup) Notification that the GTaskGroup has completed running.void
taskGroupScheduled
(GTaskGroup group) Notification that a GTaskGroup has been scheduled.void
taskGroupStarted
(GTaskGroup taskGroup) Notification that a new GTaskGroup has started to run.void
taskScheduled
(GScheduledTask scheduledTask) Notification that a new GTask has been scheduled to run.void
taskStarted
(GScheduledTask task) Notification that a task is starting to run
-
Method Details
-
initialize
void initialize()Called when a task listener is added so that the listener can get all the initial state of the taskManger while the taskManager is in a locked state where nothing will change. -
taskStarted
Notification that a task is starting to run- Parameters:
task
- the GTask that is starting to run
-
taskCompleted
Notification that a task is no longer running regardless of whether it completed normally, was cancelled, or threw an unhandled exception.- Parameters:
task
- the ScheduledTask that was running.result
- the result state for the task.
-
taskGroupScheduled
Notification that a GTaskGroup has been scheduled.- Parameters:
group
- the GTaskGroup that has been scheduled to run.
-
taskScheduled
Notification that a new GTask has been scheduled to run.- Parameters:
scheduledTask
- the GScheduledTask that wraps the GTask with scheduling information.
-
taskGroupStarted
Notification that a new GTaskGroup has started to run.- Parameters:
taskGroup
- the new GTaskGroup that is running.
-
taskGroupCompleted
Notification that the GTaskGroup has completed running.- Parameters:
taskGroup
- the GTaskGroup that has completed running.
-
suspendedStateChanged
void suspendedStateChanged(boolean suspended) Notification that the GTaskManager has been suspended or resumed.- Parameters:
suspended
- true if the GTaskManger has been suspended, or false if it has been resumed.
-