public class CheckpointStatsCache extends Object
Having this cache in place for accessed stats improves the user experience quite a bit as accessed checkpoint stats stay available and don't expire. For example if you manage to click on the last checkpoint in the history, it is not available via the stats as soon as another checkpoint is triggered. With the cache in place, the checkpoint will still be available for investigation.
Constructor and Description |
---|
CheckpointStatsCache(int maxNumEntries) |
Modifier and Type | Method and Description |
---|---|
void |
tryAdd(AbstractCheckpointStats checkpoint)
Try to add the checkpoint to the cache.
|
AbstractCheckpointStats |
tryGet(long checkpointId)
Try to look up a checkpoint by it's ID in the cache.
|
public void tryAdd(AbstractCheckpointStats checkpoint)
checkpoint
- Checkpoint to be added.public AbstractCheckpointStats tryGet(long checkpointId)
checkpointId
- ID of the checkpoint to look up.null
if checkpoint not found.Copyright © 2014–2018 The Apache Software Foundation. All rights reserved.