public void tryAdd ( AbstractCheckpointStats checkpoint ) { // Don't add in progress checkpoints as they will be replaced by their // completed/failed version eventually. if ( cache != null && checkpoint != null && ! checkpoint . getStatus ( ) . isInProgress ( ) ) { cache . put ( checkpoint . getCheckpointId ( ) , checkpoint ) ; } }
Try to add the checkpoint to the cache .