-
Notifications
You must be signed in to change notification settings - Fork 15
/
lnmpcheck.php
64 lines (36 loc) · 1.08 KB
/
lnmpcheck.php
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
<?php
/**
* @file lnmpcheck.php
* @author zhonghuali241@163.com
* @date 2015-1-21
* @desc
*/
interface LnmpCheckBase {
public function check();//实际检查
public function printReason();//打印错误原因
public function printData();//打印相关检测相关数据
}
interface LnmpInfoBase {
public function printInfo();//打印相关信息
}
interface LnmpBottleneckBase {
public function find();//找出系统瓶颈
}
abstract class LnmpCheck implements LnmpCheckBase{
public $priority = 2048; //检测优先级,数字越小,优先级越大
public $fall = true; //检测到某一项出错后是否继续往下执行
public function printReason(){
}
public function printData(){
}
public function setPriority($priority){
$this->priority = $priority;
}
public function setfall($fall){
$this->fall = $fall;
}
}
abstract class LnmpInfo implements LnmpInfoBase{
}
abstract class LnmpBottleneck implements LnmpBottleneckBase {
}