ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ILIAS\BackgroundTasks\Implementation\TaskManager\MockObserver Class Reference
+ Inheritance diagram for ILIAS\BackgroundTasks\Implementation\TaskManager\MockObserver:
+ Collaboration diagram for ILIAS\BackgroundTasks\Implementation\TaskManager\MockObserver:

Public Member Functions

 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...
 

Detailed Description

Definition at line 29 of file MockObserver.php.

Member Function Documentation

◆ heartbeat()

ILIAS\BackgroundTasks\Implementation\TaskManager\MockObserver::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 53 of file MockObserver.php.

53 : void
54 {
55 // Does nothing.
56 }

◆ notifyCurrentTask()

ILIAS\BackgroundTasks\Implementation\TaskManager\MockObserver::notifyCurrentTask ( Task  $task)

If the current task changes notify the observer.

This also triggers a heartbeat.

Implements ILIAS\BackgroundTasks\Observer.

Definition at line 44 of file MockObserver.php.

44 : void
45 {
46 // Does nothing.
47 }

◆ notifyPercentage()

ILIAS\BackgroundTasks\Implementation\TaskManager\MockObserver::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 39 of file MockObserver.php.

39 : void
40 {
41 // Does nothing.
42 }

◆ notifyState()

ILIAS\BackgroundTasks\Implementation\TaskManager\MockObserver::notifyState ( int  $state)
Parameters
$stateint

Implements ILIAS\BackgroundTasks\Observer.

Definition at line 34 of file MockObserver.php.

34 : void
35 {
36 // Does nothing.
37 }

The documentation for this class was generated from the following file: