System_ProcWatch
[ class tree: System_ProcWatch ] [ index: System_ProcWatch ] [ all elements ]

Class: System_ProcWatch

Source Location: /System_ProcWatch-0.4.3/System/ProcWatch.php

Class Overview


System_ProcWatch


Author(s):

Version:

  • $Revision: 304228 $

Variables

Methods


Inherited Variables

Inherited Methods


Class Details

[line 52]
System_ProcWatch

Monitor processes

Usage:

  1.  $cf System_ProcWatch_Config::fromXmlFile('/etc/procwatch.xml');
  2.  $pw &new System_ProcWatch($cf);
  3.  $pw->run();

  • Author: Michael Wallner <mike@php.net>
  • Version: $Revision: 304228 $
  • Access: public


[ Top ]


Class Variables

$parser =  null

[line 60]

Parser
  • Access: public



[ Top ]



Method Detail

__construct (Constructor)   [line 113]

object System_ProcWatch __construct( string $config)

Constructor (ZE2)
  • Access: protected

Parameters:

string   $config   —  path to configuration file

[ Top ]

System_ProcWatch (Constructor)   [line 101]

object System_ProcWatch System_ProcWatch( array $config)

Constructor
  • Access: protected

Parameters:

array   $config   —  config array from System_ProcWatch_Config

[ Top ]

addConfig   [line 445]

void addConfig( array $config)

Add configuration
  • Access: public

Parameters:

array   $config   —  config array from System_ProcWatch_Config

[ Top ]

daemon   [line 170]

void daemon( int $interval, [string $ps_args = 'aux'])

Daemon mode
  • Access: public

Parameters:

int   $interval   —  seconds to sleep
string   $ps_args   —  ps' arguments

[ Top ]

run   [line 126]

void run( [string $ps_args = 'aux'])

Run
  • Access: public

Parameters:

string   $ps_args   —  ps' args

[ Top ]

setConfig   [line 432]

void setConfig( array $config)

Set configuration
  • Access: public

Parameters:

array   $config   —  config array from System_ProcWatch_Config

[ Top ]

_getPids   [line 349]

string _getPids( string $job)

Get processes' PIDs of a certain job
  • Access: public

Parameters:

string   $job   — 

[ Top ]


Documentation generated on Mon, 11 Mar 2019 15:39:51 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.