public class DistribPackageStore extends Object implements PackageStore
PackageStore.FileDetails, PackageStore.FileEntry, PackageStore.FileType
Constructor and Description |
---|
DistribPackageStore(CoreContainer coreContainer) |
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> consumer,
boolean fetchmissing)
read file content from a given path
|
static Path |
getPackageStoreDirPath(Path solrHome) |
Path |
getRealpath(String path)
get the real path on filesystem
|
PackageStore.FileType |
getType(String path,
boolean fetchMissing)
The type of the resource
|
List |
list(String path,
Predicate<String> predicate) |
void |
put(PackageStore.FileEntry entry)
Store a file into the filestore.
|
public DistribPackageStore(CoreContainer coreContainer)
public Path getRealpath(String path)
PackageStore
getRealpath
in interface PackageStore
public void put(PackageStore.FileEntry entry) throws IOException
PackageStore
put
in interface PackageStore
IOException
public boolean fetch(String path, String from)
PackageStore
fetch
in interface PackageStore
public void get(String path, Consumer<PackageStore.FileEntry> consumer, boolean fetchmissing) throws IOException
PackageStore
get
in interface PackageStore
IOException
public List list(String path, Predicate<String> predicate)
list
in interface PackageStore
public PackageStore.FileType getType(String path, boolean fetchMissing)
PackageStore
getType
in interface PackageStore
Copyright © 2000-2019 Apache Software Foundation. All Rights Reserved.