net.sf.jasperreports.engine
Interface JRVirtualizer

All Known Implementing Classes:
JRFileVirtualizer

public interface JRVirtualizer

Version:
$Id: JRVirtualizer.java,v 1.2 2005/07/08 15:39:01 teodord Exp $
Author:
John Bindel

Method Summary
 void clearData(JRVirtualizable o)
          Called when the virtual object paged-out data should be freed.
 void deregisterObject(JRVirtualizable o)
          Lets this virtualizer know that it no longer must track the object.
 void registerObject(JRVirtualizable o)
          Lets this virtualizer know that it must track the object.
 void requestData(JRVirtualizable o)
          Called when the virtual object must be paged-in.
 void touch(JRVirtualizable o)
          Lets the virtualizer know that this object is still being used.
 void virtualizeData(JRVirtualizable o)
          Called when the virtual object should be paged-out.
 

Method Detail

registerObject

public void registerObject(JRVirtualizable o)
Lets this virtualizer know that it must track the object.

All virtualizable object must register with their virtualizer upon construction.


deregisterObject

public void deregisterObject(JRVirtualizable o)
Lets this virtualizer know that it no longer must track the object.


touch

public void touch(JRVirtualizable o)
Lets the virtualizer know that this object is still being used. This should be called to help the virtualizer determine which objects to keep in its cache, and which objects to page-out when it must do some paging-out.

The virtualizer gets to decide what type of caching strategy it will use.


requestData

public void requestData(JRVirtualizable o)
Called when the virtual object must be paged-in.


clearData

public void clearData(JRVirtualizable o)
Called when the virtual object paged-out data should be freed.


virtualizeData

public void virtualizeData(JRVirtualizable o)
Called when the virtual object should be paged-out.



© 2001-2005 JasperSoft Corporation www.jaspersoft.com