1 | <?php |
||
16 | class ActiveMQSendReciveAckCheck extends AbstractActiveMQCheck |
||
17 | { |
||
18 | const CHECK = 'activemq-send-recive-ack-performCheck'; |
||
19 | |||
20 | const TEST_DESTINATION = '/queue/test'; |
||
21 | const TEST_BODY = 'The story is about a plain conjurer and a starship captain. It takes place in a galaxy-spanning theocracy.'; |
||
22 | const TEST_TIME_OUT = 10; |
||
23 | |||
24 | /** |
||
25 | * @var StatefulStomp |
||
26 | */ |
||
27 | private $statefulStomp; |
||
28 | |||
29 | /** |
||
30 | * @var string |
||
31 | */ |
||
32 | private $destination = self::TEST_DESTINATION; |
||
33 | |||
34 | /** |
||
35 | * @var string |
||
36 | */ |
||
37 | private $body = self::TEST_BODY; |
||
38 | |||
39 | /** |
||
40 | * @var int |
||
41 | */ |
||
42 | private $timeOut = self::TEST_TIME_OUT; |
||
43 | |||
44 | /** |
||
45 | * ActiveMQSendReciveAckCheck constructor. |
||
46 | * |
||
47 | * @param null $checkNode |
||
48 | * @param StatefulStomp $statefulStomp |
||
49 | * @param string $destination |
||
50 | * @param string $body |
||
51 | * @param int $timeOut |
||
52 | */ |
||
53 | 5 | public function __construct( |
|
75 | |||
76 | /** |
||
77 | * test activeMQ send&recive&acknowledgment. |
||
78 | * |
||
79 | * @throws ActiveMQReceiveAckCheckException |
||
80 | * @throws ActiveMQSendAckCheckException |
||
81 | * @throws ActiveMQSendReciveAckCheckException |
||
82 | */ |
||
83 | 5 | public function performCheck() |
|
116 | |||
117 | /** |
||
118 | * @return StatefulStomp |
||
119 | */ |
||
120 | 5 | public function getStatefulStomp() |
|
124 | |||
125 | /** |
||
126 | * @return string |
||
127 | */ |
||
128 | 5 | public function getDestination() |
|
132 | |||
133 | /** |
||
134 | * @return string |
||
135 | */ |
||
136 | 5 | public function getBody() |
|
140 | |||
141 | /** |
||
142 | * @return int |
||
143 | */ |
||
144 | 3 | public function getTimeOut() |
|
148 | |||
149 | /** |
||
150 | * @param StatefulStomp $statefulStomp |
||
151 | */ |
||
152 | 5 | protected function setStatefulStomp(StatefulStomp $statefulStomp) |
|
156 | |||
157 | /** |
||
158 | * @param string $destination |
||
159 | */ |
||
160 | 5 | protected function setDestination($destination) |
|
164 | |||
165 | /** |
||
166 | * @param string $body |
||
167 | */ |
||
168 | 5 | protected function setBody($body) |
|
172 | |||
173 | /** |
||
174 | * @param int $timeOut |
||
175 | */ |
||
176 | 5 | protected function setTimeOut($timeOut) |
|
180 | } |
||
181 |