Package org.apache.storm.utils
Class VersionedStore
java.lang.Object
org.apache.storm.utils.VersionedStore
- 
Constructor SummaryConstructorsConstructorDescriptionVersionedStore(String path, boolean createRootDir) Creates a store at the given path.
- 
Method SummaryModifier and TypeMethodDescriptionvoidcleanup()voidcleanup(int versionsToKeep) createVersion(long version) voiddeleteVersion(long version) voidfailVersion(String path) Sorted from most recent to oldest.getRoot()mostRecentVersion(long maxVersion) mostRecentVersionPath(long maxVersion) voidsucceedVersion(String path) versionPath(long version) 
- 
Constructor Details- 
VersionedStoreCreates a store at the given path.- Parameters:
- path- The path for the store
- createRootDir- option to create the path directory
- Throws:
- IOException
 
 
- 
- 
Method Details- 
getRoot
- 
versionPath
- 
mostRecentVersionPath- Throws:
- IOException
 
- 
mostRecentVersionPath- Throws:
- IOException
 
- 
mostRecentVersion- Throws:
- IOException
 
- 
mostRecentVersion- Throws:
- IOException
 
- 
createVersion- Throws:
- IOException
 
- 
createVersion- Throws:
- IOException
 
- 
failVersion- Throws:
- IOException
 
- 
deleteVersion- Throws:
- IOException
 
- 
succeedVersion- Throws:
- IOException
 
- 
cleanup- Throws:
- IOException
 
- 
cleanup- Throws:
- IOException
 
- 
getAllVersionsSorted from most recent to oldest.- Throws:
- IOException
 
 
-