|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface FileCacheProbe
Monitoring probe providing callbacks that may be invoked by Grizzly FileCache.
| Nested Class Summary | |
|---|---|
static class |
FileCacheProbe.Adapter
FileCacheProbe adapter that provides no-op implementations for
all interface methods allowing easy extension by the developer. |
| Method Summary | |
|---|---|
void |
onEntryAddedEvent(FileCache fileCache,
FileCacheEntry entry)
Method will be called, when file cache entry gets added. |
void |
onEntryHitEvent(FileCache fileCache,
FileCacheEntry entry)
Method will be called, when file cache entry gets hit. |
void |
onEntryMissedEvent(FileCache fileCache,
java.lang.String host,
java.lang.String requestURI)
Method will be called, when file cache entry is missed for some resource. |
void |
onEntryRemovedEvent(FileCache fileCache,
FileCacheEntry entry)
Method will be called, when file cache entry gets removed. |
void |
onErrorEvent(FileCache fileCache,
java.lang.Throwable error)
Method will be called, when error occurs on the FileCache. |
| Method Detail |
|---|
void onEntryAddedEvent(FileCache fileCache,
FileCacheEntry entry)
fileCache - FileCache, the event belongs to.entry - FileCacheEntry been added.
void onEntryRemovedEvent(FileCache fileCache,
FileCacheEntry entry)
fileCache - FileCache, the event belongs to.entry - FileCacheEntry been removed.
void onEntryHitEvent(FileCache fileCache,
FileCacheEntry entry)
fileCache - FileCache, the event belongs to.entry - FileCacheEntry been hitted.
void onEntryMissedEvent(FileCache fileCache,
java.lang.String host,
java.lang.String requestURI)
fileCache - FileCache, the event belongs to.host - the requested HTTP "Host" header.requestURI - the requested HTTP URL.
void onErrorEvent(FileCache fileCache,
java.lang.Throwable error)
FileCache.
fileCache - FileCache, the event belongs to.error - error
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||