Top Description Inners Methods
org.glassfish.grizzly.http.server.filecache

public Interface FileCacheProbe

Known Direct Implementers
org.glassfish.grizzly.http.server.filecache.FileCacheProbe.Adapter

Monitoring probe providing callbacks that may be invoked by Grizzly FileCache.
Author
Alexey Stashok
Since
2.0

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class
FileCacheProbe.Adapter

FileCacheProbe adapter that provides no-op implementations for all interface methods allowing easy extension by the developer.

Method Summary

Modifier and TypeMethod and Description
public void
onEntryAddedEvent(FileCache
FileCache, the event belongs to.
fileCache
,
FileCacheEntry
FileCacheEntry been added.
entry
)

Method will be called, when file cache entry gets added.

public void
onEntryHitEvent(FileCache
FileCache, the event belongs to.
fileCache
,
FileCacheEntry
FileCacheEntry been hitted.
entry
)

Method will be called, when file cache entry gets hit.

public void
onEntryMissedEvent(FileCache
FileCache, the event belongs to.
fileCache
,
String
the requested HTTP "Host" header.
host
,
String
the requested HTTP URL.
requestURI
)

Method will be called, when file cache entry is missed for some resource.

public void
onEntryRemovedEvent(FileCache
FileCache, the event belongs to.
fileCache
,
FileCacheEntry
FileCacheEntry been removed.
entry
)

Method will be called, when file cache entry gets removed.

public void
onErrorEvent(FileCache
FileCache, the event belongs to.
fileCache
,
Throwable
error
error
)

Method will be called, when error occurs on the FileCache.

Method Detail

onEntryAddedEventback to summary
public void onEntryAddedEvent(FileCache fileCache, FileCacheEntry entry)

Method will be called, when file cache entry gets added.

Parameters
fileCache:FileCache

FileCache, the event belongs to.

entry:FileCacheEntry

FileCacheEntry been added.

onEntryHitEventback to summary
public void onEntryHitEvent(FileCache fileCache, FileCacheEntry entry)

Method will be called, when file cache entry gets hit.

Parameters
fileCache:FileCache

FileCache, the event belongs to.

entry:FileCacheEntry

FileCacheEntry been hitted.

onEntryMissedEventback to summary
public void onEntryMissedEvent(FileCache fileCache, String host, String requestURI)

Method will be called, when file cache entry is missed for some resource.

Parameters
fileCache:FileCache

FileCache, the event belongs to.

host:String

the requested HTTP "Host" header.

requestURI:String

the requested HTTP URL.

onEntryRemovedEventback to summary
public void onEntryRemovedEvent(FileCache fileCache, FileCacheEntry entry)

Method will be called, when file cache entry gets removed.

Parameters
fileCache:FileCache

FileCache, the event belongs to.

entry:FileCacheEntry

FileCacheEntry been removed.

onErrorEventback to summary
public void onErrorEvent(FileCache fileCache, Throwable error)

Method will be called, when error occurs on the FileCache.

Parameters
fileCache:FileCache

FileCache, the event belongs to.

error:Throwable

error

org.glassfish.grizzly.http.server.filecache back to summary

public Class FileCacheProbe.Adapter

extends Object
implements FileCacheProbe
Class Inheritance
  • java.lang.Object
  • org.glassfish.grizzly.http.server.filecache.FileCacheProbe.Adapter
All Implemented Interfaces
org.glassfish.grizzly.http.server.filecache.FileCacheProbe
Annotations
@SuppressWarnings:UnusedDeclaration

FileCacheProbe adapter that provides no-op implementations for all interface methods allowing easy extension by the developer.
Since
2.1.9

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
onEntryAddedEvent(FileCache fileCache, FileCacheEntry entry)

Implements org.glassfish.grizzly.http.server.filecache.FileCacheProbe.onEntryAddedEvent.

Method will be called, when file cache entry gets added.

public void
onEntryHitEvent(FileCache fileCache, FileCacheEntry entry)

Implements org.glassfish.grizzly.http.server.filecache.FileCacheProbe.onEntryHitEvent.

Method will be called, when file cache entry gets hit.

public void
onEntryMissedEvent(FileCache fileCache, String host, String requestURI)

Implements org.glassfish.grizzly.http.server.filecache.FileCacheProbe.onEntryMissedEvent.

Method will be called, when file cache entry is missed for some resource.

public void
onEntryRemovedEvent(FileCache fileCache, FileCacheEntry entry)

Implements org.glassfish.grizzly.http.server.filecache.FileCacheProbe.onEntryRemovedEvent.

Method will be called, when file cache entry gets removed.

public void
onErrorEvent(FileCache fileCache, Throwable error)

Implements org.glassfish.grizzly.http.server.filecache.FileCacheProbe.onErrorEvent.

Method will be called, when error occurs on the FileCache.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

Adapterback to summary
public Adapter()

Method Detail

onEntryAddedEventback to summary
public void onEntryAddedEvent(FileCache fileCache, FileCacheEntry entry)

Implements org.glassfish.grizzly.http.server.filecache.FileCacheProbe.onEntryAddedEvent.

Doc from org.glassfish.grizzly.http.server.filecache.FileCacheProbe.onEntryAddedEvent.

Method will be called, when file cache entry gets added.

Annotations
@Override
onEntryHitEventback to summary
public void onEntryHitEvent(FileCache fileCache, FileCacheEntry entry)

Implements org.glassfish.grizzly.http.server.filecache.FileCacheProbe.onEntryHitEvent.

Doc from org.glassfish.grizzly.http.server.filecache.FileCacheProbe.onEntryHitEvent.

Method will be called, when file cache entry gets hit.

Annotations
@Override
onEntryMissedEventback to summary
public void onEntryMissedEvent(FileCache fileCache, String host, String requestURI)

Implements org.glassfish.grizzly.http.server.filecache.FileCacheProbe.onEntryMissedEvent.

Doc from org.glassfish.grizzly.http.server.filecache.FileCacheProbe.onEntryMissedEvent.

Method will be called, when file cache entry is missed for some resource.

Annotations
@Override
onEntryRemovedEventback to summary
public void onEntryRemovedEvent(FileCache fileCache, FileCacheEntry entry)

Implements org.glassfish.grizzly.http.server.filecache.FileCacheProbe.onEntryRemovedEvent.

Doc from org.glassfish.grizzly.http.server.filecache.FileCacheProbe.onEntryRemovedEvent.

Method will be called, when file cache entry gets removed.

Annotations
@Override
onErrorEventback to summary
public void onErrorEvent(FileCache fileCache, Throwable error)

Implements org.glassfish.grizzly.http.server.filecache.FileCacheProbe.onErrorEvent.

Doc from org.glassfish.grizzly.http.server.filecache.FileCacheProbe.onErrorEvent.

Method will be called, when error occurs on the FileCache.

Annotations
@Override