Interface RemotePackage

    • Method Detail

      • getSource

        @NonNull
        RepositorySource getSource()
        Returns:
        The RepositorySource from which we got this package.
      • setSource

        void setSource​(@NonNull
                       RepositorySource source)
        Parameters:
        source - The RepositorySource from which we got this package.
      • getArchive

        @Nullable
        Archive getArchive()
        Returns:
        The archive in this package compatible with the current hardware, OS, and JDK, or null if there is none.
      • getChannel

        @NonNull
        Channel getChannel()
        Gets the update channel (e.g. beta, stable) for this package. Channels are sorted in lexicographic order, with the first (and default) being the most stable.
      • getInstallDir

        @NonNull
        java.nio.file.Path getInstallDir​(@NonNull
                                         RepoManager manager,
                                         @NonNull
                                         ProgressIndicator progress)
        Gets the path into which this RemotePackage should be installed.
        Throws:
        java.io.IOException - if the generated path is invalid, or manager doesn't support a local repository.