private void invokeCoreGC() { for (IArtifactRepository nextRepo : markSet.keySet()) { IArtifactKey[] keys = markSet.get(nextRepo).toArray(new IArtifactKey[0]); MarkSet aMarkSet = new MarkSet(keys, nextRepo); new CoreGarbageCollector().clean(aMarkSet.getKeys(), aMarkSet.getRepo()); } }
private void invokeCoreGC() { for (IArtifactRepository nextRepo : markSet.keySet()) { IArtifactKey[] keys = markSet.get(nextRepo).toArray(new IArtifactKey[0]); MarkSet aMarkSet = new MarkSet(keys, nextRepo); new CoreGarbageCollector().clean(aMarkSet.getKeys(), aMarkSet.getRepo()); } }
private void invokeCoreGC() { for (IArtifactRepository nextRepo : markSet.keySet()) { IArtifactKey[] keys = markSet.get(nextRepo).toArray(new IArtifactKey[0]); MarkSet aMarkSet = new MarkSet(keys, nextRepo); new CoreGarbageCollector().clean(aMarkSet.getKeys(), aMarkSet.getRepo()); } }
private void invokeCoreGC() { for (IArtifactRepository nextRepo : markSet.keySet()) { IArtifactKey[] keys = markSet.get(nextRepo).toArray(new IArtifactKey[0]); MarkSet aMarkSet = new MarkSet(keys, nextRepo); new CoreGarbageCollector().clean(aMarkSet.getKeys(), aMarkSet.getRepo()); } }
public MarkSet[] getMarkSets(IProvisioningAgent agent, IProfile inProfile) { artifactKeyList = new HashSet<IArtifactKey>(); IArtifactRepository repositoryToGC = Util.getBundlePoolRepository(agent, inProfile); if (repositoryToGC == null) return new MarkSet[0]; addArtifactKeys(inProfile); IProfile currentProfile = getCurrentProfile(agent); if (currentProfile != null && inProfile.getProfileId().equals(currentProfile.getProfileId())) { addRunningBundles(repositoryToGC); addRunningFeatures(inProfile, repositoryToGC); } return new MarkSet[] {new MarkSet(artifactKeyList.toArray(new IArtifactKey[artifactKeyList.size()]), repositoryToGC)}; }
public MarkSet[] getMarkSets(IProvisioningAgent agent, IProfile inProfile) { artifactKeyList = new HashSet<IArtifactKey>(); IArtifactRepository repositoryToGC = Util.getBundlePoolRepository(agent, inProfile); if (repositoryToGC == null) return new MarkSet[0]; addArtifactKeys(inProfile); IProfile currentProfile = getCurrentProfile(agent); if (currentProfile != null && inProfile.getProfileId().equals(currentProfile.getProfileId())) { addRunningBundles(repositoryToGC); addRunningFeatures(inProfile, repositoryToGC); } return new MarkSet[] {new MarkSet(artifactKeyList.toArray(new IArtifactKey[artifactKeyList.size()]), repositoryToGC)}; }