Pman_Module

+------------------------------------------------------------+ | apnscp | +------------------------------------------------------------+ | Copyright (c) Apis Networks | +------------------------------------------------------------+ | Licensed under Artistic License 2.0 | +------------------------------------------------------------+ | Author: Matt Saladna (msaladna@apisnetworks.com) | +------------------------------------------------------------+
extends Module\Skeleton\Standard
Methods Summary
public
public
# kill( int $pid )
Terminal a process with SIGKILL
public
# signal( int $pid , int $signal = 9 )
Send a POSIX signal a process
public
# stat( int $pid )
Stat a running process
public
# pcount( )
Get active process count Count is fetched from cache. {@see \flush} may be necessary
public
# flush( )
Flush process accumulator cache
public
# get_processes( )
Get all processes
public
# run( string $cmd , array $args = NULL, array $env = NULL, array $options = array ( ) )
Run a process Sample response: Array ( [stdin] => [stdout] => Hello World!!! [0] => Hello World!!! [stderr] => [1] => [output] => Hello World!!! [errno] => 0 [return] => 0 [error] => [success] => 1 )
public
# schedule_api_cmd( $cmd , array|null $args = array ( ), string $when = 'now' )
Background an apnscp function with an optional delay
Methods inherited from Module\Skeleton\Standard
__construct(), setUserParameters(), autoloadModule(), __wakeup(), _invoke(), __debugInfo(), getExportedFunctions(), _reset(), cleanUserParameters(), query()
Constants Summary
public string PROC_PATH
# '/proc'
public string PROC_CACHE_KEY
# 'pman.all'
public int MAX_WAIT_TIME
# 600
public int _NSIG
# 65
public int SIGKILL
# 9
Constants inherited from Module\Skeleton\Standard
DEPENDENCY_MAP
Properties Summary
public $exportedFunctions
# array ( '*' => 15, 'schedule_api_cmd_admin' => 8, )
Properties inherited from Module\Skeleton\Standard
$exportedFunctions, $username, $password, $domain, $user_id, $group_id, $permission_level, $session_id, $site, $site_id