org.glassfish.grizzly.http.server.filecache
Interface FileCacheProbe

All Known Implementing Classes:
FileCacheProbe.Adapter

public interface FileCacheProbe

Monitoring probe providing callbacks that may be invoked by Grizzly FileCache.

Since:
2.0
Author:
Alexey Stashok

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, 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.
 

Method Detail

onEntryAddedEvent

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

Parameters:
fileCache - FileCache, the event belongs to.
entry - FileCacheEntry been added.

onEntryRemovedEvent

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

Parameters:
fileCache - FileCache, the event belongs to.
entry - FileCacheEntry been removed.

onEntryHitEvent

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

Parameters:
fileCache - FileCache, the event belongs to.
entry - FileCacheEntry been hitted.

onEntryMissedEvent

void onEntryMissedEvent(FileCache fileCache,
                        String host,
                        String requestURI)
Method will be called, when file cache entry is missed for some resource.

Parameters:
fileCache - FileCache, the event belongs to.
host - the requested HTTP "Host" header.
requestURI - the requested HTTP URL.

onErrorEvent

void onErrorEvent(FileCache fileCache,
                  Throwable error)
Method will be called, when error occurs on the FileCache.

Parameters:
fileCache - FileCache, the event belongs to.
error - error


Copyright © 2012 Oracle Corporation. All Rights Reserved.