|
|
@ -309,14 +309,18 @@ class Monitor extends BeanModel {
|
|
|
|
|
|
|
|
|
|
|
|
previousBeat = bean;
|
|
|
|
previousBeat = bean;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (! this.isStop) {
|
|
|
|
this.heartbeatInterval = setTimeout(beat, this.interval * 1000);
|
|
|
|
this.heartbeatInterval = setTimeout(beat, this.interval * 1000);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
beat();
|
|
|
|
beat();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
stop() {
|
|
|
|
stop() {
|
|
|
|
clearTimeout(this.heartbeatInterval);
|
|
|
|
clearTimeout(this.heartbeatInterval);
|
|
|
|
|
|
|
|
this.isStop = true;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|