Package org.apache.solr.filestore
Class FileStoreUtils
- java.lang.Object
-
- org.apache.solr.filestore.FileStoreUtils
-
public class FileStoreUtils extends Object
Common utilities used by filestore-related code.
-
-
Constructor Summary
Constructors Constructor Description FileStoreUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ArrayList<String>
fetchAndShuffleRemoteLiveNodes(CoreContainer coreContainer)
Returns a shuffled list of all live nodes except the current hoststatic void
validate(FileStore fileStore, List<String> sigs, FileStore.FileEntry entry, boolean isFirstAttempt)
Validate a file for signaturestatic void
validateFiles(FileStore fileStore, List<String> files, boolean validateSignatures, Consumer<String> errs)
-
-
-
Method Detail
-
fetchAndShuffleRemoteLiveNodes
public static ArrayList<String> fetchAndShuffleRemoteLiveNodes(CoreContainer coreContainer)
Returns a shuffled list of all live nodes except the current host
-
validateFiles
public static void validateFiles(FileStore fileStore, List<String> files, boolean validateSignatures, Consumer<String> errs)
-
validate
public static void validate(FileStore fileStore, List<String> sigs, FileStore.FileEntry entry, boolean isFirstAttempt) throws org.apache.solr.common.SolrException, IOException
Validate a file for signature- Parameters:
sigs
- the signatures, at least one should succeedentry
- The file detailsisFirstAttempt
- If there is a failure- Throws:
org.apache.solr.common.SolrException
IOException
-
-