com.j_spaces.core
Class MemoryShortageException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.gigaspaces.client.ResourceCapacityExceededException
com.j_spaces.core.MemoryShortageException
- All Implemented Interfaces:
- Serializable
public class MemoryShortageException
- extends com.gigaspaces.client.ResourceCapacityExceededException
This Exception indicates that the space server process reached
the predefined percentage usage ratio.
- See Also:
- Serialized Form
MemoryShortageException
public MemoryShortageException(String spaceName,
String containerName,
String hostName,
long memoryUsage,
long maxMemory)
- Constructor
- Parameters:
spaceName - the name of the space that caused this exceptioncontainerName - the name of the container that contains the space that caused this exception.hostName - the name of the machine that hosts the space that caused this exceptionmemoryUsage - the amount of memory in usemaxMemory - the maximum amount of memory that can be used
getSpaceName
public String getSpaceName()
- Returns:
- the name of the space that caused this exception
getContainerName
public String getContainerName()
- Returns:
- the name of the container that contains the space that caused this exception.
getHostName
public String getHostName()
- Returns:
- the name of the machine that hosts the space that caused this exception
getMemoryUsage
public long getMemoryUsage()
- Returns:
- the current memory usage
getMaxMemory
public long getMaxMemory()
- Returns:
- the maximum amount of memory that can be used
toString
public String toString()
- Return the exception message
- Overrides:
toString in class Throwable
- Returns:
- the exception message.
- See Also:
Throwable.getMessage()
Copyright © GigaSpaces.