public class LocalMetadataRepository
extends AbstractMetadataRepository
| Modifier and Type | Field and Description |
|---|---|
protected java.util.HashSet<IRepositoryReference> |
repositories |
protected IUMap |
units |
| Constructor and Description |
|---|
LocalMetadataRepository(IProvisioningAgent agent)
This no argument constructor is called when restoring an existing repository.
|
LocalMetadataRepository(IProvisioningAgent agent,
java.net.URI location,
java.lang.String name,
java.util.Map<java.lang.String,java.lang.String> properties)
This constructor is used when creating a new local repository.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addInstallableUnits(java.util.Collection<IInstallableUnit> installableUnits) |
void |
addReferences(java.util.Collection<? extends IRepositoryReference> references) |
void |
compress(<any> iuPool) |
java.util.Iterator<IInstallableUnit> |
everything() |
IStatus |
executeBatch(IRunnableWithProgress runnable,
IProgressMonitor monitor) |
static java.io.File |
getActualLocation(java.net.URI location) |
<any> |
getIndex(java.lang.String memberName) |
java.lang.Object |
getManagedProperty(java.lang.Object client,
java.lang.String memberName,
java.lang.Object key) |
java.util.Collection<IRepositoryReference> |
getReferences() |
void |
initialize(RepositoryState state) |
void |
initializeAfterLoad(java.net.URI aLocation) |
boolean |
isModifiable() |
void |
publishRepositoryReferences()
Broadcast discovery events for all repositories referenced by this repository.
|
<any> |
query(<any> query,
IProgressMonitor monitor) |
void |
removeAll() |
boolean |
removeInstallableUnits(java.util.Collection<IInstallableUnit> installableUnits) |
protected void |
save()
Marking protected so we can test.
|
java.lang.String |
setProperty(java.lang.String key,
java.lang.String newValue,
IProgressMonitor monitor) |
protected IUMap units
protected java.util.HashSet<IRepositoryReference> repositories
public LocalMetadataRepository(IProvisioningAgent agent)
public LocalMetadataRepository(IProvisioningAgent agent,
java.net.URI location,
java.lang.String name,
java.util.Map<java.lang.String,java.lang.String> properties)
location - The location of the repositoryname - The name of the repositorypublic static java.io.File getActualLocation(java.net.URI location)
public void addInstallableUnits(java.util.Collection<IInstallableUnit> installableUnits)
public void addReferences(java.util.Collection<? extends IRepositoryReference> references)
public java.util.Collection<IRepositoryReference> getReferences()
public <any> getIndex(java.lang.String memberName)
public java.lang.Object getManagedProperty(java.lang.Object client,
java.lang.String memberName,
java.lang.Object key)
public void initialize(RepositoryState state)
public void publishRepositoryReferences()
public void initializeAfterLoad(java.net.URI aLocation)
public boolean isModifiable()
public <any> query(<any> query,
IProgressMonitor monitor)
public java.util.Iterator<IInstallableUnit> everything()
public void removeAll()
public boolean removeInstallableUnits(java.util.Collection<IInstallableUnit> installableUnits)
protected void save()
public java.lang.String setProperty(java.lang.String key,
java.lang.String newValue,
IProgressMonitor monitor)
public IStatus executeBatch(IRunnableWithProgress runnable,
IProgressMonitor monitor)
public void compress(<any> iuPool)