Subscribes with the broker to receive StateChange notifications.
向代理程序订阅以收到StateChange通知消息。
In this scenario the Sensor and the M.A.P.E. Loop are publishers (they publish StateChange and Restart topics, respectively).
在该场景中,Sensor和M.A.P.E . Loop是发布者(它们分别地发布StateChange和Restart主题)。
Sensor — This performs the monitoring of the log file and publishes a StateChange topic with the broker, every time a new state change entry is added to the log file.
Sensor——它执行对日志文件的监视,并且,每当添加一条新的状态改变条目到日志文件中,便利用Broker(代理)发布一个StateChange主题。
If the corresponding stop button is then pressed a StateChange notification is generated and a Restart action is invoked to get the application back to the running state, as discussed previously.
如果按下相应的停止按钮,会产生一个StateChange通知消息,并且会调用一个Restart动作,将应用程序恢复到运行状态,这一点在前面已经讲到了。
If the corresponding stop button is then pressed a StateChange notification is generated and a Restart action is invoked to get the application back to the running state, as discussed previously.
如果按下相应的停止按钮,会产生一个StateChange通知消息,并且会调用一个Restart动作,将应用程序恢复到运行状态,这一点在前面已经讲到了。
应用推荐