jbpm-form-modeler-request-dispatcher 6.2.0.CR4

org.jbpm.formModeler.service.bb.mvc.controller.requestChain
Class FreeMemoryProcessor

java.lang.Object
  extended by 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.


Constructor Summary
FreeMemoryProcessor()
           
 
Method Summary
protected  void freeEvenMoreMemory(long freeMemory, long totalMemory)
           
protected  void freeSomeMemory(long freeMemory, long totalMemory)
           
 float getMinMemoryPercentage()
           
 long getMinMemorySize()
           
protected  boolean isLowMemory(long freeMemory, long totalMemory)
           
 boolean processRequest(CommandRequest request)
          Make required processing of request.
 void setMinMemoryPercentage(float minMemoryPercentage)
           
 void setMinMemorySize(long minMemorySize)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FreeMemoryProcessor

public FreeMemoryProcessor()
Method Detail

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)

jbpm-form-modeler-request-dispatcher 6.2.0.CR4

Copyright © 2001-2015 JBoss by Red Hat. All Rights Reserved.