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
AbstractMetadataRepository
.Modifier | Constructor and 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).
|
Modifier and Type | Method and 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() |
assertModifiable, getDescription, getLocation, getName, getProperties, getProperty, getProvider, getProvisioningAgent, getType, getVersion, isModifiable, setDescription, setLocation, setName, setProperties, setProperty, setProperty, setProvider, setType, setVersion
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addInstallableUnits, removeAll, removeInstallableUnits
protected AbstractMetadataRepository2(org.eclipse.equinox.p2.core.IProvisioningAgent agent, String name, String type, File location)
agent
- the provisioning agent that may be used by repositoryname
- the name of the repositorytype
- the repository type as in
IMetadataRepositoryManager.createRepository(URI, String, String, java.util.Map)
location
- the physical location of the repositorypublic void addReferences(Collection<? extends org.eclipse.equinox.p2.repository.IRepositoryReference> references)
addReferences
in interface org.eclipse.equinox.p2.repository.metadata.IMetadataRepository
public Collection<org.eclipse.equinox.p2.repository.IRepositoryReference> getReferences()
getReferences
in interface org.eclipse.equinox.p2.repository.metadata.IMetadataRepository
public org.eclipse.core.runtime.IStatus executeBatch(org.eclipse.equinox.p2.repository.IRunnableWithProgress runnable, org.eclipse.core.runtime.IProgressMonitor monitor)
executeBatch
in interface org.eclipse.equinox.p2.repository.metadata.IMetadataRepository
public void compress(org.eclipse.equinox.p2.core.IPool<org.eclipse.equinox.p2.metadata.IInstallableUnit> iuPool)
compress
in interface org.eclipse.equinox.p2.repository.metadata.IMetadataRepository
Copyright © 2008–2018 Eclipse Foundation. All rights reserved.