|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.w3c.tools.resources.AttributeHolder org.w3c.www.protocol.http.cache.StoreState
public class StoreState
Field Summary | |
---|---|
protected static int |
ATTR_BYTE_COUNT
Attribute index - The the current cache size |
protected static int |
ATTR_CR_COUNT
Attribute index - The current number of CachedResource in memory |
protected static int |
ATTR_CURRENT_GENERATION
Attribute index - The current generation number (id) |
protected static int |
ATTR_ENTRY_NUM
Attribute index - The number used to store the file |
protected static int |
ATTR_NB_GENERATION
Attribute index - The nb of generations (mem+disk) |
protected static int |
ATTR_STORE_COUNT
Attribute index - The the current store count |
Fields inherited from class org.w3c.tools.resources.AttributeHolder |
---|
attributes, values |
Constructor Summary | |
---|---|
StoreState()
Constructor. |
Method Summary | |
---|---|
int |
decrGenerationNum()
decrement the current generation number |
long |
getByteCount()
Get the current cached byte count. |
int |
getCrCount()
Get the current CachedResource count |
int |
getCurrentGeneration()
Get the current Generation number |
int |
getEntryNum()
Get the current entry number |
int |
getNbGeneration()
Get the number of generation |
long |
getStoreCount()
Get the current stored byte count |
int |
incrCurrentGeneration()
Modify the current generation value |
int |
incrEntryNum()
Modify the current entry number |
int |
incrGenerationNum()
increment the current generation number |
void |
notifyGenerationCreated(CacheGeneration cg)
Notify the store state, a generation has just been created |
void |
notifyGenerationLoaded(CacheGeneration cg)
Notify the store state, a generation has just been loaded |
void |
notifyGenerationUnloaded(CacheGeneration cg)
Notify the store state, a generation has just been unloaded |
void |
notifyResourceAdded(CachedResource cr,
long oldsize)
Notify the store state, a resource has just been added |
void |
notifyResourceDeleted(CachedResource cr)
Notify the store state, a resource has just been deleted |
void |
notifyResourceRemoved(CachedResource cr)
Notify the store state, a resource has been removed (from cache) |
void |
notifyResourceReplaced(CachedResource cr,
long oldsize)
Notify the store state, a resource has just been updated |
void |
notifyResourceToBeDeleted(CachedResource cr)
Notify the store state, a resource has been moved in the "to be deleted" list |
void |
pickleValues(java.util.Hashtable defs)
The basic initialization |
void |
sync()
Synchronize the state |
java.lang.String |
toString()
|
Methods inherited from class org.w3c.tools.resources.AttributeHolder |
---|
definesAttribute, definesAttribute, getAttributes, getBoolean, getChar, getClone, getClone, getClone, getDouble, getFloat, getInt, getLong, getString, getValue, getValue, initialize, initialize, lookupAttribute, print, setBoolean, setChar, setDouble, setFloat, setInt, setLong, setString, setValue, setValue, unsafeDefinesAttribute, unsafeGetDouble, unsafeGetString, unsafeGetValue |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected static int ATTR_CURRENT_GENERATION
protected static int ATTR_NB_GENERATION
protected static int ATTR_BYTE_COUNT
protected static int ATTR_STORE_COUNT
protected static int ATTR_CR_COUNT
protected static int ATTR_ENTRY_NUM
Constructor Detail |
---|
public StoreState()
file
- the store state fileMethod Detail |
---|
public void sync()
public int incrCurrentGeneration()
public int getCurrentGeneration()
public int getNbGeneration()
public long getByteCount()
public long getStoreCount()
public int getCrCount()
public int incrEntryNum()
public int getEntryNum()
public int incrGenerationNum()
public int decrGenerationNum()
public void notifyGenerationCreated(CacheGeneration cg)
cg
- the new generationpublic void notifyGenerationLoaded(CacheGeneration cg)
cg
- the loaded generationpublic void notifyGenerationUnloaded(CacheGeneration cg)
cg
- the unloaded generationpublic void notifyResourceAdded(CachedResource cr, long oldsize)
cr
- the added resourcepublic void notifyResourceReplaced(CachedResource cr, long oldsize)
cr
- the updated resourcepublic void notifyResourceRemoved(CachedResource cr)
cr
- the resource removedpublic void notifyResourceToBeDeleted(CachedResource cr)
cr
- the resource to deletepublic void notifyResourceDeleted(CachedResource cr)
cr
- the deleted resourcepublic void pickleValues(java.util.Hashtable defs)
pickleValues
in class AttributeHolder
values
- the valuespublic java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |