Add needsCheckpoint

Test: Call needsCheckpoint on java side
Change-Id: If991c5b7902c811943d03412d80cebef9e2eb001
2 files changed