Java Doc for JRAbstractLRUVirtualizer.java in  » Report » jasperreports-2.0.1 » net » sf » jasperreports » engine » fill » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Report » jasperreports 2.0.1 » net.sf.jasperreports.engine.fill 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   net.sf.jasperreports.engine.fill.JRAbstractLRUVirtualizer

All known Subclasses:   net.sf.jasperreports.engine.fill.JRSwapFileVirtualizer,  net.sf.jasperreports.engine.fill.JRGzipVirtualizer,  net.sf.jasperreports.engine.fill.JRFileVirtualizer,
JRAbstractLRUVirtualizer
abstract public class JRAbstractLRUVirtualizer implements JRVirtualizer(Code)
Abstract base for LRU and serialization based virtualizer
author:
   John Bindel
version:
   $Id: JRAbstractLRUVirtualizer.java 1797 2007-07-30 09:38:35Z teodord $

Inner Class :protected static class CacheReference extends WeakReference
Inner Class :protected class Cache
Inner Class :protected class ClassLoaderAnnotationObjectOutputStream extends ObjectOutputStream
Inner Class :protected class ClassLoaderAnnotationObjectInputStream extends ObjectInputStream

Field Summary
final protected static  intCLASSLOADER_IDX_NOT_SET
    
final protected  MapclassLoadersIndexes
    
final protected  ListclassLoadersList
    
protected  JRVirtualizablelastObject
    
protected  ReferenceMaplastObjectMap
    
protected  ReferenceMaplastObjectSet
    

Constructor Summary
protected  JRAbstractLRUVirtualizer(int maxSize)
    

Method Summary
public  voidclearData(JRVirtualizable o)
    
public  voidderegisterObject(JRVirtualizable o)
    
abstract protected  voiddispose(String virtualId)
     Removes the external data associated with a virtualizable object.
final protected  voiddisposeAll()
    
protected  voidfinalize()
    
protected static  booleanisAncestorClassLoader(ClassLoader loader)
    
final protected synchronized  booleanisPagedOut(String id)
    
protected synchronized  booleanisPagedOutAndTouch(JRVirtualizable o, String uid)
    
public  booleanisReadOnly()
     Determines whether the virtualizer is in read-only mode.
final protected  booleanisReadOnly(JRVirtualizable o)
    
abstract protected  voidpageIn(JRVirtualizable o)
     Reads a virtualizable object's data from an external storage.
abstract protected  voidpageOut(JRVirtualizable o)
     Writes a virtualizable object's data to an external storage.
final protected  voidreadData(JRVirtualizable o, InputStream in)
     Reads serialized identity and virtual data for a virtualizable object from a stream.
public synchronized  voidregisterObject(JRVirtualizable o)
    
public  voidrequestData(JRVirtualizable o)
    
protected synchronized  voidreset()
    
final protected  voidsetLastObject(JRVirtualizable o)
    
public  voidsetReadOnly(boolean ro)
     Sets the read only mode for the virtualizer.
public synchronized  voidtouch(JRVirtualizable o)
    
public  voidvirtualizeData(JRVirtualizable o)
    
final protected  voidwriteData(JRVirtualizable o, OutputStream out)
     Writes serialized indentity and virtual data of a virtualizable object to a stream.

Field Detail
CLASSLOADER_IDX_NOT_SET
final protected static int CLASSLOADER_IDX_NOT_SET(Code)



classLoadersIndexes
final protected Map classLoadersIndexes(Code)



classLoadersList
final protected List classLoadersList(Code)



lastObject
protected JRVirtualizable lastObject(Code)



lastObjectMap
protected ReferenceMap lastObjectMap(Code)



lastObjectSet
protected ReferenceMap lastObjectSet(Code)




Constructor Detail
JRAbstractLRUVirtualizer
protected JRAbstractLRUVirtualizer(int maxSize)(Code)

Parameters:
  maxSize - the maximum size (in JRVirtualizable objects) of the paged incache.




Method Detail
clearData
public void clearData(JRVirtualizable o)(Code)



deregisterObject
public void deregisterObject(JRVirtualizable o)(Code)



dispose
abstract protected void dispose(String virtualId)(Code)
Removes the external data associated with a virtualizable object.
Parameters:
  virtualId - the ID of the virtualizable object



disposeAll
final protected void disposeAll()(Code)



finalize
protected void finalize() throws Throwable(Code)



isAncestorClassLoader
protected static boolean isAncestorClassLoader(ClassLoader loader)(Code)



isPagedOut
final protected synchronized boolean isPagedOut(String id)(Code)



isPagedOutAndTouch
protected synchronized boolean isPagedOutAndTouch(JRVirtualizable o, String uid)(Code)



isReadOnly
public boolean isReadOnly()(Code)
Determines whether the virtualizer is in read-only mode. whether the virtualizer is in read-only mode
See Also:   JRAbstractLRUVirtualizer.setReadOnly(boolean)



isReadOnly
final protected boolean isReadOnly(JRVirtualizable o)(Code)



pageIn
abstract protected void pageIn(JRVirtualizable o) throws IOException(Code)
Reads a virtualizable object's data from an external storage.
Parameters:
  o - a virtualizable object
throws:
  IOException -



pageOut
abstract protected void pageOut(JRVirtualizable o) throws IOException(Code)
Writes a virtualizable object's data to an external storage.
Parameters:
  o - a virtualizable object
throws:
  IOException -



readData
final protected void readData(JRVirtualizable o, InputStream in) throws JRRuntimeException(Code)
Reads serialized identity and virtual data for a virtualizable object from a stream.
Parameters:
  o - the virtualizable object
Parameters:
  in - the input stream
throws:
  JRRuntimeException -



registerObject
public synchronized void registerObject(JRVirtualizable o)(Code)



requestData
public void requestData(JRVirtualizable o)(Code)



reset
protected synchronized void reset()(Code)



setLastObject
final protected void setLastObject(JRVirtualizable o)(Code)



setReadOnly
public void setReadOnly(boolean ro)(Code)
Sets the read only mode for the virtualizer.

When in read-only mode, the virtualizer assumes that virtualizable objects are final and any change in a virtualizable object's data is discarded.

When the virtualizer is used for multiple virtualization contexts (in shared mode), calling this method would override the read-only flags from all the contexts and all the objects will be manipulated in read-only mode. Use JRVirtualizationContext.setReadOnly(boolean) JRVirtualizationContext.setReadOnly(boolean) to set the read-only mode for one specific context.
Parameters:
  ro - the read-only mode to set




touch
public synchronized void touch(JRVirtualizable o)(Code)



virtualizeData
public void virtualizeData(JRVirtualizable o)(Code)



writeData
final protected void writeData(JRVirtualizable o, OutputStream out) throws JRRuntimeException(Code)
Writes serialized indentity and virtual data of a virtualizable object to a stream.
Parameters:
  o - the serialized object
Parameters:
  out - the output stream
throws:
  JRRuntimeException -



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.