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|
|Modifier and Type||Method and Description|
Try to add the checkpoint to the cache.
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.
nullif checkpoint not found.
Copyright © 2014–2021 The Apache Software Foundation. All rights reserved.