标签: corda
根据https://docs.corda.net/releases/release-V3.0/key-concepts-node.html?highlight=drain#draining-mode
当我将drainingMode设置为true时。如何根据以下内容监控飞行中的流量: As their number - which can be monitored through RPC - reaches zero, it is safe to shut the node down.
As their number - which can be monitored through RPC - reaches zero, it is safe to shut the node down.
答案 0 :(得分:0)
确认DrainingMode已使用this
然后,您可以使用stateMachinesFeed或stateMachinesSnapshot查询状态机,分别详细说明here和here。
stateMachinesSnapshot将返回StateMachineInfo列表,每个列表代表一个实时流。您可以询问StateMachineInfo以获取有关流程的详细信息,包括它的启动等等。
stateMachinesFeed还提供了一个可观察的未来状态机添加/删除。您可以将其用于其他监控。