Interface LocalRepoLoader
-
- All Known Implementing Classes:
LocalRepoLoaderImpl
public interface LocalRepoLoaderA facility for loadingRepoPackages that are installed locally.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.Map<java.lang.String,LocalPackage>getPackages(ProgressIndicator progress)Gets our packages, loading them if necessary.booleanneedsUpdate(long lastLocalRefreshMs, boolean deepCheck)Checks whether it looks like we need to be reloaded.
-
-
-
Method Detail
-
getPackages
@NonNull java.util.Map<java.lang.String,LocalPackage> getPackages(@NonNull ProgressIndicator progress)
Gets our packages, loading them if necessary.- Parameters:
progress- AProgressIndicatorused to show progress (unimplemented) and logging.- Returns:
- A map of install path to
LocalPackage, containing all the packages found in the given root.
-
needsUpdate
boolean needsUpdate(long lastLocalRefreshMs, boolean deepCheck)Checks whether it looks like we need to be reloaded.- Parameters:
lastLocalRefreshMs- The last time a load was donedeepCheck- How vigorously to check. Iffalse, the check should be quite fast. Iftrueit should still be reasonably fast, but less so.- Returns:
trueif a reload is needed,falseotherwise.
-
-