PHP Class Kohkimakimoto\Worker\Job\Job

Datei anzeigen Open project: kohkimakimoto/workerphp

Protected Properties

Property Type Description
$command
$config
$cronTime
$eventLoop
$id
$lastRunTime
$lockFile
$maxProcesses
$name
$nextRunTime

Public Methods

Method Description
__construct ( $id, $name, $command, $config )
addRuntimeEntryToJobInfo ( $pid )
deleteRuntimeEntryToJobInfo ( $pid )
getCommand ( )
getCommandParameters ( )
getId ( )
getInfo ( )
getInfoFilePath ( )
getLastRunTime ( )
getMaxProcesses ( )
getName ( )
getNextRunTime ( )
hasCronTime ( )
initInfoFile ( )
isLimitOfProcesses ( )
makeRuntimeJob ( )
numberOfRuntimeProcesses ( )
prefixOfRunFile ( )
secondsUntilNextRuntime ( $from = null )
setLastRunTime ( $lastRunTime )
toArray ( )
updateNextRunTime ( )

Method Details

__construct() public method

public __construct ( $id, $name, $command, $config )

addRuntimeEntryToJobInfo() public method

public addRuntimeEntryToJobInfo ( $pid )

deleteRuntimeEntryToJobInfo() public method

public deleteRuntimeEntryToJobInfo ( $pid )

getCommand() public method

public getCommand ( )

getCommandParameters() public method

getId() public method

public getId ( )

getInfo() public method

public getInfo ( )

getInfoFilePath() public method

public getInfoFilePath ( )

getLastRunTime() public method

public getLastRunTime ( )

getMaxProcesses() public method

public getMaxProcesses ( )

getName() public method

public getName ( )

getNextRunTime() public method

public getNextRunTime ( )

hasCronTime() public method

public hasCronTime ( )

initInfoFile() public method

public initInfoFile ( )

isLimitOfProcesses() public method

public isLimitOfProcesses ( )

makeRuntimeJob() public method

public makeRuntimeJob ( )

numberOfRuntimeProcesses() public method

prefixOfRunFile() public method

public prefixOfRunFile ( )

secondsUntilNextRuntime() public method

public secondsUntilNextRuntime ( $from = null )

setLastRunTime() public method

public setLastRunTime ( $lastRunTime )

toArray() public method

public toArray ( )

updateNextRunTime() public method

public updateNextRunTime ( )

Property Details

$command protected_oe property

protected $command

$config protected_oe property

protected $config

$cronTime protected_oe property

protected $cronTime

$eventLoop protected_oe property

protected $eventLoop

$id protected_oe property

protected $id

$lastRunTime protected_oe property

protected $lastRunTime

$lockFile protected_oe property

protected $lockFile

$maxProcesses protected_oe property

protected $maxProcesses

$name protected_oe property

protected $name

$nextRunTime protected_oe property

protected $nextRunTime