public interface PackageStore
Modifier and Type | Interface and Description |
---|---|
static interface |
PackageStore.FileDetails |
static class |
PackageStore.FileEntry |
static class |
PackageStore.FileType |
Modifier and Type | Method and Description |
---|---|
boolean |
fetch(String path,
String from)
Fetch a resource from another node
internal API
|
void |
get(String path,
Consumer<PackageStore.FileEntry> filecontent,
boolean getMissing)
read file content from a given path
|
Path |
getRealpath(String path)
get the real path on filesystem
|
PackageStore.FileType |
getType(String path,
boolean fetchMissing)
The type of the resource
|
List<PackageStore.FileDetails> |
list(String path,
Predicate<String> predicate) |
void |
put(PackageStore.FileEntry fileEntry)
Store a file into the filestore.
|
void put(PackageStore.FileEntry fileEntry) throws IOException
IOException
void get(String path, Consumer<PackageStore.FileEntry> filecontent, boolean getMissing) throws IOException
IOException
List<PackageStore.FileDetails> list(String path, Predicate<String> predicate)
PackageStore.FileType getType(String path, boolean fetchMissing)
Copyright © 2000-2019 Apache Software Foundation. All Rights Reserved.