ILIAS  trunk Revision v5.2.0beta1-34132-g2d4d73d4a0
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)
 
 notifyCurrentTask (Task $task)
 
 heartbeat ()
 I'm still alive! If your calculation takes a really long time don't forget to use the heartbeat. More...
 
- Public Member Functions inherited from ILIAS\BackgroundTasks\Observer
 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...
 

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)

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 
)

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: