Class MemoryLeakDetector

java.lang.Object
host.anzo.commons.emergency.memory.MemoryLeakDetector
All Implemented Interfaces:
IMetric, EventListener, NotificationListener

public class MemoryLeakDetector extends Object implements NotificationListener, IMetric
  • Method Details

    • reportMemoryStats

      public void reportMemoryStats()
    • handleNotification

      public void handleNotification(@NotNull @NotNull Notification notification, Object handback)
      Specified by:
      handleNotification in interface NotificationListener
    • registerListener

      public void registerListener(IMemoryListener listener)
    • onMemoryLeakDetected

      public void onMemoryLeakDetected()
    • getStats

      public String getStats()
    • getMemoryUsageStatistics

      public String @NotNull [] getMemoryUsageStatistics()
    • getMetric

      public List<MetricResult> getMetric()
      Specified by:
      getMetric in interface IMetric