org.glassfish.grizzly.http.server.filecache
Class FileCacheProbe.Adapter

java.lang.Object
  extended by org.glassfish.grizzly.http.server.filecache.FileCacheProbe.Adapter
All Implemented Interfaces:
FileCacheProbe
Enclosing interface:
FileCacheProbe

public static class FileCacheProbe.Adapter
extends Object
implements FileCacheProbe

FileCacheProbe adapter 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
FileCacheProbe.Adapter()
           
 
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, String host, 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, Throwable error)
          Method will be called, when error occurs on the FileCache.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileCacheProbe.Adapter

public FileCacheProbe.Adapter()
Method Detail

onEntryAddedEvent

public void onEntryAddedEvent(FileCache fileCache,
                              FileCacheEntry entry)
Method will be called, when file cache entry gets added.

Specified by:
onEntryAddedEvent in interface FileCacheProbe
Parameters:
fileCache - FileCache, the event belongs to.
entry - FileCacheEntry been added.

onEntryRemovedEvent

public void onEntryRemovedEvent(FileCache fileCache,
                                FileCacheEntry entry)
Method will be called, when file cache entry gets removed.

Specified by:
onEntryRemovedEvent in interface FileCacheProbe
Parameters:
fileCache - FileCache, the event belongs to.
entry - FileCacheEntry been removed.

onEntryHitEvent

public void onEntryHitEvent(FileCache fileCache,
                            FileCacheEntry entry)
Method will be called, when file cache entry gets hit.

Specified by:
onEntryHitEvent in interface FileCacheProbe
Parameters:
fileCache - FileCache, the event belongs to.
entry - FileCacheEntry been 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:
onEntryMissedEvent in interface FileCacheProbe
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 the FileCache.

Specified by:
onErrorEvent in interface FileCacheProbe
Parameters:
fileCache - FileCache, the event belongs to.
error - error


Copyright © 2012 Oracle Corporation. All Rights Reserved.