-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathConsumer.php
More file actions
45 lines (38 loc) · 1 KB
/
Consumer.php
File metadata and controls
45 lines (38 loc) · 1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
<?php
require_once __DIR__ . '/BaseObject.php';
class Consumer extends BaseObject
{
/** 开启多少个消费者 */
public $numprocs = 1;
/** 当前配置的唯一标志 */
public $program;
/** 执行的命令 */
public $command;
/** 开启消费者副本的数量 */
public $duplicate = 1;
/** 当前工作的目录 */
public $directory;
/** 程序执行日志记录 */
public $logfile = '';
/** 消费进程的唯一ID */
public $uniqid;
/** 进程IDpid */
public $pid;
/** 进程状态 */
public $state = self::NOMINAL;
/** 自启动 */
public $auto_restart = false;
public $process;
/** 启动时间 */
public $uptime;
const RUNNING = 'running';
const STOP = 'stoped';
const NOMINAL = 'nominal';
const RESTART = 'restart';
const STOPING = 'stoping';
const STARTING = 'stating';
const ERROR = 'error';
const BLOCKED = 'blocked';
const EXITED = 'exited';
const FATEL = 'fatel';
}