io.datakernel.remotefs.FileNamingScheme Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of datakernel-fs Show documentation
Show all versions of datakernel-fs Show documentation
Package provides tools for building efficient, scalable remote file servers.
It utilizes CSP for fast and reliable file transfer.
The newest version!
package io.datakernel.remotefs;
import java.nio.file.Path;
public interface FileNamingScheme {
String encode(String name, long revision, boolean tombstone);
FilenameInfo decode(Path path, String name);
class FilenameInfo {
private final Path filePath;
private final String name;
private final long revision;
private final boolean tombstone;
public FilenameInfo(Path filePath, String name, long revision, boolean tombstone) {
this.filePath = filePath;
this.name = name;
this.revision = revision;
this.tombstone = tombstone;
}
public Path getFilePath() {
return filePath;
}
public String getName() {
return name;
}
public long getRevision() {
return revision;
}
public boolean isTombstone() {
return tombstone;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy