| Modifier and Type | Field and Description |
|---|---|
| private final AtomicReference | liveBytes
Number of bytes currently loaded in the cache, per pack file extension. |
| private final String | |
| private final AtomicReference | statEvict
Number of blocks evicted due to cache being full, per pack file extension. |
| private final AtomicReference | statHit
Number of times a block was found in the cache, per pack file extension. |
| private final AtomicReference | statMiss
Number of times a block was not found, and had to be loaded, per pack file extension. |
| Access | Constructor and Description |
|---|---|
| pack-priv | |
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv void | addToLiveBytes(DfsStreamKey
key identifying which liveBytes entry to update. key, long amount to increment the count by. size)Add |
| public long[] | getCurrentSize()
Implements org. Get total number of bytes in the cache, per pack file extension. |
| public long[] | getEvictions()
Implements org. Get number of evictions performed due to cache being full, per pack file extension. |
| public long[] | getHitCount()
Implements org. Get number of requests for items in the cache, per pack file extension. |
| public long[] | getHitRatio()
Implements org. Get hit ratios. |
| public long[] | getMissCount()
Implements org. Get number of requests for items not in the cache, per pack file extension. |
| public String | getName()
Implements org. Get the name of the block cache generating this instance. |
| private static AtomicLong | |
| private static long[] | |
| public long[] | getTotalRequestCount()
Implements org. Get total number of requests (hit + miss), per pack file extension. |
| pack-priv void | incrementEvict(DfsStreamKey
key identifying which liveBytes entry to update. key)Increment the |
| pack-priv void | incrementHit(DfsStreamKey
key identifying which liveBytes entry to update. key)Increment the |
| pack-priv void | incrementMiss(DfsStreamKey
key identifying which liveBytes entry to update. key)Increment the |
| private static AtomicLong[] |
| liveBytes | back to summary |
|---|---|
| private final AtomicReference<AtomicLong[]> liveBytes Number of bytes currently loaded in the cache, per pack file extension. | |
| name | back to summary |
|---|---|
| private final String name | |
| statEvict | back to summary |
|---|---|
| private final AtomicReference<AtomicLong[]> statEvict Number of blocks evicted due to cache being full, per pack file extension. | |
| statHit | back to summary |
|---|---|
| private final AtomicReference<AtomicLong[]> statHit Number of times a block was found in the cache, per pack file extension. | |
| statMiss | back to summary |
|---|---|
| private final AtomicReference<AtomicLong[]> statMiss Number of times a block was not found, and had to be loaded, per pack file extension. | |
| DfsBlockCacheStats | back to summary |
|---|---|
| pack-priv DfsBlockCacheStats() | |
| DfsBlockCacheStats | back to summary |
|---|---|
| pack-priv DfsBlockCacheStats(String name) | |
| addToLiveBytes | back to summary |
|---|---|
| pack-priv void addToLiveBytes(DfsStreamKey key, long size) Add
| |
| getCurrentSize | back to summary |
|---|---|
| public long[] getCurrentSize() Implements org. Doc from org. Get total number of bytes in the cache, per pack file extension.
| |
| getEvictions | back to summary |
|---|---|
| public long[] getEvictions() Implements org. Doc from org. Get number of evictions performed due to cache being full, per pack file extension.
| |
| getHitCount | back to summary |
|---|---|
| public long[] getHitCount() Implements org. Doc from org. Get number of requests for items in the cache, per pack file extension.
| |
| getHitRatio | back to summary |
|---|---|
| public long[] getHitRatio() Implements org. Doc from org. Get hit ratios.
| |
| getMissCount | back to summary |
|---|---|
| public long[] getMissCount() Implements org. Doc from org. Get number of requests for items not in the cache, per pack file extension.
| |
| getName | back to summary |
|---|---|
| public String getName() Implements org. Doc from org. Get the name of the block cache generating this instance. | |
| getStat | back to summary |
|---|---|
| private static AtomicLong getStat(AtomicReference<AtomicLong[]> stats, DfsStreamKey key) | |
| getStatVals | back to summary |
|---|---|
| private static long[] getStatVals(AtomicReference<AtomicLong[]> stat) | |
| getTotalRequestCount | back to summary |
|---|---|
| public long[] getTotalRequestCount() Implements org. Doc from org. Get total number of requests (hit + miss), per pack file extension.
| |
| incrementEvict | back to summary |
|---|---|
| pack-priv void incrementEvict(DfsStreamKey key) Increment the
| |
| incrementHit | back to summary |
|---|---|
| pack-priv void incrementHit(DfsStreamKey key) Increment the
| |
| incrementMiss | back to summary |
|---|---|
| pack-priv void incrementMiss(DfsStreamKey key) Increment the
| |
| newCounters | back to summary |
|---|---|
| private static AtomicLong[] newCounters() | |