Class FileCacheProbe.Adapter
- java.lang.Object
-
- org.glassfish.grizzly.http.server.filecache.FileCacheProbe.Adapter
-
- All Implemented Interfaces:
FileCacheProbe
- Enclosing interface:
- FileCacheProbe
public static class FileCacheProbe.Adapter extends Object implements FileCacheProbe
FileCacheProbeadapter that provides no-op implementations for all interface methods allowing easy extension by the developer.- Since:
- 2.1.9
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.glassfish.grizzly.http.server.filecache.FileCacheProbe
FileCacheProbe.Adapter
-
-
Constructor Summary
Constructors Constructor Description Adapter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidonEntryAddedEvent(FileCache fileCache, FileCacheEntry entry)Method will be called, when file cache entry gets added.voidonEntryHitEvent(FileCache fileCache, FileCacheEntry entry)Method will be called, when file cache entry gets hit.voidonEntryMissedEvent(FileCache fileCache, String host, String requestURI)Method will be called, when file cache entry is missed for some resource.voidonEntryRemovedEvent(FileCache fileCache, FileCacheEntry entry)Method will be called, when file cache entry gets removed.voidonErrorEvent(FileCache fileCache, Throwable error)Method will be called, when error occurs on theFileCache.
-
-
-
Method Detail
-
onEntryAddedEvent
public void onEntryAddedEvent(FileCache fileCache, FileCacheEntry entry)
Method will be called, when file cache entry gets added.- Specified by:
onEntryAddedEventin interfaceFileCacheProbe- Parameters:
fileCache-FileCache, the event belongs to.entry-FileCacheEntrybeen added.
-
onEntryRemovedEvent
public void onEntryRemovedEvent(FileCache fileCache, FileCacheEntry entry)
Method will be called, when file cache entry gets removed.- Specified by:
onEntryRemovedEventin interfaceFileCacheProbe- Parameters:
fileCache-FileCache, the event belongs to.entry-FileCacheEntrybeen removed.
-
onEntryHitEvent
public void onEntryHitEvent(FileCache fileCache, FileCacheEntry entry)
Method will be called, when file cache entry gets hit.- Specified by:
onEntryHitEventin interfaceFileCacheProbe- Parameters:
fileCache-FileCache, the event belongs to.entry-FileCacheEntrybeen hitted.
-
onEntryMissedEvent
public void onEntryMissedEvent(FileCache fileCache, String host, String requestURI)
Method will be called, when file cache entry is missed for some resource.- Specified by:
onEntryMissedEventin interfaceFileCacheProbe- Parameters:
fileCache-FileCache, the event belongs to.host- the requested HTTP "Host" header.requestURI- the requested HTTP URL.
-
onErrorEvent
public void onErrorEvent(FileCache fileCache, Throwable error)
Method will be called, when error occurs on theFileCache.- Specified by:
onErrorEventin interfaceFileCacheProbe- Parameters:
fileCache-FileCache, the event belongs to.error- error
-
-