Java Doc for StoreState.java in  » Web-Server » Jigsaw » org » w3c » www » protocol » http » cache » 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 » Web Server » Jigsaw » org.w3c.www.protocol.http.cache 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.w3c.tools.resources.AttributeHolder
      org.w3c.www.protocol.http.cache.StoreState

StoreState
public class StoreState extends AttributeHolder (Code)

version:
   $Revision: 1.14 $
author:
   Benoît Mahé (bmahe@w3.org)


Field Summary
protected static  intATTR_BYTE_COUNT
    
protected static  intATTR_CR_COUNT
    
protected static  intATTR_CURRENT_GENERATION
    
protected static  intATTR_ENTRY_NUM
    
protected static  intATTR_NB_GENERATION
    
protected static  intATTR_STORE_COUNT
    

Constructor Summary
public  StoreState()
     Constructor.

Method Summary
public synchronized  intdecrGenerationNum()
    
public synchronized  longgetByteCount()
     Get the current cached byte count.
public synchronized  intgetCrCount()
    
public synchronized  intgetCurrentGeneration()
    
public synchronized  intgetEntryNum()
    
public synchronized  intgetNbGeneration()
    
public synchronized  longgetStoreCount()
    
public synchronized  intincrCurrentGeneration()
    
public synchronized  intincrEntryNum()
    
public synchronized  intincrGenerationNum()
    
public synchronized  voidnotifyGenerationCreated(CacheGeneration cg)
    
public synchronized  voidnotifyGenerationLoaded(CacheGeneration cg)
    
public synchronized  voidnotifyGenerationUnloaded(CacheGeneration cg)
    
public synchronized  voidnotifyResourceAdded(CachedResource cr, long oldsize)
    
public synchronized  voidnotifyResourceDeleted(CachedResource cr)
    
public synchronized  voidnotifyResourceRemoved(CachedResource cr)
    
public synchronized  voidnotifyResourceReplaced(CachedResource cr, long oldsize)
    
public synchronized  voidnotifyResourceToBeDeleted(CachedResource cr)
    
public  voidpickleValues(Hashtable defs)
    
public  voidsync()
    
public  StringtoString()
    

Field Detail
ATTR_BYTE_COUNT
protected static int ATTR_BYTE_COUNT(Code)
Attribute index - The the current cache size



ATTR_CR_COUNT
protected static int ATTR_CR_COUNT(Code)
Attribute index - The current number of CachedResource in memory



ATTR_CURRENT_GENERATION
protected static int ATTR_CURRENT_GENERATION(Code)
Attribute index - The current generation number (id)



ATTR_ENTRY_NUM
protected static int ATTR_ENTRY_NUM(Code)
Attribute index - The number used to store the file



ATTR_NB_GENERATION
protected static int ATTR_NB_GENERATION(Code)
Attribute index - The nb of generations (mem+disk)



ATTR_STORE_COUNT
protected static int ATTR_STORE_COUNT(Code)
Attribute index - The the current store count




Constructor Detail
StoreState
public StoreState()(Code)
Constructor.
Parameters:
  file - the store state file




Method Detail
decrGenerationNum
public synchronized int decrGenerationNum()(Code)
decrement the current generation number an int



getByteCount
public synchronized long getByteCount()(Code)
Get the current cached byte count. a long



getCrCount
public synchronized int getCrCount()(Code)
Get the current CachedResource count a long



getCurrentGeneration
public synchronized int getCurrentGeneration()(Code)
Get the current Generation number an integer



getEntryNum
public synchronized int getEntryNum()(Code)
Get the current entry number an int



getNbGeneration
public synchronized int getNbGeneration()(Code)
Get the number of generation an integer



getStoreCount
public synchronized long getStoreCount()(Code)
Get the current stored byte count a long



incrCurrentGeneration
public synchronized int incrCurrentGeneration()(Code)
Modify the current generation value the new value



incrEntryNum
public synchronized int incrEntryNum()(Code)
Modify the current entry number the new value



incrGenerationNum
public synchronized int incrGenerationNum()(Code)
increment the current generation number the new value



notifyGenerationCreated
public synchronized void notifyGenerationCreated(CacheGeneration cg)(Code)
Notify the store state, a generation has just been created
Parameters:
  cg - the new generation



notifyGenerationLoaded
public synchronized void notifyGenerationLoaded(CacheGeneration cg)(Code)
Notify the store state, a generation has just been loaded
Parameters:
  cg - the loaded generation



notifyGenerationUnloaded
public synchronized void notifyGenerationUnloaded(CacheGeneration cg)(Code)
Notify the store state, a generation has just been unloaded
Parameters:
  cg - the unloaded generation



notifyResourceAdded
public synchronized void notifyResourceAdded(CachedResource cr, long oldsize)(Code)
Notify the store state, a resource has just been added
Parameters:
  cr - the added resource



notifyResourceDeleted
public synchronized void notifyResourceDeleted(CachedResource cr)(Code)
Notify the store state, a resource has just been deleted
Parameters:
  cr - the deleted resource



notifyResourceRemoved
public synchronized void notifyResourceRemoved(CachedResource cr)(Code)
Notify the store state, a resource has been removed (from cache)
Parameters:
  cr - the resource removed



notifyResourceReplaced
public synchronized void notifyResourceReplaced(CachedResource cr, long oldsize)(Code)
Notify the store state, a resource has just been updated
Parameters:
  cr - the updated resource



notifyResourceToBeDeleted
public synchronized void notifyResourceToBeDeleted(CachedResource cr)(Code)
Notify the store state, a resource has been moved in the "to be deleted" list
Parameters:
  cr - the resource to delete



pickleValues
public void pickleValues(Hashtable defs)(Code)
The basic initialization
Parameters:
  values - the values



sync
public void sync()(Code)
Synchronize the state



toString
public String toString()(Code)



Fields inherited from org.w3c.tools.resources.AttributeHolder
protected Attribute attributes(Code)(Java Doc)
protected Object values(Code)(Java Doc)

Methods inherited from org.w3c.tools.resources.AttributeHolder
public boolean definesAttribute(int idx) throws IllegalAttributeAccess(Code)(Java Doc)
public boolean definesAttribute(String name) throws IllegalAttributeAccess(Code)(Java Doc)
public Attribute[] getAttributes()(Code)(Java Doc)
public boolean getBoolean(int idx, boolean def)(Code)(Java Doc)
public char getChar(int idx, char def)(Code)(Java Doc)
public Object getClone(Object values)(Code)(Java Doc)
public synchronized Object getClone()(Code)(Java Doc)
public synchronized Object getClone(Hashtable defs)(Code)(Java Doc)
public double getDouble(int idx, double def)(Code)(Java Doc)
public float getFloat(int idx, float def)(Code)(Java Doc)
public int getInt(int idx, int def)(Code)(Java Doc)
public long getLong(int idx, long def)(Code)(Java Doc)
public String getString(int idx, String def)(Code)(Java Doc)
public synchronized Object getValue(int idx, Object def) throws IllegalAttributeAccess(Code)(Java Doc)
public Object getValue(String name, Object def) throws IllegalAttributeAccess(Code)(Java Doc)
public synchronized void initialize(Object nvalues)(Code)(Java Doc)
public synchronized void initialize(Hashtable defs)(Code)(Java Doc)
public int lookupAttribute(String name)(Code)(Java Doc)
public synchronized void pickleValues(Hashtable defs)(Code)(Java Doc)
public void print(PrintStream out)(Code)(Java Doc)
public void setBoolean(int idx, boolean b)(Code)(Java Doc)
public void setChar(int idx, char ch) throws IllegalAttributeAccess(Code)(Java Doc)
public void setDouble(int idx, double d) throws IllegalAttributeAccess(Code)(Java Doc)
public void setFloat(int idx, float f) throws IllegalAttributeAccess(Code)(Java Doc)
public void setInt(int idx, int i) throws IllegalAttributeAccess(Code)(Java Doc)
public void setLong(int idx, long l) throws IllegalAttributeAccess(Code)(Java Doc)
public void setString(int idx, String s) throws IllegalAttributeAccess(Code)(Java Doc)
public synchronized void setValue(int idx, Object value)(Code)(Java Doc)
public void setValue(String name, Object value)(Code)(Java Doc)
public boolean unsafeDefinesAttribute(int idx) throws IllegalAttributeAccess(Code)(Java Doc)
public double unsafeGetDouble(int idx, double def)(Code)(Java Doc)
public String unsafeGetString(int idx, String def)(Code)(Java Doc)
public Object unsafeGetValue(int idx, Object def) throws IllegalAttributeAccess(Code)(Java Doc)

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.