Class FeatureRootfileArtifactRepository

  • 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.IRepository<org.eclipse.equinox.p2.metadata.IArtifactKey>

    public class FeatureRootfileArtifactRepository
    extends TransientArtifactRepository
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.io.File outputDirectory  
      private java.util.Map<java.lang.String,​IP2Artifact> publishedArtifacts  
      private org.eclipse.equinox.p2.publisher.PublisherInfo publisherInfo  
      private static java.lang.String ROOTFILE_CLASSIFIER  
      private static java.lang.String ROOTFILE_EXTENSION  
      • 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
      FeatureRootfileArtifactRepository​(org.eclipse.equinox.p2.publisher.PublisherInfo publisherInfo, java.io.File outputDirectory)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      private java.io.OutputStream createRootfileOutputStream​(org.eclipse.equinox.p2.metadata.IArtifactKey artifactKey)  
      java.io.OutputStream getOutputStream​(org.eclipse.equinox.p2.repository.artifact.IArtifactDescriptor descriptor)  
      java.util.Map<java.lang.String,​IP2Artifact> getPublishedArtifacts()  
      (package private) java.lang.String getRootFileArtifactClassifier​(java.lang.String artifactId)  
      • Methods inherited from class org.eclipse.equinox.p2.repository.artifact.spi.AbstractArtifactRepository

        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, 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.IRepository

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

      • ROOTFILE_CLASSIFIER

        private static final java.lang.String ROOTFILE_CLASSIFIER
        See Also:
        Constant Field Values
      • ROOTFILE_EXTENSION

        private static final java.lang.String ROOTFILE_EXTENSION
        See Also:
        Constant Field Values
      • outputDirectory

        private final java.io.File outputDirectory
      • publisherInfo

        private final org.eclipse.equinox.p2.publisher.PublisherInfo publisherInfo
      • publishedArtifacts

        private java.util.Map<java.lang.String,​IP2Artifact> publishedArtifacts
    • Constructor Detail

      • FeatureRootfileArtifactRepository

        public FeatureRootfileArtifactRepository​(org.eclipse.equinox.p2.publisher.PublisherInfo publisherInfo,
                                                 java.io.File outputDirectory)
    • Method Detail

      • 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
        Overrides:
        getOutputStream in class TransientArtifactRepository
        Throws:
        org.eclipse.equinox.p2.core.ProvisionException
      • createRootfileOutputStream

        private java.io.OutputStream createRootfileOutputStream​(org.eclipse.equinox.p2.metadata.IArtifactKey artifactKey)
                                                         throws org.eclipse.equinox.p2.core.ProvisionException,
                                                                java.io.IOException
        Throws:
        org.eclipse.equinox.p2.core.ProvisionException
        java.io.IOException
      • getRootFileArtifactClassifier

        java.lang.String getRootFileArtifactClassifier​(java.lang.String artifactId)
      • getPublishedArtifacts

        public java.util.Map<java.lang.String,​IP2Artifact> getPublishedArtifacts()