Interface LocalRepoLoader

  • All Known Implementing Classes:
    LocalRepoLoaderImpl

    public interface LocalRepoLoader
    A facility for loading RepoPackages that are installed locally.
    • Method Detail

      • getPackages

        @NonNull
        java.util.Map<java.lang.String,​LocalPackage> getPackages​(@NonNull
                                                                       ProgressIndicator progress)
        Gets our packages, loading them if necessary.
        Parameters:
        progress - A ProgressIndicator used 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 done
        deepCheck - How vigorously to check. If false, the check should be quite fast. If true it should still be reasonably fast, but less so.
        Returns:
        true if a reload is needed, false otherwise.