Class NativeMemoryMonitor


  • public class NativeMemoryMonitor
    extends java.lang.Object
    Monitors memory usage as reported by the underlying Operating System.
    Since:
    $Mastiff
    Author:
    Scott Fines
    • Constructor Summary

      Constructors 
      Constructor Description
      NativeMemoryMonitor​(long primaryIntervalMillis, double theWarningMemUsageRatio)  
      NativeMemoryMonitor​(long thePrimaryIntervalMillis, double theWarningMemUsageRatio, com.codahale.metrics.MetricRegistry theMetrics)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void registerMetrics​(com.codahale.metrics.MetricRegistry theMetricRegistry)  
      void reportCurrentUsage()  
      void start()  
      void stop()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • NativeMemoryMonitor

        public NativeMemoryMonitor​(long primaryIntervalMillis,
                                   double theWarningMemUsageRatio)
      • NativeMemoryMonitor

        public NativeMemoryMonitor​(long thePrimaryIntervalMillis,
                                   double theWarningMemUsageRatio,
                                   com.codahale.metrics.MetricRegistry theMetrics)
    • Method Detail

      • registerMetrics

        public void registerMetrics​(com.codahale.metrics.MetricRegistry theMetricRegistry)
      • start

        public void start()
      • stop

        public void stop()
      • reportCurrentUsage

        public void reportCurrentUsage()