org.kuali.rice.krad.util
Class MemoryMonitor

java.lang.Object
  extended by org.kuali.rice.krad.util.MemoryMonitor

public class MemoryMonitor
extends Object


Nested Class Summary
static interface MemoryMonitor.Listener
           
 
Field Summary
private  Collection<MemoryMonitor.Listener> listeners
           
private static org.apache.log4j.Logger LOG
           
private  String springContextId
           
private static MemoryPoolMXBean tenuredGenPool
           
 
Constructor Summary
MemoryMonitor()
           
MemoryMonitor(String springContextId)
           
 
Method Summary
 boolean addListener(MemoryMonitor.Listener listener)
           
private static MemoryPoolMXBean findTenuredGenPool()
           
 boolean removeListener(MemoryMonitor.Listener listener)
           
static void setPercentageUsageThreshold(double percentage)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

listeners

private final Collection<MemoryMonitor.Listener> listeners

LOG

private static final org.apache.log4j.Logger LOG

springContextId

private String springContextId

tenuredGenPool

private static final MemoryPoolMXBean tenuredGenPool
Constructor Detail

MemoryMonitor

public MemoryMonitor()

MemoryMonitor

public MemoryMonitor(String springContextId)
Method Detail

addListener

public boolean addListener(MemoryMonitor.Listener listener)

removeListener

public boolean removeListener(MemoryMonitor.Listener listener)

setPercentageUsageThreshold

public static void setPercentageUsageThreshold(double percentage)

findTenuredGenPool

private static MemoryPoolMXBean findTenuredGenPool()


Copyright © 2004-2011 The Kuali Foundation. All Rights Reserved.