Package bm.machine
Class FilesStateStore
java.lang.Object
bm.machine.FilesStateStore
- All Implemented Interfaces:
StateStore,AutoCloseable
Provides a state store with one file per target holding the target's state.
Pro: immediately written once a target is done, so even with a hard kill of the build process, targets already updated are recorded as such.
Cons: The target name is only minimally encoded to form a file name. Special characters in target names will fail on some file systems.
-
Constructor Details
-
FilesStateStore
- Throws:
BuildProblemException
-
-
Method Details
-
saveHash
- Specified by:
saveHashin interfaceStateStore- Throws:
BuildProblemException
-
readHash
Description copied from interface:StateStoreGets a hash value for the given name.- Specified by:
readHashin interfaceStateStore- Returns:
- never
null, if no hash is available, returns an empty array. - Throws:
BuildProblemException
-