Skip to content

Commit

Permalink
Added a shutdown method to MetricsServiceImpl
Browse files Browse the repository at this point in the history
  • Loading branch information
tsegismont committed Jun 5, 2015
1 parent 7ea1a4a commit ea5fc37
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,7 @@ void destroy() {

private void stopMetricsService() {
state = State.STOPPING;
metricsService.shutdown();
if (session != null) {
try {
session.close();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -700,4 +700,7 @@ private int getTTL(Metric<?> metric) {
return ttl;
}

public void shutdown() {
metricsTasks.shutdown();
}
}

0 comments on commit ea5fc37

Please sign in to comment.