Control
Less than 1 minute
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 tasks for delayed execution.
Properties
serverConfig
public Config $serverConfig
cmd
private string $cmd
pidfile
private string $pidfile
guid
public string $guid
instance
private array $instance
Methods
__construct
public __construct({Array})
Parameters
Parameter | Type | Description |
---|---|---|
$autostart | bool | |
$serverConfig | Map | |
$instance_key | string | |
$require_connect | bool |
getInstance
public getInstance({Array})
Parameters
Parameter | Type | Description |
---|---|---|
$autostart | bool | |
$config | Map | |
$require_connect | bool |
isRunning
public isRunning({Array})
start
public start({Array})
Parameters
Parameter | Type | Description |
---|---|---|
$timeout | int |
stop
public stop({Array})
connect
protected connect({Array})
Parameters
Parameter | Type | Description |
---|---|---|
$protocol | Protocol | |
$guid | string |
Generated by Hazaar API Doc Generator