public abstract class AbstractArtifactRepository2 extends org.eclipse.equinox.p2.repository.artifact.spi.AbstractArtifactRepository implements IRawArtifactProvider
IArtifactRepository implementations that fixes some problems in the p2 API
and p2's base class AbstractArtifactRepository.| Modifier | Constructor and Description |
|---|---|
protected |
AbstractArtifactRepository2(org.eclipse.equinox.p2.core.IProvisioningAgent agent,
String name,
String type,
String version,
URI location,
String description,
String provider,
Map<String,String> properties) |
| Modifier and Type | Method and Description |
|---|---|
void |
addDescriptor(org.eclipse.equinox.p2.repository.artifact.IArtifactDescriptor descriptor)
Deprecated.
This method requires assumptions about the internal artifact layout and may bring
the repository into an inconsistent state. Use
newAddingArtifactSink(IArtifactKey) or
newAddingRawArtifactSink(IArtifactDescriptor) instead. |
void |
addDescriptor(org.eclipse.equinox.p2.repository.artifact.IArtifactDescriptor descriptor,
org.eclipse.core.runtime.IProgressMonitor monitor)
Deprecated.
This method requires assumptions about the internal artifact layout and may bring
the repository into an inconsistent state. Use
newAddingArtifactSink(IArtifactKey) or
newAddingRawArtifactSink(IArtifactDescriptor) instead. |
void |
addDescriptors(org.eclipse.equinox.p2.repository.artifact.IArtifactDescriptor[] descriptors)
Deprecated.
This method requires assumptions about the internal artifact layout and may bring
the repository into an inconsistent state. Use
newAddingArtifactSink(IArtifactKey) or
newAddingRawArtifactSink(IArtifactDescriptor) instead. |
void |
addDescriptors(org.eclipse.equinox.p2.repository.artifact.IArtifactDescriptor[] descriptors,
org.eclipse.core.runtime.IProgressMonitor monitor)
Deprecated.
This method requires assumptions about the internal artifact layout and may bring
the repository into an inconsistent state. Use
newAddingArtifactSink(IArtifactKey) or
newAddingRawArtifactSink(IArtifactDescriptor) instead. |
org.eclipse.core.runtime.IStatus |
getArtifact(org.eclipse.equinox.p2.repository.artifact.IArtifactDescriptor descriptor,
OutputStream destination,
org.eclipse.core.runtime.IProgressMonitor monitor)
Deprecated.
Obsolete. Use
IArtifactProvider.getArtifact(IArtifactSink, IProgressMonitor) instead. |
org.eclipse.core.runtime.IStatus |
getArtifacts(org.eclipse.equinox.p2.repository.artifact.IArtifactRequest[] requests,
org.eclipse.core.runtime.IProgressMonitor monitor) |
OutputStream |
getOutputStream(org.eclipse.equinox.p2.repository.artifact.IArtifactDescriptor descriptor)
Deprecated.
The commit logic of this method is undocumented and brittle (bug 400442). Use
newAddingArtifactSink(IArtifactKey) or
newAddingRawArtifactSink(IArtifactDescriptor) instead. |
org.eclipse.core.runtime.IStatus |
getRawArtifact(org.eclipse.equinox.p2.repository.artifact.IArtifactDescriptor descriptor,
OutputStream destination,
org.eclipse.core.runtime.IProgressMonitor monitor)
Deprecated.
Obsolete. Use
IRawArtifactProvider.getRawArtifact(IRawArtifactSink, IProgressMonitor)
instead. |
protected abstract void |
internalAddDescriptor(org.eclipse.equinox.p2.repository.artifact.IArtifactDescriptor descriptor) |
protected abstract void |
internalRemoveAllDescriptors() |
protected abstract void |
internalRemoveDescriptor(org.eclipse.equinox.p2.repository.artifact.IArtifactDescriptor descriptor) |
protected abstract void |
internalRemoveDescriptors(org.eclipse.equinox.p2.repository.artifact.IArtifactDescriptor[] descriptors) |
protected abstract void |
internalRemoveDescriptors(org.eclipse.equinox.p2.metadata.IArtifactKey key) |
protected abstract void |
internalRemoveDescriptors(org.eclipse.equinox.p2.metadata.IArtifactKey[] keys) |
protected abstract void |
internalStore(org.eclipse.core.runtime.IProgressMonitor monitor) |
protected static boolean |
isFatal(org.eclipse.core.runtime.IStatus status) |
abstract IArtifactSink |
newAddingArtifactSink(org.eclipse.equinox.p2.metadata.IArtifactKey key)
Returns a new
IArtifactSink instance that adds the received artifact to this
repository on IArtifactSink.commitWrite(). |
abstract IRawArtifactSink |
newAddingRawArtifactSink(org.eclipse.equinox.p2.repository.artifact.IArtifactDescriptor descriptor)
Returns a new
IRawArtifactSink instance that adds the received artifact to this
repository on IArtifactSink.commitWrite(). |
void |
removeAll() |
void |
removeAll(org.eclipse.core.runtime.IProgressMonitor monitor) |
void |
removeDescriptor(org.eclipse.equinox.p2.repository.artifact.IArtifactDescriptor descriptor) |
void |
removeDescriptor(org.eclipse.equinox.p2.repository.artifact.IArtifactDescriptor descriptor,
org.eclipse.core.runtime.IProgressMonitor monitor) |
void |
removeDescriptor(org.eclipse.equinox.p2.metadata.IArtifactKey key) |
void |
removeDescriptor(org.eclipse.equinox.p2.metadata.IArtifactKey key,
org.eclipse.core.runtime.IProgressMonitor monitor) |
void |
removeDescriptors(org.eclipse.equinox.p2.repository.artifact.IArtifactDescriptor[] descriptors) |
void |
removeDescriptors(org.eclipse.equinox.p2.repository.artifact.IArtifactDescriptor[] descriptors,
org.eclipse.core.runtime.IProgressMonitor monitor) |
void |
removeDescriptors(org.eclipse.equinox.p2.metadata.IArtifactKey[] keys) |
void |
removeDescriptors(org.eclipse.equinox.p2.metadata.IArtifactKey[] keys,
org.eclipse.core.runtime.IProgressMonitor monitor) |
protected static void |
setStatusOnStreamIfPossible(OutputStream destination,
org.eclipse.core.runtime.IStatus status) |
contains, contains, createArtifactDescriptor, createArtifactKey, equals, executeBatch, getArtifactDescriptors, hashCodeassertModifiable, getDescription, getLocation, getName, getProperties, getProperty, getProvider, getProvisioningAgent, getType, getVersion, isModifiable, setDescription, setLocation, setName, setProperties, setProperty, setProperty, setProvider, setType, setVersionclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitcontains, getArtifactDescriptors, getRawArtifactcontains, getArtifactdescriptorQueryableprotected abstract void internalAddDescriptor(org.eclipse.equinox.p2.repository.artifact.IArtifactDescriptor descriptor)
protected abstract void internalStore(org.eclipse.core.runtime.IProgressMonitor monitor)
@Deprecated public final void addDescriptor(org.eclipse.equinox.p2.repository.artifact.IArtifactDescriptor descriptor)
newAddingArtifactSink(IArtifactKey) or
newAddingRawArtifactSink(IArtifactDescriptor) instead.addDescriptor in interface org.eclipse.equinox.p2.repository.artifact.IArtifactRepositoryaddDescriptor in class org.eclipse.equinox.p2.repository.artifact.spi.AbstractArtifactRepository@Deprecated public final void addDescriptor(org.eclipse.equinox.p2.repository.artifact.IArtifactDescriptor descriptor, org.eclipse.core.runtime.IProgressMonitor monitor)
newAddingArtifactSink(IArtifactKey) or
newAddingRawArtifactSink(IArtifactDescriptor) instead.addDescriptor in interface org.eclipse.equinox.p2.repository.artifact.IArtifactRepositoryaddDescriptor in class org.eclipse.equinox.p2.repository.artifact.spi.AbstractArtifactRepository@Deprecated public final void addDescriptors(org.eclipse.equinox.p2.repository.artifact.IArtifactDescriptor[] descriptors)
newAddingArtifactSink(IArtifactKey) or
newAddingRawArtifactSink(IArtifactDescriptor) instead.addDescriptors in interface org.eclipse.equinox.p2.repository.artifact.IArtifactRepositoryaddDescriptors in class org.eclipse.equinox.p2.repository.artifact.spi.AbstractArtifactRepository@Deprecated public final void addDescriptors(org.eclipse.equinox.p2.repository.artifact.IArtifactDescriptor[] descriptors, org.eclipse.core.runtime.IProgressMonitor monitor)
newAddingArtifactSink(IArtifactKey) or
newAddingRawArtifactSink(IArtifactDescriptor) instead.addDescriptors in interface org.eclipse.equinox.p2.repository.artifact.IArtifactRepositoryaddDescriptors in class org.eclipse.equinox.p2.repository.artifact.spi.AbstractArtifactRepositoryprotected abstract void internalRemoveDescriptor(org.eclipse.equinox.p2.repository.artifact.IArtifactDescriptor descriptor)
protected abstract void internalRemoveDescriptors(org.eclipse.equinox.p2.repository.artifact.IArtifactDescriptor[] descriptors)
protected abstract void internalRemoveDescriptors(org.eclipse.equinox.p2.metadata.IArtifactKey key)
protected abstract void internalRemoveDescriptors(org.eclipse.equinox.p2.metadata.IArtifactKey[] keys)
protected abstract void internalRemoveAllDescriptors()
public final void removeDescriptor(org.eclipse.equinox.p2.repository.artifact.IArtifactDescriptor descriptor)
removeDescriptor in interface org.eclipse.equinox.p2.repository.artifact.IArtifactRepositoryremoveDescriptor in class org.eclipse.equinox.p2.repository.artifact.spi.AbstractArtifactRepositorypublic final void removeDescriptor(org.eclipse.equinox.p2.repository.artifact.IArtifactDescriptor descriptor,
org.eclipse.core.runtime.IProgressMonitor monitor)
removeDescriptor in interface org.eclipse.equinox.p2.repository.artifact.IArtifactRepositoryremoveDescriptor in class org.eclipse.equinox.p2.repository.artifact.spi.AbstractArtifactRepositorypublic final void removeDescriptors(org.eclipse.equinox.p2.repository.artifact.IArtifactDescriptor[] descriptors)
removeDescriptors in interface org.eclipse.equinox.p2.repository.artifact.IArtifactRepositoryremoveDescriptors in class org.eclipse.equinox.p2.repository.artifact.spi.AbstractArtifactRepositorypublic final void removeDescriptors(org.eclipse.equinox.p2.repository.artifact.IArtifactDescriptor[] descriptors,
org.eclipse.core.runtime.IProgressMonitor monitor)
removeDescriptors in interface org.eclipse.equinox.p2.repository.artifact.IArtifactRepositoryremoveDescriptors in class org.eclipse.equinox.p2.repository.artifact.spi.AbstractArtifactRepositorypublic final void removeDescriptor(org.eclipse.equinox.p2.metadata.IArtifactKey key)
removeDescriptor in interface org.eclipse.equinox.p2.repository.artifact.IArtifactRepositoryremoveDescriptor in class org.eclipse.equinox.p2.repository.artifact.spi.AbstractArtifactRepositorypublic final void removeDescriptor(org.eclipse.equinox.p2.metadata.IArtifactKey key,
org.eclipse.core.runtime.IProgressMonitor monitor)
removeDescriptor in interface org.eclipse.equinox.p2.repository.artifact.IArtifactRepositoryremoveDescriptor in class org.eclipse.equinox.p2.repository.artifact.spi.AbstractArtifactRepositorypublic final void removeDescriptors(org.eclipse.equinox.p2.metadata.IArtifactKey[] keys)
removeDescriptors in interface org.eclipse.equinox.p2.repository.artifact.IArtifactRepositoryremoveDescriptors in class org.eclipse.equinox.p2.repository.artifact.spi.AbstractArtifactRepositorypublic final void removeDescriptors(org.eclipse.equinox.p2.metadata.IArtifactKey[] keys,
org.eclipse.core.runtime.IProgressMonitor monitor)
removeDescriptors in interface org.eclipse.equinox.p2.repository.artifact.IArtifactRepositoryremoveDescriptors in class org.eclipse.equinox.p2.repository.artifact.spi.AbstractArtifactRepositorypublic final void removeAll()
removeAll in interface org.eclipse.equinox.p2.repository.artifact.IArtifactRepositoryremoveAll in class org.eclipse.equinox.p2.repository.artifact.spi.AbstractArtifactRepositorypublic final void removeAll(org.eclipse.core.runtime.IProgressMonitor monitor)
removeAll in interface org.eclipse.equinox.p2.repository.artifact.IArtifactRepositoryremoveAll in class org.eclipse.equinox.p2.repository.artifact.spi.AbstractArtifactRepositorypublic abstract IArtifactSink newAddingArtifactSink(org.eclipse.equinox.p2.metadata.IArtifactKey key) throws org.eclipse.equinox.p2.core.ProvisionException
IArtifactSink instance that adds the received artifact to this
repository on IArtifactSink.commitWrite().key - The artifact key to be added to this repositoryorg.eclipse.equinox.p2.core.ProvisionException - if the artifact is already stored in the repository (in canonical format)public abstract IRawArtifactSink newAddingRawArtifactSink(org.eclipse.equinox.p2.repository.artifact.IArtifactDescriptor descriptor) throws org.eclipse.equinox.p2.core.ProvisionException
IRawArtifactSink instance that adds the received artifact to this
repository on IArtifactSink.commitWrite().descriptor - The artifact descriptor to the added to this repositoryorg.eclipse.equinox.p2.core.ProvisionException - if the artifact is already stored in the repository in the given format.@Deprecated public final OutputStream getOutputStream(org.eclipse.equinox.p2.repository.artifact.IArtifactDescriptor descriptor) throws org.eclipse.equinox.p2.core.ProvisionException
newAddingArtifactSink(IArtifactKey) or
newAddingRawArtifactSink(IArtifactDescriptor) instead.getOutputStream in interface org.eclipse.equinox.p2.repository.artifact.IArtifactRepositorygetOutputStream in class org.eclipse.equinox.p2.repository.artifact.spi.AbstractArtifactRepositoryorg.eclipse.equinox.p2.core.ProvisionException@Deprecated public org.eclipse.core.runtime.IStatus getArtifact(org.eclipse.equinox.p2.repository.artifact.IArtifactDescriptor descriptor, OutputStream destination, org.eclipse.core.runtime.IProgressMonitor monitor)
IArtifactProvider.getArtifact(IArtifactSink, IProgressMonitor) instead.getArtifact in interface org.eclipse.equinox.p2.repository.artifact.IArtifactRepositorygetArtifact in class org.eclipse.equinox.p2.repository.artifact.spi.AbstractArtifactRepository@Deprecated public org.eclipse.core.runtime.IStatus getRawArtifact(org.eclipse.equinox.p2.repository.artifact.IArtifactDescriptor descriptor, OutputStream destination, org.eclipse.core.runtime.IProgressMonitor monitor)
IRawArtifactProvider.getRawArtifact(IRawArtifactSink, IProgressMonitor)
instead.getRawArtifact in interface org.eclipse.equinox.p2.repository.artifact.IArtifactRepositorypublic org.eclipse.core.runtime.IStatus getArtifacts(org.eclipse.equinox.p2.repository.artifact.IArtifactRequest[] requests,
org.eclipse.core.runtime.IProgressMonitor monitor)
getArtifacts in interface org.eclipse.equinox.p2.repository.artifact.IArtifactRepositorygetArtifacts in class org.eclipse.equinox.p2.repository.artifact.spi.AbstractArtifactRepositoryprotected static boolean isFatal(org.eclipse.core.runtime.IStatus status)
protected static void setStatusOnStreamIfPossible(OutputStream destination, org.eclipse.core.runtime.IStatus status)
Copyright © 2008-2015 Eclipse Foundation. All Rights Reserved.