storm-http
v2.1.0
Published
http client for the storm rest-api
Downloads
5
Readme
Storm UI Client
Http client for the apache storm ui rest api.
####installing
npm i storm-http
####using
var storm = require('storm-http');
var client = storm.createClient({
host: 'https://my.storm.cluster',
username: 'admin',
password: 'password'
});
client.topologies(function(err, res){
if(err){
throw err;
}
console.log(res);
});
####methods
topologies(cb)
: get the summary of all running topologiestopology(id, [timespan], cb)
: get topology info by id (default timespan all-time)workers(id, cb)
: get the list of workers for a topologycluster(cb)
: get the cluster summaryclusterConfig(cb)
: get the cluster configurationcomponent(topologyId, componentId, timespan, cb)
: get component info from the specified topology (default timespan all-time)supervisor(cb)
: get the supervisor summarykill(id, [waitTime], cb)
: kill a topology (default wait-time 30 seconds)rebalance(id, [waitTime], cb)
: rebalance a topology (default wait-time 30 seconds)activate(id, cb)
: activate a topologydeactivate(id, cb)
: deactivate a topology