public String mostRecentVersionPath(long maxVersion) throws IOException { Long v = mostRecentVersion(maxVersion); if (v == null) { return null; } return versionPath(v); }
public String createVersion(long version) throws IOException { String ret = versionPath(version); if (getAllVersions().contains(version)) { throw new RuntimeException("Version already exists or data already exists"); } else { return ret; } }
public String mostRecentVersionPath() throws IOException { Long v = mostRecentVersion(); if (v == null) { return null; } return versionPath(v); }
public void deleteVersion(long version) throws IOException { File versionFile = new File(versionPath(version)); File tokenFile = new File(tokenPath(version)); if (tokenFile.exists()) { FileUtils.forceDelete(tokenFile); } if (versionFile.exists()) { FileUtils.forceDelete(versionFile); } }
public String mostRecentVersionPath() throws IOException { Long v = mostRecentVersion(); if(v==null) return null; return versionPath(v); }
public String createVersion(long version) throws IOException { String ret = versionPath(version); if(getAllVersions().contains(version)) throw new RuntimeException("Version already exists or data already exists"); else return ret; }
public String mostRecentVersionPath(long maxVersion) throws IOException { Long v = mostRecentVersion(maxVersion); if(v==null) return null; return versionPath(v); }
public void deleteVersion(long version) throws IOException { File versionFile = new File(versionPath(version)); File tokenFile = new File(tokenPath(version)); if(tokenFile.exists()) { FileUtils.forceDelete(tokenFile); } if(versionFile.exists()) { FileUtils.forceDelete(versionFile); } }