Dashboard Builder Data Provider API 6.0.1.Final

org.jboss.dashboard.dataset.profiler
Class DataSetLoadConstraints

java.lang.Object
  extended by org.jboss.dashboard.dataset.profiler.DataSetLoadConstraints
All Implemented Interfaces:
RuntimeConstraint

public class DataSetLoadConstraints
extends Object
implements RuntimeConstraint

Runtime constraints addressed to guarantee that data set load operations never exceed the max memory/time thresholds set.


Field Summary
protected  WeakReference<DataSet> dataSetRef
           
protected  long startMemory
           
protected  long startTime
           
 
Constructor Summary
DataSetLoadConstraints(DataSet dataSet)
           
 
Method Summary
 void validate()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

dataSetRef

protected WeakReference<DataSet> dataSetRef

startMemory

protected long startMemory

startTime

protected long startTime
Constructor Detail

DataSetLoadConstraints

public DataSetLoadConstraints(DataSet dataSet)
Method Detail

validate

public void validate()
              throws Exception
Specified by:
validate in interface RuntimeConstraint
Throws:
DataSetException - In case any it doesn't meet the thresholds set.
Exception

Dashboard Builder Data Provider API 6.0.1.Final

Copyright © 2012-2013 JBoss by Red Hat. All Rights Reserved.