Package net.sf.jasperreports.engine.fill
Class StoreVirtualizer
- java.lang.Object
-
- net.sf.jasperreports.engine.fill.JRAbstractLRUVirtualizer
-
- net.sf.jasperreports.engine.fill.StoreVirtualizer
-
- All Implemented Interfaces:
JRVirtualizer
- Direct Known Subclasses:
JRSwapFileVirtualizer
public class StoreVirtualizer extends JRAbstractLRUVirtualizer
- Author:
- Lucian Chirita (lucianc@users.sourceforge.net)
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class net.sf.jasperreports.engine.fill.JRAbstractLRUVirtualizer
JRAbstractLRUVirtualizer.Cache, JRAbstractLRUVirtualizer.CacheReference
-
-
Field Summary
-
Fields inherited from class net.sf.jasperreports.engine.fill.JRAbstractLRUVirtualizer
lastObjectMap, lastObjectRef, lastObjectSet, pagedIn, pagedOut, serializer
-
-
Constructor Summary
Constructors Constructor Description StoreVirtualizer(int maxSize, VirtualizerStore store)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
cleanup()
Called when we are done with the virtualizer and wish to cleanup any resources it has.protected void
dispose(String id)
Removes the external data associated with a virtualizable object.protected void
pageIn(JRVirtualizable o)
Reads a virtualizable object's data from an external storage.protected void
pageOut(JRVirtualizable o)
Writes a virtualizable object's data to an external storage.-
Methods inherited from class net.sf.jasperreports.engine.fill.JRAbstractLRUVirtualizer
clearData, contextChanged, deregisterObject, dispose, disposeAll, evict, finalize, isEvictable, isPagedOut, isPagedOutAndTouch, isReadOnly, isReadOnly, lastObject, readData, registerObject, requestData, reset, setLastObject, setReadOnly, touch, virtualizeData, writeData
-
-
-
-
Constructor Detail
-
StoreVirtualizer
public StoreVirtualizer(int maxSize, VirtualizerStore store)
-
-
Method Detail
-
pageOut
protected void pageOut(JRVirtualizable o) throws IOException
Description copied from class:JRAbstractLRUVirtualizer
Writes a virtualizable object's data to an external storage.- Specified by:
pageOut
in classJRAbstractLRUVirtualizer
- Parameters:
o
- a virtualizable object- Throws:
IOException
-
pageIn
protected void pageIn(JRVirtualizable o) throws IOException
Description copied from class:JRAbstractLRUVirtualizer
Reads a virtualizable object's data from an external storage.- Specified by:
pageIn
in classJRAbstractLRUVirtualizer
- Parameters:
o
- a virtualizable object- Throws:
IOException
-
dispose
protected void dispose(String id)
Description copied from class:JRAbstractLRUVirtualizer
Removes the external data associated with a virtualizable object.- Specified by:
dispose
in classJRAbstractLRUVirtualizer
- Parameters:
id
- the ID of the virtualizable object
-
cleanup
public void cleanup()
Description copied from interface:JRVirtualizer
Called when we are done with the virtualizer and wish to cleanup any resources it has.
-
-