[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
| [p2-dev] Delay in adding a p2 Repository | 
Hi all,
In our platform, we use p2 as the provisioning platform. In our p2 Repository management code, we are adding a repository using below code segment;
IMetadataRepositoryManager metadataRepositoryManager = ServiceHolder.
getMetadataRepositoryManager();
IArtifactRepositoryManager artifactRepositoryManager = ServiceHolder.getArtifactRepositoryManager();
            //adding metadata and artifact repositories
            metadataRepositoryManager.addRepository(location);
            artifactRepositoryManager.addRepository(location);
            //Loading the metadata repository
            metadataRepositoryManager.loadRepository(location, new NullProgressMonitor());
            metadataRepositoryManager.setRepositoryProperty(location, IRepository.PROP_NICKNAME, nickName);
            //Loading the artifact repository
            artifactRepositoryManager.loadRepository(location, new NullProgressMonitor());
            artifactRepositoryManager.setRepositoryProperty(location, IRepository.PROP_NICKNAME, nickName);
Sometimes we can notice a considerable delay when adding a repository. When you say artifactRepositoryManager.loadRepository(location, new NullProgressMonitor()); does p2 load all the InstallableUnits in the repository to memory? If so, could this be due to a long list of InstallableUnits in the repository.
Thanks,
Dileepa