private boolean mruListAdd() { if (this.mruList != null) { return mruList.add(this); } return false; }
private boolean isMruListClosing() { return this.mruList != null && this.mruList.isClosing(this); }
private boolean isMruEnabled() { return this.mruList != null && this.mruList.isEnabled(); }
if (toRemove.getMruIndex() != index) throw new IllegalStateException("The BundleFile has the incorrect mru index: " + index + " != " + toRemove.getMruIndex()); //$NON-NLS-1$//$NON-NLS-2$ removeInternal(toRemove); incUseStamp(index); numOpen++; if (toRemove != null) { closeBundleFile(toRemove, manager);
if (toRemove.getMruIndex() != index) throw new IllegalStateException("The BundleFile has the incorrect mru index: " + index + " != " + toRemove.getMruIndex()); //$NON-NLS-1$//$NON-NLS-2$ removeInternal(toRemove); backpressureNeeded = isBackPressureNeeded(); incUseStamp(index); numOpen++; if (toRemove != null) { closeBundleFile(toRemove, manager);
private void mruListRemove() { if (this.mruList != null) { this.mruList.remove(this); } }
private void mruListUse() { if (this.mruList != null) { mruList.use(this); } }
/** * Increments the use stamp of a bundle file * @param bundleFile the bundle file to increment the use stamp for */ public void use(BundleFile bundleFile) { if (fileLimit < MIN) return; // MRU is disabled synchronized (this) { int index = bundleFile.getMruIndex(); if ((index >= 0 && index < fileLimit) && bundleFileList[index] == bundleFile) incUseStamp(index); } }
/** * Removes a bundle file which is about to be closed * @param bundleFile the bundle file about to be closed * @return true if the bundleFile existed in the MRU; false otherwise */ public boolean remove(BundleFile bundleFile) { if (fileLimit < MIN) return false; // MRU is disabled synchronized (this) { int index = bundleFile.getMruIndex(); if ((index >= 0 && index < fileLimit) && bundleFileList[index] == bundleFile) { removeInternal(bundleFile); return true; } } return false; }
public void close() { try { save(); } catch (IOException e) { getLogServices().log(EquinoxContainer.NAME, FrameworkLogEntry.ERROR, "Error saving on shutdown", e); //$NON-NLS-1$ } // close all the generations List<Module> modules = moduleContainer.getModules(); for (Module module : modules) { for (ModuleRevision revision : module.getRevisions().getModuleRevisions()) { Generation generation = (Generation) revision.getRevisionInfo(); if (generation != null) { generation.close(); } } } mruList.shutdown(); }
mruList = new MRUBundleFileList(getBundleFileLimit(container.getConfiguration()), container.getConfiguration().getDebug()); equinoxContainer = container; extensionInstaller = new FrameworkExtensionInstaller(container.getConfiguration());
if (toRemove.getMruIndex() != index) throw new IllegalStateException("The BundleFile has the incorrect mru index: " + index + " != " + toRemove.getMruIndex()); //$NON-NLS-1$//$NON-NLS-2$ removeInternal(toRemove); incUseStamp(index); numOpen++; if (toRemove != null) { closeBundleFile(toRemove, manager);
if (toRemove.getMruIndex() != index) throw new IllegalStateException("The BundleFile has the incorrect mru index: " + index + " != " + toRemove.getMruIndex()); //$NON-NLS-1$//$NON-NLS-2$ removeInternal(toRemove); backpressureNeeded = isBackPressureNeeded(); incUseStamp(index); numOpen++; if (toRemove != null) { closeBundleFile(toRemove, manager);
private void mruListRemove() { if (this.mruList != null) { this.mruList.remove(this); } }
private void mruListUse() { if (this.mruList != null) { mruList.use(this); } }
/** * Increments the use stamp of a bundle file * @param bundleFile the bundle file to increment the use stamp for */ public void use(BundleFile bundleFile) { if (fileLimit < MIN) return; // MRU is disabled synchronized (this) { int index = bundleFile.getMruIndex(); if ((index >= 0 && index < fileLimit) && bundleFileList[index] == bundleFile) incUseStamp(index); } }
/** * Removes a bundle file which is about to be closed * @param bundleFile the bundle file about to be closed * @return true if the bundleFile existed in the MRU; false otherwise */ public boolean remove(BundleFile bundleFile) { if (fileLimit < MIN) return false; // MRU is disabled synchronized (this) { int index = bundleFile.getMruIndex(); if ((index >= 0 && index < fileLimit) && bundleFileList[index] == bundleFile) { removeInternal(bundleFile); return true; } } return false; }
public void close() { try { save(); } catch (IOException e) { getLogServices().log(EquinoxContainer.NAME, FrameworkLogEntry.ERROR, "Error saving on shutdown", e); //$NON-NLS-1$ } // close all the generations List<Module> modules = moduleContainer.getModules(); for (Module module : modules) { for (ModuleRevision revision : module.getRevisions().getModuleRevisions()) { Generation generation = (Generation) revision.getRevisionInfo(); if (generation != null) { generation.close(); } } } mruList.shutdown(); }
mruList = new MRUBundleFileList(getBundleFileLimit(container.getConfiguration()), container.getConfiguration().getDebug()); equinoxContainer = container; extensionInstaller = new FrameworkExtensionInstaller(container.getConfiguration());
if (toRemove.getMruIndex() != index) throw new IllegalStateException("The BundleFile has the incorrect mru index: " + index + " != " + toRemove.getMruIndex()); //$NON-NLS-1$//$NON-NLS-2$ removeInternal(toRemove); incUseStamp(index); numOpen++; if (toRemove != null) { closeBundleFile(toRemove, manager);