简体   繁体   中英

How can I get storm topology status via java code?

I'm very new at storm. I want to manage two topology which they need to inform about their status. Is it impossible that I understand status of topology is deactivated or not to submit another one in java class?

You can use the Thrift API:

  NimbusClient nimbusClient = NimbusClient.getConfiguredClient(Utils.readDefaultConfig())
  nimbusClient.getClient().getClusterInfo().get_topologies()
  …

See https://github.com/nathanmarz/storm/blob/master/storm-core/src/storm.thrift

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM