8000 make metrics trigger periodic by huijunwu · Pull Request #3384 · apache/incubator-heron · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
This repository was archived by the owner on Mar 3, 2023. It is now read-only.

make metrics trigger periodic #3384

Merged
merged 1 commit into from
Oct 29, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -102,19 +102,10 @@ public HealthManagerMetrics(int metricsMgrPort) throws IOException {
int interval = (int) systemConfig.getHeronMetricsExportInterval().getSeconds();


looper.registerTimerEvent(Duration.ofSeconds(interval), new Runnable() {
looper.registerPeriodicEvent(Duration.ofSeconds(interval), new Runnable() {
@Override
public void run() {
sendMetrics();
// next timer task
if (looper != null) {
looper.registerTimerEvent(Duration.ofSeconds(interval), new Runnable() {
@Override
public void run() {
sendMetrics();
}
});
}
}
});
}
Expand Down
0