public class StreamLockfile
extends java.lang.Object
Encapsulates the behavior for 'locking' any streamed sttables to a node.
If a process crashes while converting a set of SSTableWriters to SSTReaders
(meaning, some subset of SSTWs were converted, but not the entire set), we want
to disregard the entire set as we will surely have missing data (by definition).
Basic behavior id to write out the names of all SSTWs to a file, one SSTW per line,
and then delete the file when complete (normal behavior). This should happen before
converting any SSTWs. Thus, the lockfile is created, some SSTWs are converted,
and if the process crashes, on restart, we look for any existing lockfile, and delete
any referenced SSTRs.