Class LazyArtifactRepository

  • All Implemented Interfaces:
    org.eclipse.core.runtime.IAdaptable, org.eclipse.equinox.p2.query.IQueryable<org.eclipse.equinox.p2.metadata.IArtifactKey>, org.eclipse.equinox.p2.repository.artifact.IArtifactRepository, org.eclipse.equinox.p2.repository.artifact.IFileArtifactRepository, org.eclipse.equinox.p2.repository.IRepository<org.eclipse.equinox.p2.metadata.IArtifactKey>

    public class LazyArtifactRepository
    extends org.eclipse.equinox.p2.repository.artifact.spi.AbstractArtifactRepository
    implements org.eclipse.equinox.p2.repository.artifact.IFileArtifactRepository
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private org.eclipse.equinox.p2.repository.artifact.IArtifactRepository delegate  
      private java.util.function.BiFunction<java.net.URI,​org.eclipse.equinox.p2.core.IProvisioningAgent,​org.eclipse.equinox.p2.repository.artifact.IArtifactRepository> loader  
      • Fields inherited from interface org.eclipse.equinox.p2.repository.artifact.IArtifactRepository

        CODE_RETRY, PROP_RUNNABLE
      • Fields inherited from interface org.eclipse.equinox.p2.repository.IRepository

        ENABLED, NONE, PREFERENCE_NODE, PROP_COMPRESSED, PROP_DESCRIPTION, PROP_MIRRORS_BASE_URL, PROP_MIRRORS_URL, PROP_NAME, PROP_NICKNAME, PROP_PASSWORD, PROP_SYSTEM, PROP_TIMESTAMP, PROP_USERNAME, TYPE_ARTIFACT, TYPE_METADATA
    • Constructor Summary

      Constructors 
      Constructor Description
      LazyArtifactRepository​(org.eclipse.equinox.p2.core.IProvisioningAgent agent, java.net.URI uri, java.util.function.BiFunction<java.net.URI,​org.eclipse.equinox.p2.core.IProvisioningAgent,​org.eclipse.equinox.p2.repository.artifact.IArtifactRepository> loader)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean contains​(org.eclipse.equinox.p2.metadata.IArtifactKey key)  
      boolean contains​(org.eclipse.equinox.p2.repository.artifact.IArtifactDescriptor descriptor)  
      org.eclipse.equinox.p2.query.IQueryable<org.eclipse.equinox.p2.repository.artifact.IArtifactDescriptor> descriptorQueryable()  
      org.eclipse.core.runtime.IStatus getArtifact​(org.eclipse.equinox.p2.repository.artifact.IArtifactDescriptor descriptor, java.io.OutputStream destination, org.eclipse.core.runtime.IProgressMonitor monitor)  
      org.eclipse.equinox.p2.repository.artifact.IArtifactDescriptor[] getArtifactDescriptors​(org.eclipse.equinox.p2.metadata.IArtifactKey key)  
      java.io.File getArtifactFile​(org.eclipse.equinox.p2.metadata.IArtifactKey key)  
      java.io.File getArtifactFile​(org.eclipse.equinox.p2.repository.artifact.IArtifactDescriptor descriptor)  
      org.eclipse.core.runtime.IStatus getArtifacts​(org.eclipse.equinox.p2.repository.artifact.IArtifactRequest[] requests, org.eclipse.core.runtime.IProgressMonitor monitor)  
      private org.eclipse.equinox.p2.repository.artifact.IArtifactRepository getDelegate()  
      java.io.OutputStream getOutputStream​(org.eclipse.equinox.p2.repository.artifact.IArtifactDescriptor descriptor)  
      org.eclipse.core.runtime.IStatus getRawArtifact​(org.eclipse.equinox.p2.repository.artifact.IArtifactDescriptor descriptor, java.io.OutputStream destination, org.eclipse.core.runtime.IProgressMonitor monitor)  
      org.eclipse.equinox.p2.query.IQueryResult<org.eclipse.equinox.p2.metadata.IArtifactKey> query​(org.eclipse.equinox.p2.query.IQuery<org.eclipse.equinox.p2.metadata.IArtifactKey> query, org.eclipse.core.runtime.IProgressMonitor monitor)  
      • Methods inherited from class org.eclipse.equinox.p2.repository.artifact.spi.AbstractArtifactRepository

        addDescriptor, addDescriptor, addDescriptors, addDescriptors, createArtifactDescriptor, createArtifactKey, equals, executeBatch, hashCode, removeAll, removeAll, removeDescriptor, removeDescriptor, removeDescriptor, removeDescriptor, removeDescriptors, removeDescriptors, removeDescriptors, removeDescriptors
      • Methods inherited from class org.eclipse.equinox.p2.repository.spi.AbstractRepository

        assertModifiable, getDescription, getLocation, getName, getProperties, getProperty, getProvider, getProvisioningAgent, getType, getVersion, isModifiable, setDescription, setLocation, setName, setProperties, setProperty, setProperty, setProvider, setType, setVersion
      • Methods inherited from class org.eclipse.core.runtime.PlatformObject

        getAdapter
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface org.eclipse.core.runtime.IAdaptable

        getAdapter
      • Methods inherited from interface org.eclipse.equinox.p2.repository.artifact.IArtifactRepository

        addDescriptor, addDescriptor, addDescriptors, addDescriptors, createArtifactDescriptor, createArtifactKey, executeBatch, removeAll, removeAll, removeDescriptor, removeDescriptor, removeDescriptor, removeDescriptor, removeDescriptors, removeDescriptors, removeDescriptors, removeDescriptors
      • Methods inherited from interface org.eclipse.equinox.p2.repository.IRepository

        getDescription, getLocation, getName, getProperties, getProperty, getProvider, getProvisioningAgent, getType, getVersion, isModifiable, setProperty, setProperty
    • Field Detail

      • loader

        private java.util.function.BiFunction<java.net.URI,​org.eclipse.equinox.p2.core.IProvisioningAgent,​org.eclipse.equinox.p2.repository.artifact.IArtifactRepository> loader
      • delegate

        private org.eclipse.equinox.p2.repository.artifact.IArtifactRepository delegate
    • Constructor Detail

      • LazyArtifactRepository

        public LazyArtifactRepository​(org.eclipse.equinox.p2.core.IProvisioningAgent agent,
                                      java.net.URI uri,
                                      java.util.function.BiFunction<java.net.URI,​org.eclipse.equinox.p2.core.IProvisioningAgent,​org.eclipse.equinox.p2.repository.artifact.IArtifactRepository> loader)
    • Method Detail

      • getDelegate

        private org.eclipse.equinox.p2.repository.artifact.IArtifactRepository getDelegate()
      • getRawArtifact

        public org.eclipse.core.runtime.IStatus getRawArtifact​(org.eclipse.equinox.p2.repository.artifact.IArtifactDescriptor descriptor,
                                                               java.io.OutputStream destination,
                                                               org.eclipse.core.runtime.IProgressMonitor monitor)
        Specified by:
        getRawArtifact in interface org.eclipse.equinox.p2.repository.artifact.IArtifactRepository
      • descriptorQueryable

        public org.eclipse.equinox.p2.query.IQueryable<org.eclipse.equinox.p2.repository.artifact.IArtifactDescriptor> descriptorQueryable()
        Specified by:
        descriptorQueryable in interface org.eclipse.equinox.p2.repository.artifact.IArtifactRepository
      • query

        public org.eclipse.equinox.p2.query.IQueryResult<org.eclipse.equinox.p2.metadata.IArtifactKey> query​(org.eclipse.equinox.p2.query.IQuery<org.eclipse.equinox.p2.metadata.IArtifactKey> query,
                                                                                                             org.eclipse.core.runtime.IProgressMonitor monitor)
        Specified by:
        query in interface org.eclipse.equinox.p2.query.IQueryable<org.eclipse.equinox.p2.metadata.IArtifactKey>
      • contains

        public boolean contains​(org.eclipse.equinox.p2.repository.artifact.IArtifactDescriptor descriptor)
        Specified by:
        contains in interface org.eclipse.equinox.p2.repository.artifact.IArtifactRepository
        Specified by:
        contains in class org.eclipse.equinox.p2.repository.artifact.spi.AbstractArtifactRepository
      • contains

        public boolean contains​(org.eclipse.equinox.p2.metadata.IArtifactKey key)
        Specified by:
        contains in interface org.eclipse.equinox.p2.repository.artifact.IArtifactRepository
        Specified by:
        contains in class org.eclipse.equinox.p2.repository.artifact.spi.AbstractArtifactRepository
      • getArtifact

        public org.eclipse.core.runtime.IStatus getArtifact​(org.eclipse.equinox.p2.repository.artifact.IArtifactDescriptor descriptor,
                                                            java.io.OutputStream destination,
                                                            org.eclipse.core.runtime.IProgressMonitor monitor)
        Specified by:
        getArtifact in interface org.eclipse.equinox.p2.repository.artifact.IArtifactRepository
        Specified by:
        getArtifact in class org.eclipse.equinox.p2.repository.artifact.spi.AbstractArtifactRepository
      • getArtifactDescriptors

        public org.eclipse.equinox.p2.repository.artifact.IArtifactDescriptor[] getArtifactDescriptors​(org.eclipse.equinox.p2.metadata.IArtifactKey key)
        Specified by:
        getArtifactDescriptors in interface org.eclipse.equinox.p2.repository.artifact.IArtifactRepository
        Specified by:
        getArtifactDescriptors in class org.eclipse.equinox.p2.repository.artifact.spi.AbstractArtifactRepository
      • getArtifacts

        public org.eclipse.core.runtime.IStatus getArtifacts​(org.eclipse.equinox.p2.repository.artifact.IArtifactRequest[] requests,
                                                             org.eclipse.core.runtime.IProgressMonitor monitor)
        Specified by:
        getArtifacts in interface org.eclipse.equinox.p2.repository.artifact.IArtifactRepository
        Specified by:
        getArtifacts in class org.eclipse.equinox.p2.repository.artifact.spi.AbstractArtifactRepository
      • getOutputStream

        public java.io.OutputStream getOutputStream​(org.eclipse.equinox.p2.repository.artifact.IArtifactDescriptor descriptor)
                                             throws org.eclipse.equinox.p2.core.ProvisionException
        Specified by:
        getOutputStream in interface org.eclipse.equinox.p2.repository.artifact.IArtifactRepository
        Specified by:
        getOutputStream in class org.eclipse.equinox.p2.repository.artifact.spi.AbstractArtifactRepository
        Throws:
        org.eclipse.equinox.p2.core.ProvisionException
      • getArtifactFile

        public java.io.File getArtifactFile​(org.eclipse.equinox.p2.metadata.IArtifactKey key)
        Specified by:
        getArtifactFile in interface org.eclipse.equinox.p2.repository.artifact.IFileArtifactRepository
      • getArtifactFile

        public java.io.File getArtifactFile​(org.eclipse.equinox.p2.repository.artifact.IArtifactDescriptor descriptor)
        Specified by:
        getArtifactFile in interface org.eclipse.equinox.p2.repository.artifact.IFileArtifactRepository