1
|
|
|
<?php declare(strict_types=1); |
2
|
|
|
|
3
|
|
|
namespace ApiClients\Client\RabbitMQ\Management\Resource\Queue; |
4
|
|
|
|
5
|
|
|
use ApiClients\Foundation\Hydrator\Annotation\EmptyResource; |
6
|
|
|
use ApiClients\Foundation\Resource\AbstractResource; |
7
|
|
|
|
8
|
|
|
/** |
9
|
|
|
* @EmptyResource("Queue\EmptyBackingQueueStatus") |
10
|
|
|
*/ |
11
|
|
|
abstract class BackingQueueStatus extends AbstractResource implements BackingQueueStatusInterface |
12
|
|
|
{ |
13
|
|
|
/** |
14
|
|
|
* @var string |
15
|
|
|
*/ |
16
|
|
|
protected $mode; |
17
|
|
|
|
18
|
|
|
/** |
19
|
|
|
* @var int |
20
|
|
|
*/ |
21
|
|
|
protected $q1; |
22
|
|
|
|
23
|
|
|
/** |
24
|
|
|
* @var int |
25
|
|
|
*/ |
26
|
|
|
protected $q2; |
27
|
|
|
|
28
|
|
|
/** |
29
|
|
|
* @var array |
30
|
|
|
*/ |
31
|
|
|
protected $delta; |
32
|
|
|
|
33
|
|
|
/** |
34
|
|
|
* @var int |
35
|
|
|
*/ |
36
|
|
|
protected $q3; |
37
|
|
|
|
38
|
|
|
/** |
39
|
|
|
* @var int |
40
|
|
|
*/ |
41
|
|
|
protected $q4; |
42
|
|
|
|
43
|
|
|
/** |
44
|
|
|
* @var int |
45
|
|
|
*/ |
46
|
|
|
protected $len; |
47
|
|
|
|
48
|
|
|
/** |
49
|
|
|
* @var mixed |
50
|
|
|
*/ |
51
|
|
|
protected $target_ram_count; |
52
|
|
|
|
53
|
|
|
/** |
54
|
|
|
* @var int |
55
|
|
|
*/ |
56
|
|
|
protected $next_seq_id; |
57
|
|
|
|
58
|
|
|
/** |
59
|
|
|
* @var float |
60
|
|
|
*/ |
61
|
|
|
protected $avg_ingress_rate; |
62
|
|
|
|
63
|
|
|
/** |
64
|
|
|
* @var float |
65
|
|
|
*/ |
66
|
|
|
protected $avg_egress_rate; |
67
|
|
|
|
68
|
|
|
/** |
69
|
|
|
* @var float |
70
|
|
|
*/ |
71
|
|
|
protected $avg_ack_ingress_rate; |
72
|
|
|
|
73
|
|
|
/** |
74
|
|
|
* @var float |
75
|
|
|
*/ |
76
|
|
|
protected $avg_ack_egress_rate; |
77
|
|
|
|
78
|
|
|
/** |
79
|
|
|
* @return string |
80
|
|
|
*/ |
81
|
|
|
public function mode(): string |
82
|
|
|
{ |
83
|
|
|
return $this->mode; |
84
|
|
|
} |
85
|
|
|
|
86
|
|
|
/** |
87
|
|
|
* @return int |
88
|
|
|
*/ |
89
|
|
|
public function q1(): int |
90
|
|
|
{ |
91
|
|
|
return $this->q1; |
92
|
|
|
} |
93
|
|
|
|
94
|
|
|
/** |
95
|
|
|
* @return int |
96
|
|
|
*/ |
97
|
|
|
public function q2(): int |
98
|
|
|
{ |
99
|
|
|
return $this->q2; |
100
|
|
|
} |
101
|
|
|
|
102
|
|
|
/** |
103
|
|
|
* @return array |
104
|
|
|
*/ |
105
|
|
|
public function delta(): array |
106
|
|
|
{ |
107
|
|
|
return $this->delta; |
108
|
|
|
} |
109
|
|
|
|
110
|
|
|
/** |
111
|
|
|
* @return int |
112
|
|
|
*/ |
113
|
|
|
public function q3(): int |
114
|
|
|
{ |
115
|
|
|
return $this->q3; |
116
|
|
|
} |
117
|
|
|
|
118
|
|
|
/** |
119
|
|
|
* @return int |
120
|
|
|
*/ |
121
|
|
|
public function q4(): int |
122
|
|
|
{ |
123
|
|
|
return $this->q4; |
124
|
|
|
} |
125
|
|
|
|
126
|
|
|
/** |
127
|
|
|
* @return int |
128
|
|
|
*/ |
129
|
|
|
public function len(): int |
130
|
|
|
{ |
131
|
|
|
return $this->len; |
132
|
|
|
} |
133
|
|
|
|
134
|
|
|
/** |
135
|
|
|
* @return mixed |
136
|
|
|
*/ |
137
|
|
|
public function targetRamCount(): mixed |
138
|
|
|
{ |
139
|
|
|
return $this->target_ram_count; |
140
|
|
|
} |
141
|
|
|
|
142
|
|
|
/** |
143
|
|
|
* @return int |
144
|
|
|
*/ |
145
|
|
|
public function nextSeqId(): int |
146
|
|
|
{ |
147
|
|
|
return $this->next_seq_id; |
148
|
|
|
} |
149
|
|
|
|
150
|
|
|
/** |
151
|
|
|
* @return float |
152
|
|
|
*/ |
153
|
|
|
public function avgIngressRate(): float |
154
|
|
|
{ |
155
|
|
|
return $this->avg_ingress_rate; |
156
|
|
|
} |
157
|
|
|
|
158
|
|
|
/** |
159
|
|
|
* @return float |
160
|
|
|
*/ |
161
|
|
|
public function avgEgressRate(): float |
162
|
|
|
{ |
163
|
|
|
return $this->avg_egress_rate; |
164
|
|
|
} |
165
|
|
|
|
166
|
|
|
/** |
167
|
|
|
* @return float |
168
|
|
|
*/ |
169
|
|
|
public function avgAckIngressRate(): float |
170
|
|
|
{ |
171
|
|
|
return $this->avg_ack_ingress_rate; |
172
|
|
|
} |
173
|
|
|
|
174
|
|
|
/** |
175
|
|
|
* @return float |
176
|
|
|
*/ |
177
|
|
|
public function avgAckEgressRate(): float |
178
|
|
|
{ |
179
|
|
|
return $this->avg_ack_egress_rate; |
180
|
|
|
} |
181
|
|
|
} |
182
|
|
|
|