|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.jasperreports.engine.fill.JRAbstractLRUVirtualizer
net.sf.jasperreports.engine.fill.JRSwapFileVirtualizer
public class JRSwapFileVirtualizer
A virtualizer that uses a single swap file to serialize virtual data.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class net.sf.jasperreports.engine.fill.JRAbstractLRUVirtualizer |
|---|
JRAbstractLRUVirtualizer.Cache, JRAbstractLRUVirtualizer.CacheReference, JRAbstractLRUVirtualizer.ClassLoaderAnnotationObjectInputStream, JRAbstractLRUVirtualizer.ClassLoaderAnnotationObjectOutputStream |
| Field Summary |
|---|
| Fields inherited from class net.sf.jasperreports.engine.fill.JRAbstractLRUVirtualizer |
|---|
CLASSLOADER_IDX_NOT_SET, classLoadersIndexes, classLoadersList, lastObject, lastObjectMap, lastObjectSet |
| Constructor Summary | |
|---|---|
JRSwapFileVirtualizer(int maxSize,
JRSwapFile swap)
Creates a virtualizer that uses a swap file. |
|
JRSwapFileVirtualizer(int maxSize,
JRSwapFile swap,
boolean swapOwner)
Creates a virtualizer that uses a swap file. |
|
| Method Summary | |
|---|---|
void |
cleanup()
Disposes the swap file used if this virtualizer owns it. |
protected void |
dispose(java.lang.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, deregisterObject, disposeAll, finalize, isAncestorClassLoader, isPagedOut, isPagedOutAndTouch, isReadOnly, isReadOnly, readData, registerObject, requestData, reset, setLastObject, setReadOnly, touch, virtualizeData, writeData |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JRSwapFileVirtualizer(int maxSize,
JRSwapFile swap)
The virtualizer will be considered the owner of the swap file.
maxSize - the maximum size (in JRVirtualizable objects) of the paged in cache.swap - the swap file to use for data virtualization
public JRSwapFileVirtualizer(int maxSize,
JRSwapFile swap,
boolean swapOwner)
maxSize - the maximum size (in JRVirtualizable objects) of the paged in cache.swap - the swap file to use for data virtualizationswapOwner - whether the virtualizer is the owner (single user) of the swap file.
If true, the virtualizer will dispose the swap file on
cleanup.| Method Detail |
|---|
protected void pageOut(JRVirtualizable o)
throws java.io.IOException
JRAbstractLRUVirtualizer
pageOut in class JRAbstractLRUVirtualizero - a virtualizable object
java.io.IOException
protected void pageIn(JRVirtualizable o)
throws java.io.IOException
JRAbstractLRUVirtualizer
pageIn in class JRAbstractLRUVirtualizero - a virtualizable object
java.io.IOExceptionprotected void dispose(java.lang.String id)
JRAbstractLRUVirtualizer
dispose in class JRAbstractLRUVirtualizerid - the ID of the virtualizable objectpublic void cleanup()
JRSwapFileVirtualizer(int, JRSwapFile, boolean)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||