public class RepositoryArtifactProvider extends CompositeArtifactProviderBaseImpl implements IRawArtifactProvider
Modifier and Type | Class and Description |
---|---|
private static class |
RepositoryArtifactProvider.ArtifactSinkExceptionWrapper |
private static class |
RepositoryArtifactProvider.BooleanStatusArtifactRequest |
(package private) static class |
RepositoryArtifactProvider.RepositoryLoader |
private static class |
RepositoryArtifactProvider.RetryTracker |
Modifier and Type | Field and Description |
---|---|
(package private) java.util.List<? extends org.eclipse.equinox.p2.repository.artifact.IArtifactRepository> |
repositories |
private RepositoryArtifactProvider.RepositoryLoader |
repositoryLoader |
(package private) ArtifactTransferPolicy |
transferPolicy |
Constructor and Description |
---|
RepositoryArtifactProvider(java.util.List<? extends org.eclipse.equinox.p2.repository.artifact.IArtifactRepository> repositories,
ArtifactTransferPolicy transferPolicy) |
RepositoryArtifactProvider(java.util.List<java.net.URI> artifactRepositories,
ArtifactTransferPolicy transferPolicy,
org.eclipse.equinox.p2.core.IProvisioningAgent agent) |
RepositoryArtifactProvider(RepositoryArtifactProvider.RepositoryLoader repositoryLoader,
ArtifactTransferPolicy transferPolicy) |
Modifier and Type | Method and Description |
---|---|
boolean |
contains(org.eclipse.equinox.p2.repository.artifact.IArtifactDescriptor descriptor)
Returns
true if this a provider for an artifact in the given format |
boolean |
contains(org.eclipse.equinox.p2.metadata.IArtifactKey key)
Returns
true if this is a provider for the given artifact. |
protected void |
getArtifactDescriptorsOfAllSources(org.eclipse.equinox.p2.metadata.IArtifactKey key,
java.util.Set<org.eclipse.equinox.p2.repository.artifact.IArtifactDescriptor> result) |
private boolean |
getArtifactFromAnyChildRepository(java.util.List<org.eclipse.equinox.p2.repository.artifact.IArtifactDescriptor> availableDescriptors,
org.eclipse.equinox.p2.repository.artifact.IArtifactRepository repository,
IArtifactSink sink,
java.util.List<org.eclipse.core.runtime.IStatus> statusCollector,
org.eclipse.core.runtime.IProgressMonitor monitor) |
private boolean |
getArtifactFromAnyFormatAvailableInRepository(org.eclipse.equinox.p2.repository.artifact.IArtifactRepository repository,
IArtifactSink sink,
java.util.List<org.eclipse.core.runtime.IStatus> statusCollector,
org.eclipse.core.runtime.IProgressMonitor monitor) |
private boolean |
getArtifactFromAnyMirror(java.util.List<org.eclipse.equinox.p2.repository.artifact.IArtifactDescriptor> availableDescriptors,
org.eclipse.equinox.p2.repository.artifact.IArtifactRepository repository,
IArtifactSink sink,
java.util.List<org.eclipse.core.runtime.IStatus> statusCollector,
RepositoryArtifactProvider.RetryTracker retryTracker,
org.eclipse.core.runtime.IProgressMonitor monitor) |
protected void |
getArtifactFromAnySource(IArtifactSink sink,
java.util.List<org.eclipse.core.runtime.IStatus> statusCollector,
org.eclipse.core.runtime.IProgressMonitor monitor) |
private boolean |
getArtifactFromOneMirror(java.util.List<org.eclipse.equinox.p2.repository.artifact.IArtifactDescriptor> availableDescriptors,
org.eclipse.equinox.p2.repository.artifact.IArtifactRepository repository,
IArtifactSink sink,
java.util.List<org.eclipse.core.runtime.IStatus> statusCollector,
RepositoryArtifactProvider.RetryTracker retryTracker,
org.eclipse.core.runtime.IProgressMonitor monitor) |
protected org.eclipse.core.runtime.Status |
getArtifactNotFoundError(java.lang.String artifact) |
protected void |
getRawArtifactFromAnySource(IRawArtifactSink sink,
org.eclipse.core.runtime.IProgressMonitor monitor,
java.util.List<org.eclipse.core.runtime.IStatus> statusCollector) |
private boolean |
getRawArtifactFromRepository(org.eclipse.equinox.p2.repository.artifact.IArtifactRepository repository,
IRawArtifactSink sink,
java.util.List<org.eclipse.core.runtime.IStatus> statusCollector,
org.eclipse.core.runtime.IProgressMonitor monitor) |
private static org.eclipse.equinox.p2.repository.artifact.IArtifactRepositoryManager |
getRepositoryManager(org.eclipse.equinox.p2.core.IProvisioningAgent agent) |
private org.eclipse.core.runtime.IStatus |
improveMessageIfError(org.eclipse.core.runtime.IStatus originalStatus,
org.eclipse.equinox.p2.repository.artifact.IArtifactRepository repository,
org.eclipse.equinox.p2.repository.artifact.IArtifactDescriptor currentDescriptor) |
protected void |
init() |
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) |
private org.eclipse.equinox.p2.query.IQueryable<org.eclipse.equinox.p2.metadata.IArtifactKey> |
repositoriesAsQueriable() |
protected void |
repositoriesLoaded() |
getArtifact, getArtifactDescriptors, getRawArtifact, isFatal, nonNull
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getArtifactDescriptors, getRawArtifact
getArtifact
private final RepositoryArtifactProvider.RepositoryLoader repositoryLoader
java.util.List<? extends org.eclipse.equinox.p2.repository.artifact.IArtifactRepository> repositories
final ArtifactTransferPolicy transferPolicy
public RepositoryArtifactProvider(java.util.List<? extends org.eclipse.equinox.p2.repository.artifact.IArtifactRepository> repositories, ArtifactTransferPolicy transferPolicy)
public RepositoryArtifactProvider(java.util.List<java.net.URI> artifactRepositories, ArtifactTransferPolicy transferPolicy, org.eclipse.equinox.p2.core.IProvisioningAgent agent)
RepositoryArtifactProvider(RepositoryArtifactProvider.RepositoryLoader repositoryLoader, ArtifactTransferPolicy transferPolicy)
private static org.eclipse.equinox.p2.repository.artifact.IArtifactRepositoryManager getRepositoryManager(org.eclipse.equinox.p2.core.IProvisioningAgent agent)
protected void init()
protected void repositoriesLoaded()
public boolean contains(org.eclipse.equinox.p2.metadata.IArtifactKey key)
IArtifactProvider
true
if this is a provider for the given artifact.contains
in interface IArtifactProvider
key
- An artifact keytrue
if this instance can provide the artifact for the given keypublic boolean contains(org.eclipse.equinox.p2.repository.artifact.IArtifactDescriptor descriptor)
IRawArtifactProvider
true
if this a provider for an artifact in the given formatcontains
in interface IRawArtifactProvider
descriptor
- An artifact descriptortrue
if this instance can provide the artifact as raw artifact in the
described formatprotected void getArtifactDescriptorsOfAllSources(org.eclipse.equinox.p2.metadata.IArtifactKey key, java.util.Set<org.eclipse.equinox.p2.repository.artifact.IArtifactDescriptor> result)
getArtifactDescriptorsOfAllSources
in class CompositeArtifactProviderBaseImpl
protected void getArtifactFromAnySource(IArtifactSink sink, java.util.List<org.eclipse.core.runtime.IStatus> statusCollector, org.eclipse.core.runtime.IProgressMonitor monitor) throws ArtifactSinkException
getArtifactFromAnySource
in class CompositeArtifactProviderBaseImpl
ArtifactSinkException
private boolean getArtifactFromAnyFormatAvailableInRepository(org.eclipse.equinox.p2.repository.artifact.IArtifactRepository repository, IArtifactSink sink, java.util.List<org.eclipse.core.runtime.IStatus> statusCollector, org.eclipse.core.runtime.IProgressMonitor monitor) throws ArtifactSinkException
ArtifactSinkException
private boolean getArtifactFromAnyChildRepository(java.util.List<org.eclipse.equinox.p2.repository.artifact.IArtifactDescriptor> availableDescriptors, org.eclipse.equinox.p2.repository.artifact.IArtifactRepository repository, IArtifactSink sink, java.util.List<org.eclipse.core.runtime.IStatus> statusCollector, org.eclipse.core.runtime.IProgressMonitor monitor) throws ArtifactSinkException
ArtifactSinkException
private boolean getArtifactFromAnyMirror(java.util.List<org.eclipse.equinox.p2.repository.artifact.IArtifactDescriptor> availableDescriptors, org.eclipse.equinox.p2.repository.artifact.IArtifactRepository repository, IArtifactSink sink, java.util.List<org.eclipse.core.runtime.IStatus> statusCollector, RepositoryArtifactProvider.RetryTracker retryTracker, org.eclipse.core.runtime.IProgressMonitor monitor) throws ArtifactSinkException
ArtifactSinkException
private boolean getArtifactFromOneMirror(java.util.List<org.eclipse.equinox.p2.repository.artifact.IArtifactDescriptor> availableDescriptors, org.eclipse.equinox.p2.repository.artifact.IArtifactRepository repository, IArtifactSink sink, java.util.List<org.eclipse.core.runtime.IStatus> statusCollector, RepositoryArtifactProvider.RetryTracker retryTracker, org.eclipse.core.runtime.IProgressMonitor monitor) throws ArtifactSinkException
ArtifactSinkException
protected void getRawArtifactFromAnySource(IRawArtifactSink sink, org.eclipse.core.runtime.IProgressMonitor monitor, java.util.List<org.eclipse.core.runtime.IStatus> statusCollector) throws ArtifactSinkException
getRawArtifactFromAnySource
in class CompositeArtifactProviderBaseImpl
ArtifactSinkException
private boolean getRawArtifactFromRepository(org.eclipse.equinox.p2.repository.artifact.IArtifactRepository repository, IRawArtifactSink sink, java.util.List<org.eclipse.core.runtime.IStatus> statusCollector, org.eclipse.core.runtime.IProgressMonitor monitor) throws ArtifactSinkException
ArtifactSinkException
private org.eclipse.core.runtime.IStatus improveMessageIfError(org.eclipse.core.runtime.IStatus originalStatus, org.eclipse.equinox.p2.repository.artifact.IArtifactRepository repository, org.eclipse.equinox.p2.repository.artifact.IArtifactDescriptor currentDescriptor)
protected org.eclipse.core.runtime.Status getArtifactNotFoundError(java.lang.String artifact)
getArtifactNotFoundError
in class CompositeArtifactProviderBaseImpl
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)
query
in interface org.eclipse.equinox.p2.query.IQueryable<org.eclipse.equinox.p2.metadata.IArtifactKey>
private org.eclipse.equinox.p2.query.IQueryable<org.eclipse.equinox.p2.metadata.IArtifactKey> repositoriesAsQueriable()