PHP Class Scalr_SchedulerTask

Inheritance: extends Scalr_Model
显示文件 Open project: scalr/scalr Class Usage Examples

Public Properties

Property Type Description
$accountId
$comments
$config
$envId
$id
$lastStartTime
$name
$restartEvery
$scriptId
$startTime
$status
$targetId
$targetServerIndex
$targetType
$timezone
$type

Protected Properties

Property Type Description
$dbMessageKeyNotFound
$dbPrimaryKey
$dbPropertyMap
$dbTableName

Public Methods

Method Description
execute ( $manual = false ) : boolean Executes the task
getTypeByName ( $name )
init ( $className = null ) : Scalr_SchedulerTask
isExecutedRecently ( ) : boolean Checks whether this task was executed recently
updateLastStartTime ( )

Method Details

execute() public method

Executes the task
public execute ( $manual = false ) : boolean
return boolean $manual optional Whether task is executed by manual

getTypeByName() public static method

public static getTypeByName ( $name )

init() public static method

public static init ( $className = null ) : Scalr_SchedulerTask
return Scalr_SchedulerTask

isExecutedRecently() public method

Checks whether this task was executed recently
public isExecutedRecently ( ) : boolean
return boolean Returns TRUE if either the task was executed less than 30 seconds ago or it has never been executed.

updateLastStartTime() public method

public updateLastStartTime ( )

Property Details

$accountId public_oe property

public $accountId

$comments public_oe property

public $comments

$config public_oe property

public $config

$dbMessageKeyNotFound protected_oe property

protected $dbMessageKeyNotFound

$dbPrimaryKey protected_oe property

protected $dbPrimaryKey

$dbPropertyMap protected_oe property

protected $dbPropertyMap

$dbTableName protected_oe property

protected $dbTableName

$envId public_oe property

public $envId

$id public_oe property

public $id

$lastStartTime public_oe property

public $lastStartTime

$name public_oe property

public $name

$restartEvery public_oe property

public $restartEvery

$scriptId public_oe property

public $scriptId

$startTime public_oe property

public $startTime

$status public_oe property

public $status

$targetId public_oe property

public $targetId

$targetServerIndex public_oe property

public $targetServerIndex

$targetType public_oe property

public $targetType

$timezone public_oe property

public $timezone

$type public_oe property

public $type