public class PackageStoreAPI extends Object
Modifier and Type | Class and Description |
---|---|
class |
PackageStoreAPI.FSRead |
class |
PackageStoreAPI.FSWrite |
static class |
PackageStoreAPI.MetaData |
Modifier and Type | Field and Description |
---|---|
static String |
KEYS_DIR |
static String |
PACKAGESTORE_DIRECTORY |
PackageStoreAPI.FSRead |
readAPI |
static String |
TRUSTED_DIR |
PackageStoreAPI.FSWrite |
writeAPI |
Constructor and Description |
---|
PackageStoreAPI(CoreContainer coreContainer) |
Modifier and Type | Method and Description |
---|---|
static PackageStoreAPI.MetaData |
_createJsonMetaData(ByteBuffer buf,
List<String> signatures)
Creates a JSON string with the metadata
|
PackageStore |
getPackageStore() |
ArrayList<String> |
shuffledNodes()
get a list of nodes randomly shuffled
* @lucene.internal
|
void |
validate(List<String> sigs,
PackageStore.FileEntry entry,
boolean isFirstAttempt)
Validate a file for signature
|
void |
validateFiles(List<String> files,
boolean validateSignatures,
Consumer<String> errs) |
static void |
validateName(String path,
boolean failForTrusted) |
public static final String PACKAGESTORE_DIRECTORY
public static final String TRUSTED_DIR
public static final String KEYS_DIR
public final PackageStoreAPI.FSRead readAPI
public final PackageStoreAPI.FSWrite writeAPI
public PackageStoreAPI(CoreContainer coreContainer)
public PackageStore getPackageStore()
public ArrayList<String> shuffledNodes()
public void validateFiles(List<String> files, boolean validateSignatures, Consumer<String> errs)
public static PackageStoreAPI.MetaData _createJsonMetaData(ByteBuffer buf, List<String> signatures) throws IOException
IOException
public static void validateName(String path, boolean failForTrusted)
public void validate(List<String> sigs, PackageStore.FileEntry entry, boolean isFirstAttempt) throws SolrException, IOException
sigs
- the signatures. atleast one should succeedentry
- The file detailsisFirstAttempt
- If there is a failureSolrException
IOException
Copyright © 2000-2020 Apache Software Foundation. All Rights Reserved.