Top Description Fields Constructors Methods
org.eclipse.jgit.internal.storage.dfs

pack-priv Class AggregatedBlockCacheStats

extends Object
implements BlockCacheStats
Class Inheritance
All Implemented Interfaces
org.eclipse.jgit.internal.storage.dfs.DfsBlockCacheTable.BlockCacheStats
Static Imports
org.eclipse.jgit.internal.storage.dfs.DfsBlockCacheTable.BlockCacheStats

Aggregates values for all given BlockCacheStats.

Field Summary

Modifier and TypeField and Description
private final List<DfsBlockCacheTable.BlockCacheStats>

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
private static long[]
add(long[] first, long[] second)

private static long[]
pack-priv static DfsBlockCacheTable.BlockCacheStats
public long[]
getCurrentSize()

Implements org.eclipse.jgit.internal.storage.dfs.DfsBlockCacheTable.BlockCacheStats.getCurrentSize.

Get total number of bytes in the cache, per pack file extension.

public long[]
getEvictions()

Implements org.eclipse.jgit.internal.storage.dfs.DfsBlockCacheTable.BlockCacheStats.getEvictions.

Get number of evictions performed due to cache being full, per pack file extension.

public long[]
getHitCount()

Implements org.eclipse.jgit.internal.storage.dfs.DfsBlockCacheTable.BlockCacheStats.getHitCount.

Get number of requests for items in the cache, per pack file extension.

public long[]
public long[]
getMissCount()

Implements org.eclipse.jgit.internal.storage.dfs.DfsBlockCacheTable.BlockCacheStats.getMissCount.

Get number of requests for items not in the cache, per pack file extension.

public String
getName()

Implements org.eclipse.jgit.internal.storage.dfs.DfsBlockCacheTable.BlockCacheStats.getName.

Get the name of the block cache generating this instance.

public long[]
getTotalRequestCount()

Implements org.eclipse.jgit.internal.storage.dfs.DfsBlockCacheTable.BlockCacheStats.getTotalRequestCount.

Get total number of requests (hit + miss), per pack file extension.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

blockCacheStatsback to summary
private final List<DfsBlockCacheTable.BlockCacheStats> blockCacheStats

Constructor Detail

AggregatedBlockCacheStatsback to summary
private AggregatedBlockCacheStats(List<DfsBlockCacheTable.BlockCacheStats> blockCacheStats)

Method Detail

addback to summary
private static long[] add(long[] first, long[] second)
emptyPackStatsback to summary
private static long[] emptyPackStats()
fromStatsListback to summary
pack-priv static DfsBlockCacheTable.BlockCacheStats fromStatsList(List<DfsBlockCacheTable.BlockCacheStats> blockCacheStats)
getCurrentSizeback to summary
public long[] getCurrentSize()

Implements org.eclipse.jgit.internal.storage.dfs.DfsBlockCacheTable.BlockCacheStats.getCurrentSize.

Doc from org.eclipse.jgit.internal.storage.dfs.DfsBlockCacheTable.BlockCacheStats.getCurrentSize.

Get total number of bytes in the cache, per pack file extension.

Returns:long[]

total number of bytes in the cache, per pack file extension.

Annotations
@Override
getEvictionsback to summary
public long[] getEvictions()

Implements org.eclipse.jgit.internal.storage.dfs.DfsBlockCacheTable.BlockCacheStats.getEvictions.

Doc from org.eclipse.jgit.internal.storage.dfs.DfsBlockCacheTable.BlockCacheStats.getEvictions.

Get number of evictions performed due to cache being full, per pack file extension.

Returns:long[]

the number of evictions performed due to cache being full, per pack file extension.

Annotations
@Override
getHitCountback to summary
public long[] getHitCount()

Implements org.eclipse.jgit.internal.storage.dfs.DfsBlockCacheTable.BlockCacheStats.getHitCount.

Doc from org.eclipse.jgit.internal.storage.dfs.DfsBlockCacheTable.BlockCacheStats.getHitCount.

Get number of requests for items in the cache, per pack file extension.

Returns:long[]

the number of requests for items in the cache, per pack file extension.

Annotations
@Override
getHitRatioback to summary
public long[] getHitRatio()

Implements org.eclipse.jgit.internal.storage.dfs.DfsBlockCacheTable.BlockCacheStats.getHitRatio.

Doc from org.eclipse.jgit.internal.storage.dfs.DfsBlockCacheTable.BlockCacheStats.getHitRatio.

Get hit ratios.

Returns:long[]

hit ratios.

Annotations
@Override
getMissCountback to summary
public long[] getMissCount()

Implements org.eclipse.jgit.internal.storage.dfs.DfsBlockCacheTable.BlockCacheStats.getMissCount.

Doc from org.eclipse.jgit.internal.storage.dfs.DfsBlockCacheTable.BlockCacheStats.getMissCount.

Get number of requests for items not in the cache, per pack file extension.

Returns:long[]

the number of requests for items not in the cache, per pack file extension.

Annotations
@Override
getNameback to summary
public String getName()

Implements org.eclipse.jgit.internal.storage.dfs.DfsBlockCacheTable.BlockCacheStats.getName.

Doc from org.eclipse.jgit.internal.storage.dfs.DfsBlockCacheTable.BlockCacheStats.getName.

Get the name of the block cache generating this instance.

Returns:String

this cache's name.

Annotations
@Override
getTotalRequestCountback to summary
public long[] getTotalRequestCount()

Implements org.eclipse.jgit.internal.storage.dfs.DfsBlockCacheTable.BlockCacheStats.getTotalRequestCount.

Doc from org.eclipse.jgit.internal.storage.dfs.DfsBlockCacheTable.BlockCacheStats.getTotalRequestCount.

Get total number of requests (hit + miss), per pack file extension.

Returns:long[]

total number of requests (hit + miss), per pack file extension.

Annotations
@Override