|
ILIAS
trunk Revision v12.0_alpha-377-g3641b37b9db
|
Class PersistingObserver. More...
Inheritance diagram for ILIAS\BackgroundTasks\Implementation\TaskManager\PersistingObserver:
Collaboration diagram for ILIAS\BackgroundTasks\Implementation\TaskManager\PersistingObserver:Public Member Functions | |
| __construct (protected Bucket $bucket, protected Persistence $persistence) | |
| notifyState (int $state) | |
| notifyPercentage (Task $task, int $percentage) | |
| You can change the progress of a currently running task. More... | |
| notifyCurrentTask (Task $task) | |
| If the current task changes notify the observer. More... | |
| heartbeat () | |
| I'm still alive! If your calculation takes a really long time don't forget to use the heartbeat. More... | |
| notifyState (int $state) | |
| If the bucket goes into another state notify the observer. More... | |
| notifyPercentage (Task $task, int $percentage) | |
| You can change the progress of a currently running task. More... | |
| notifyCurrentTask (Task $task) | |
| If the current task changes notify the observer. More... | |
| heartbeat () | |
| I'm still alive! If your calculation takes a really long time don't forget to use the heartbeat. More... | |
Class PersistingObserver.
Definition at line 31 of file PersistingObserver.php.
| ILIAS\BackgroundTasks\Implementation\TaskManager\PersistingObserver::__construct | ( | protected Bucket | $bucket, |
| protected Persistence | $persistence | ||
| ) |
Definition at line 33 of file PersistingObserver.php.
| ILIAS\BackgroundTasks\Implementation\TaskManager\PersistingObserver::heartbeat | ( | ) |
I'm still alive! If your calculation takes a really long time don't forget to use the heartbeat.
Otherwise the bucket might be killed while still running. All notify tasks of the observer also trigger a heartbeat.
Implements ILIAS\BackgroundTasks\Observer.
Definition at line 65 of file PersistingObserver.php.
| ILIAS\BackgroundTasks\Implementation\TaskManager\PersistingObserver::notifyCurrentTask | ( | Task | $task | ) |
If the current task changes notify the observer.
This also triggers a heartbeat.
Implements ILIAS\BackgroundTasks\Observer.
Definition at line 54 of file PersistingObserver.php.
| ILIAS\BackgroundTasks\Implementation\TaskManager\PersistingObserver::notifyPercentage | ( | Task | $task, |
| int | $percentage | ||
| ) |
You can change the progress of a currently running task.
This also triggers a heartbeat.
Implements ILIAS\BackgroundTasks\Observer.
Definition at line 47 of file PersistingObserver.php.
| ILIAS\BackgroundTasks\Implementation\TaskManager\PersistingObserver::notifyState | ( | int | $state | ) |
| $state | int |
Implements ILIAS\BackgroundTasks\Observer.
Definition at line 40 of file PersistingObserver.php.