| 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) |
Constructor Summary | |
public | StoreState() Constructor. |
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
|
StoreState | public StoreState()(Code) | | Constructor.
Parameters: file - the store state file |
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
|
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)
|
|
|