MCPcopy Create free account
hub / github.com/apache/storm / update

Function update

storm-webapp/src/main/webapp/js/visualization.js:394–407  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

392}
393
394var update = function() {
395 if(visNS.shouldUpdate) {
396 $.ajax({
397 url: "/api/v1/topology/"+$.url("?id")+"/visualization?sys="+$.url("?sys"),
398 success: function (data, status, jqXHR) {
399 json = data;
400 parseResponse(data);
401 setTimeout(update, visNS.updateFreqMs);
402 }
403 });
404 } else {
405 setTimeout(update, visNS.updateFreqMs);
406 }
407}
408
409function secondsToString(seconds) {
410 var numDays = Math.floor(seconds / 86400);

Callers 1

visualization.jsFile · 0.85

Calls 1

parseResponseFunction · 0.85

Tested by

no test coverage detected