Re: Getting total number of bolt tasks from Storm's REST API

2016-09-15 Thread Navin Ipe
Help. Anyone? On Thu, Sep 15, 2016 at 3:47 PM, Navin Ipe wrote: > Hi, > > I've been using Storm's REST API (http://domainName:8080/api/ > v1/topology/summary) to retrieve the number of bolts in my topology. > > > > > > > *JSONObject topology = new

Getting total number of bolt tasks from Storm's REST API

2016-09-15 Thread Navin Ipe
Hi, I've been using Storm's REST API ( http://domainName:8080/api/v1/topology/summary) to retrieve the number of bolts in my topology. *JSONObject topology = new JSONObject(jsonText);JSONArray topos = (JSONArray) topology.get(bolts);for(int i = 0; i < topos.length(); ++i) { JSONObject j =