org.jbpm.formModeler.service.bb.mvc.controller.requestChain
Class FreeMemoryProcessor
java.lang.Object
org.jbpm.formModeler.service.bb.mvc.controller.requestChain.FreeMemoryProcessor
- All Implemented Interfaces:
- RequestChainProcessor
public class FreeMemoryProcessor
- extends Object
- implements RequestChainProcessor
Analyzes the free memory available.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FreeMemoryProcessor
public FreeMemoryProcessor()
getMinMemorySize
public long getMinMemorySize()
setMinMemorySize
public void setMinMemorySize(long minMemorySize)
getMinMemoryPercentage
public float getMinMemoryPercentage()
setMinMemoryPercentage
public void setMinMemoryPercentage(float minMemoryPercentage)
processRequest
public boolean processRequest(CommandRequest request)
throws Exception
- Description copied from interface:
RequestChainProcessor
- Make required processing of request.
- Specified by:
processRequest in interface RequestChainProcessor
- Returns:
- true if processing must continue, false otherwise.
- Throws:
Exception
freeSomeMemory
protected void freeSomeMemory(long freeMemory,
long totalMemory)
freeEvenMoreMemory
protected void freeEvenMoreMemory(long freeMemory,
long totalMemory)
isLowMemory
protected boolean isLowMemory(long freeMemory,
long totalMemory)
Copyright © 2001-2015 JBoss by Red Hat. All Rights Reserved.