01: /*
02: * $RCSfile: CacheDiagnostics.java,v $
03: *
04: * Copyright (c) 2005 Sun Microsystems, Inc. All rights reserved.
05: *
06: * Use is subject to license terms.
07: *
08: * $Revision: 1.1 $
09: * $Date: 2005/02/11 04:56:59 $
10: * $State: Exp $
11: */
12: /**
13: * Diagnostics Interface for SunTileCache. These routines apply to the
14: * tile cache, not the cached tile. All methods are implicitly public.
15: *
16: * @since JAI 1.1
17: */package com.sun.media.jai.util;
18:
19: public interface CacheDiagnostics {
20:
21: /** Enable diagnostic monitoring of the tile cache. */
22: void enableDiagnostics();
23:
24: /** Disable diagnostic monitoring of the tile cache. */
25: void disableDiagnostics();
26:
27: /** Returns the total number of tiles in a particular cache. */
28: long getCacheTileCount();
29:
30: /** Returns the total memory used in a particular cache. */
31: long getCacheMemoryUsed();
32:
33: /**
34: * Returns the number of times this tile was requested when
35: * it was in the tile cache.
36: */
37: long getCacheHitCount();
38:
39: /**
40: * Returns the number of times this tile was requested when
41: * it was not in the tile cache.
42: */
43: long getCacheMissCount();
44:
45: /** Resets the hit and miss counts to zero. */
46: void resetCounts(); // resets hit,miss counts
47: }
|