Module org.eclipse.jgit
Class DfsBlockCacheTable.DfsBlockCacheStats
java.lang.Object
org.eclipse.jgit.internal.storage.dfs.DfsBlockCacheTable.DfsBlockCacheStats
- All Implemented Interfaces:
DfsBlockCacheTable.BlockCacheStats
- Enclosing interface:
- DfsBlockCacheTable
public static class DfsBlockCacheTable.DfsBlockCacheStats
extends Object
implements DfsBlockCacheTable.BlockCacheStats
Keeps track of stats for a Block Cache table.
-
Method Summary
Modifier and TypeMethodDescriptionlong[]Get total number of bytes in the cache, per pack file extension.long[]Get number of evictions performed due to cache being full, per pack file extension.long[]Get number of requests for items in the cache, per pack file extension.long[]Get hit ratios.long[]Get number of requests for items not in the cache, per pack file extension.long[]Get total number of requests (hit + miss), per pack file extension.
-
Method Details
-
getCurrentSize
public long[] getCurrentSize()Description copied from interface:DfsBlockCacheTable.BlockCacheStatsGet total number of bytes in the cache, per pack file extension.- Specified by:
getCurrentSizein interfaceDfsBlockCacheTable.BlockCacheStats- Returns:
- total number of bytes in the cache, per pack file extension.
-
getHitCount
public long[] getHitCount()Description copied from interface:DfsBlockCacheTable.BlockCacheStatsGet number of requests for items in the cache, per pack file extension.- Specified by:
getHitCountin interfaceDfsBlockCacheTable.BlockCacheStats- Returns:
- the number of requests for items in the cache, per pack file extension.
-
getMissCount
public long[] getMissCount()Description copied from interface:DfsBlockCacheTable.BlockCacheStatsGet number of requests for items not in the cache, per pack file extension.- Specified by:
getMissCountin interfaceDfsBlockCacheTable.BlockCacheStats- Returns:
- the number of requests for items not in the cache, per pack file extension.
-
getTotalRequestCount
public long[] getTotalRequestCount()Description copied from interface:DfsBlockCacheTable.BlockCacheStatsGet total number of requests (hit + miss), per pack file extension.- Specified by:
getTotalRequestCountin interfaceDfsBlockCacheTable.BlockCacheStats- Returns:
- total number of requests (hit + miss), per pack file extension.
-
getHitRatio
public long[] getHitRatio()Description copied from interface:DfsBlockCacheTable.BlockCacheStatsGet hit ratios.- Specified by:
getHitRatioin interfaceDfsBlockCacheTable.BlockCacheStats- Returns:
- hit ratios.
-
getEvictions
public long[] getEvictions()Description copied from interface:DfsBlockCacheTable.BlockCacheStatsGet number of evictions performed due to cache being full, per pack file extension.- Specified by:
getEvictionsin interfaceDfsBlockCacheTable.BlockCacheStats- Returns:
- the number of evictions performed due to cache being full, per pack file extension.
-