backtype.storm.utils
Class VersionedStore
java.lang.Object
backtype.storm.utils.VersionedStore
public class VersionedStore
- extends Object
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
VersionedStore
public VersionedStore(String path)
throws IOException
- Throws:
IOException
getRoot
public String getRoot()
versionPath
public String versionPath(long version)
mostRecentVersionPath
public String mostRecentVersionPath()
throws IOException
- Throws:
IOException
mostRecentVersionPath
public String mostRecentVersionPath(long maxVersion)
throws IOException
- Throws:
IOException
mostRecentVersion
public Long mostRecentVersion()
throws IOException
- Throws:
IOException
mostRecentVersion
public Long mostRecentVersion(long maxVersion)
throws IOException
- Throws:
IOException
createVersion
public String createVersion()
throws IOException
- Throws:
IOException
createVersion
public String createVersion(long version)
throws IOException
- Throws:
IOException
failVersion
public void failVersion(String path)
throws IOException
- Throws:
IOException
deleteVersion
public void deleteVersion(long version)
throws IOException
- Throws:
IOException
succeedVersion
public void succeedVersion(String path)
throws IOException
- Throws:
IOException
cleanup
public void cleanup()
throws IOException
- Throws:
IOException
cleanup
public void cleanup(int versionsToKeep)
throws IOException
- Throws:
IOException
getAllVersions
public List<Long> getAllVersions()
throws IOException
- Sorted from most recent to oldest
- Throws:
IOException
Copyright © 2014 The Apache Software Foundation. All Rights Reserved.