\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
$id
No constants
Properties
$closing
$closing
$cmd
$cmd
$config
$config
$id
$id
$key
$key
$outputfile
$outputfile
$pidfile
$pidfile
$protocol
$protocol
$server_pid
$server_pid
$socket
$socket
Methods
__construct()
__construct($autostart = null)

Parameters

$autostart

No description

__destruct()
__destruct()
cancel()
cancel($job_id)

Parameters

$job_id

No description

connect()
connect()
connected()
connected()
disconnect()
disconnect($send_close = true)

Parameters

$send_close

No description

isRunning()
isRunning()
ping()
ping($client)

Parameters

$client

No description

recv()
recv($payload = null, $tv_sec = 3, $tv_usec = 0)

Parameters

$payload

No description

$tv_sec

No description

$tv_usec

No description

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

send()
send($command, $payload = null)

Parameters

$command

No description

$payload

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

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

Parameters

$event

No description

$filter

No description

trigger()
trigger($event, $data = null)

Parameters

$event

No description

$data

No description

wait()
wait($timeout = 0)

Parameters

$timeout

No description