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 |
---|---|
void |
delete(String path)
Delete a file cluster-wide
|
void |
deleteLocal(String path)
Delete file from local file system
|
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
|
Map<String,byte[]> |
getKeys()
Get all the keys in the package store.
|
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 |
refresh(String path)
Refresh the files in a path.
|
void |
syncToAllNodes(String path)
Sync a local file to all nodes.
|
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)
void syncToAllNodes(String path) throws IOException
IOException
PackageStore.FileType getType(String path, boolean fetchMissing)
Map<String,byte[]> getKeys() throws IOException
IOException
void refresh(String path)
path
- the path to be refreshed.void delete(String path)
void deleteLocal(String path)
Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.