GemFire 6.6.4

com.gemstone.gemfire.cache
Class LowMemoryException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by com.gemstone.gemfire.GemFireException
                  extended by com.gemstone.gemfire.cache.CacheRuntimeException
                      extended by com.gemstone.gemfire.cache.ResourceException
                          extended by com.gemstone.gemfire.cache.LowMemoryException
All Implemented Interfaces:
Serializable

public class LowMemoryException
extends ResourceException

Indicates a low memory condition either on the local or a remote Cache. The ResourceManager monitors local tenured memory consumption and determines when operations are rejected.

Since:
6.0
See Also:
ResourceManager.setCriticalHeapPercentage(float), Region.put(Object, Object), Serialized Form

Constructor Summary
LowMemoryException()
          Creates a new instance of LowMemoryException.
LowMemoryException(String msg, Set<DistributedMember> criticalMembers)
          Constructs an instance of LowMemoryException with the specified detail message.
 
Method Summary
 Set<DistributedMember> getCriticalMembers()
          Get a read-only set of members in a critical state at the time this exception was constructed.
 
Methods inherited from class com.gemstone.gemfire.cache.CacheRuntimeException
toString
 
Methods inherited from class com.gemstone.gemfire.GemFireException
getRootCause
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LowMemoryException

public LowMemoryException()
Creates a new instance of LowMemoryException.


LowMemoryException

public LowMemoryException(String msg,
                          Set<DistributedMember> criticalMembers)
Constructs an instance of LowMemoryException with the specified detail message.

Parameters:
msg - the detail message
criticalMembers - the member(s) which are/were in a critical state
Method Detail

getCriticalMembers

public Set<DistributedMember> getCriticalMembers()
Get a read-only set of members in a critical state at the time this exception was constructed.

Returns:
the critical members

GemFire 6.6.4

Copyright © 1997-2012 VMware, Inc. All rights reserved.