TYPO3CMS  8
 All Classes Namespaces Files Functions Variables Pages
SleepTask Class Reference
Inheritance diagram for SleepTask:
AbstractTask

Public Member Functions

 execute ()
 
 getAdditionalInformation ()
 
- Public Member Functions inherited from AbstractTask
 __construct ()
 
 execute ()
 
 getAdditionalInformation ()
 
 setTaskUid ($id)
 
 getTaskUid ()
 
 getTaskTitle ()
 
 getTaskDescription ()
 
 getTaskClassName ()
 
 isDisabled ()
 
 setDisabled ($flag)
 
 setExecutionTime ($timestamp)
 
 getTaskGroup ()
 
 setTaskGroup ($taskGroup)
 
 getExecutionTime ()
 
 setDescription ($description)
 
 getDescription ()
 
 setScheduler ()
 
 unsetScheduler ()
 
 setExecution (\TYPO3\CMS\Scheduler\Execution $execution)
 
 getExecution ()
 
 getNextDueExecution ()
 
 areMultipleExecutionsAllowed ()
 
 isExecutionRunning ()
 
 markExecution ()
 
 unmarkExecution ($executionID,\Exception $failure=null)
 
 unmarkAllExecutions ()
 
 save ()
 
 stop ()
 
 remove ()
 
 getType ()
 

Public Attributes

 $sleepTime = 10
 
- Public Attributes inherited from AbstractTask
const TYPE_SINGLE = 1
 
const TYPE_RECURRING = 2
 

Additional Inherited Members

- Protected Attributes inherited from AbstractTask
 $scheduler
 
 $taskUid
 
 $disabled = false
 
 $execution
 
 $executionTime = 0
 
 $description = ''
 
 $taskGroup
 

Detailed Description

Provides a task that sleeps for some time This is useful for testing parallel executions

Definition at line 21 of file SleepTask.php.

Member Function Documentation

execute ( )

Function executed from the Scheduler. Goes to sleep ;-)

Returns
bool

Definition at line 36 of file SleepTask.php.

References SleepTask\$sleepTime.

getAdditionalInformation ( )

This method returns the sleep duration as additional information

Returns
string Information to display

Definition at line 51 of file SleepTask.php.

References $GLOBALS, and SleepTask\$sleepTime.

Member Data Documentation

$sleepTime = 10

Definition at line 28 of file SleepTask.php.

Referenced by SleepTask\execute(), and SleepTask\getAdditionalInformation().