linkedin/sensei — pull request #53 by chtyim (2012-08-29 17:41:26+00:00)
Title: Allow metrics related threads and mbeans cleanup on sensei server shutdown

Original, the metrics related threads and mbeans are cleanup by shutdown hook. The major changes is to replaces usage of Metrics.xxx() to MetricFactory.xxx(), which the MetricFactory provides static start and stop methods that will be called when sensei server start/stop accordingly, allowing proper resources cleanup.