|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object | +--JSPservletPkg.Cache
Global cache for Mapper.
Copyright (c) 2000-2001
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; version 2 of the License. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
| Inner Class Summary | |
(package private) class |
Cache.Entry
Version 1.0.4. |
| Field Summary | |
(package private) java.util.ArrayList |
cache
Address range to PageBoxes cache. |
(package private) java.lang.String |
filename
Persistent cache path. |
| Constructor Summary | |
(package private) |
Cache(java.lang.String cacheLocation)
|
| Method Summary | |
void |
clear(int nbdays)
Remove cache entries older than nbdays. |
void |
register(long address1,
long address2,
java.lang.String code)
Register a new range and PageBox set in cache. Validated with mapper.testMisc. |
void |
remove(long address)
Remove a url mapping from cache. Validated with mapper.testMisc. |
java.lang.String |
report()
Returns a report string about cache content. |
java.lang.String |
retrieve(long address)
Retrieve a country code from cache. Validated with mapper.testMisc. |
boolean |
save()
Cache save. |
| Methods inherited from class java.lang.Object |
|
| Field Detail |
java.util.ArrayList cache
java.lang.String filename
| Constructor Detail |
Cache(java.lang.String cacheLocation)
| Method Detail |
public boolean save()
public final java.lang.String report()
public final void register(long address1,
long address2,
java.lang.String code)
address1 - first requestor address in the range.address2 - last requestor address in the range.code - country code.public final java.lang.String retrieve(long address)
address - requestor address.public final void remove(long address)
address - requestor address - any address in the range.public void clear(int nbdays)
nbdays - maximum life in cache (days).
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||