\Hazaar\Warlock
Control
Control class for Warlock

This class creates a connection to the Warlock server from within a Hazaar application allowing the application to send triggers or schedule jobs for delayed execution.

Tags

Since

2.0.0

Module

warlock

Summary
Methods Properties Constants
No constants
Properties
$cmd
$cmd
$config
$config
Static
$instance
$instance
$outputfile
$outputfile
$pidfile
$pidfile
$server_pid
$server_pid
Inherited
$payloadBuffer
$payloadBuffer
Inherited
$protocol
$protocol
Inherited
$socket
$socket
Inherited
$subscriptions
$subscriptions
Methods
__construct()
__construct($autostart = null, $config = null)

Parameters

$autostart

No description

$config

No description

cancel()
cancel($job_id)

Parameters

$job_id

No description

Static
getInstance()
getInstance($autostart = null, $config = null)

Parameters

$autostart

No description

$config

No description

isRunning()
isRunning()
runDelay()
runDelay($delay, $code, $params = null, $tag = null, $overwrite = false)

Parameters

$delay

No description

$code\Closure

No description

$params

No description

$tag

No description

$overwrite

No description

schedule()
schedule($when, $code, $params = null, $tag = null, $overwrite = false)

Parameters

$when

No description

$code\Closure

No description

$params

No description

$tag

No description

$overwrite

No description

service()
service($name)

Parameters

$name

No description

start()
start($timeout = null)

Parameters

$timeout

No description

startService()
startService($name)

Parameters

$name

No description

status()
status()
stop()
stop()
stopService()
stopService($name)

Parameters

$name

No description

Inherited
setErrorHandler()
setErrorHandler($methodName)

Parameters

$methodName

No description

Inherited
setExceptionHandler()
setExceptionHandler($methodName)

Parameters

$methodName

No description

Inherited
spawn()
spawn($service, $params = Array ( ) )

Parameters

$service

No description

$params

No description

Inherited
subscribe()
subscribe($event, $callback, $filter = null)

Parameters

$event

No description

$callback

No description

$filter

No description

Inherited
trigger()
trigger($event, $data = null, $echo_self = false)

Parameters

$event

No description

$data

No description

$echo_self

No description

Inherited
unsubscribe()
unsubscribe($event)

Parameters

$event

No description