Class AbstractMetadataRepository2

  • All Implemented Interfaces:
    org.eclipse.core.runtime.IAdaptable, org.eclipse.equinox.p2.query.IQueryable<org.eclipse.equinox.p2.metadata.IInstallableUnit>, org.eclipse.equinox.p2.repository.IRepository<org.eclipse.equinox.p2.metadata.IInstallableUnit>, org.eclipse.equinox.p2.repository.metadata.IMetadataRepository

    public abstract class AbstractMetadataRepository2
    extends org.eclipse.equinox.p2.repository.spi.AbstractRepository<org.eclipse.equinox.p2.metadata.IInstallableUnit>
    implements org.eclipse.equinox.p2.repository.metadata.IMetadataRepository
    More reasonable base class for Tycho's metadata repositories than AbstractMetadataRepository.
    • Field Summary

      • 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 
      Modifier Constructor Description
      protected AbstractMetadataRepository2​(org.eclipse.equinox.p2.core.IProvisioningAgent agent, String name, String type, File location)
      Creates a metadata repository with the provided parameters (and some default values that are reasonable for Tycho).
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addReferences​(Collection<? extends org.eclipse.equinox.p2.repository.IRepositoryReference> references)  
      void compress​(org.eclipse.equinox.p2.core.IPool<org.eclipse.equinox.p2.metadata.IInstallableUnit> iuPool)  
      org.eclipse.core.runtime.IStatus executeBatch​(org.eclipse.equinox.p2.repository.IRunnableWithProgress runnable, org.eclipse.core.runtime.IProgressMonitor monitor)  
      Collection<org.eclipse.equinox.p2.repository.IRepositoryReference> getReferences()  
      • 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 interface org.eclipse.core.runtime.IAdaptable

        getAdapter
      • Methods inherited from interface org.eclipse.equinox.p2.repository.metadata.IMetadataRepository

        addInstallableUnits, removeAll, removeInstallableUnits
      • Methods inherited from interface org.eclipse.equinox.p2.query.IQueryable

        query
      • Methods inherited from interface org.eclipse.equinox.p2.repository.IRepository

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

      • AbstractMetadataRepository2

        protected AbstractMetadataRepository2​(org.eclipse.equinox.p2.core.IProvisioningAgent agent,
                                              String name,
                                              String type,
                                              File location)
        Creates a metadata repository with the provided parameters (and some default values that are reasonable for Tycho).
        Parameters:
        agent - the provisioning agent that may be used by repository
        name - the name of the repository
        type - the repository type as in IMetadataRepositoryManager.createRepository(URI, String, String, java.util.Map)
        location - the physical location of the repository
    • Method Detail

      • addReferences

        public void addReferences​(Collection<? extends org.eclipse.equinox.p2.repository.IRepositoryReference> references)
        Specified by:
        addReferences in interface org.eclipse.equinox.p2.repository.metadata.IMetadataRepository
      • getReferences

        public Collection<org.eclipse.equinox.p2.repository.IRepositoryReference> getReferences()
        Specified by:
        getReferences in interface org.eclipse.equinox.p2.repository.metadata.IMetadataRepository
      • executeBatch

        public org.eclipse.core.runtime.IStatus executeBatch​(org.eclipse.equinox.p2.repository.IRunnableWithProgress runnable,
                                                             org.eclipse.core.runtime.IProgressMonitor monitor)
        Specified by:
        executeBatch in interface org.eclipse.equinox.p2.repository.metadata.IMetadataRepository
      • compress

        public void compress​(org.eclipse.equinox.p2.core.IPool<org.eclipse.equinox.p2.metadata.IInstallableUnit> iuPool)
        Specified by:
        compress in interface org.eclipse.equinox.p2.repository.metadata.IMetadataRepository