Interface ArtifactDownloadProvider


public interface ArtifactDownloadProvider
An ArtifactDownloadProvider can supply an alternative caching strategy for artifacts fetched from P2
  • Method Summary

    Modifier and Type
    Method
    Description
    org.eclipse.core.runtime.IStatus
    downloadArtifact(URI source, OutputStream target, org.eclipse.equinox.p2.repository.artifact.IArtifactDescriptor descriptor)
    Ask the provider to download the given artifact and transfer it to the given target
    int
     
  • Method Details

    • downloadArtifact

      org.eclipse.core.runtime.IStatus downloadArtifact(URI source, OutputStream target, org.eclipse.equinox.p2.repository.artifact.IArtifactDescriptor descriptor)
      Ask the provider to download the given artifact and transfer it to the given target
      Parameters:
      source - the source URI, might be a mirror URL
      target - the target where the result should be transfered to
      descriptor - the artifact descriptor to be queried
      Returns:
      a status of type cancel if this provider can't supply the artifact, or a DownloadStatus in case of success to supply additional information to P2, or an error if the download failed even though it should not.
    • getPriority

      int getPriority()
      Returns:
      the priority, higher values are considered first