HADOOP-11603. Metric Snapshot log can be changed #MetricsSystemImpl.java since all the services will be initialized. Contributed By Brahma Reddy Battula.
This commit is contained in:
parent
abb9fa7fc6
commit
13501053dd
|
@ -33,7 +33,6 @@ import javax.management.ObjectName;
|
||||||
import com.google.common.collect.Lists;
|
import com.google.common.collect.Lists;
|
||||||
import com.google.common.collect.Maps;
|
import com.google.common.collect.Maps;
|
||||||
import com.google.common.annotations.VisibleForTesting;
|
import com.google.common.annotations.VisibleForTesting;
|
||||||
import java.util.Locale;
|
|
||||||
import static com.google.common.base.Preconditions.*;
|
import static com.google.common.base.Preconditions.*;
|
||||||
|
|
||||||
import org.apache.commons.configuration2.PropertiesConfiguration;
|
import org.apache.commons.configuration2.PropertiesConfiguration;
|
||||||
|
@ -372,7 +371,8 @@ public class MetricsSystemImpl extends MetricsSystem implements MetricsSource {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}, millis, millis);
|
}, millis, millis);
|
||||||
LOG.info("Scheduled snapshot period at "+ (period/1000) +" second(s).");
|
LOG.info("Scheduled Metric snapshot period at " + (period / 1000)
|
||||||
|
+ " second(s).");
|
||||||
}
|
}
|
||||||
|
|
||||||
synchronized void onTimerEvent() {
|
synchronized void onTimerEvent() {
|
||||||
|
|
Loading…
Reference in New Issue