for (int i = 0; i < managedFiles.length; i++) { originalReadIDs[i] = getId(managedFiles[i]); if (!update(managedFiles[i], sources[i])) error = true;
private synchronized static void saveData(String fileName) { if (storageManager == null || storageManager.isReadOnly()) return; try { File data = storageManager.createTempFile(fileName); if (FILE_APPLOCKS.equals(fileName)) saveLocks(data); else if (FILE_APPSCHEDULED.equals(fileName)) saveSchedules(data); storageManager.lookup(fileName, true); storageManager.update(new String[] {fileName}, new String[] {data.getName()}); } catch (IOException e) { Activator.log(new FrameworkLogEntry(Activator.PI_APP, FrameworkLogEntry.ERROR, 0, NLS.bind(Messages.persistence_error_saving, fileName), 0, e, null)); } }
for (int i = 0; i < managedFiles.length; i++) { originalReadIDs[i] = getId(managedFiles[i]); if (!update(managedFiles[i], sources[i])) error = true;
private synchronized static void saveData(String fileName) { if (storageManager == null || storageManager.isReadOnly()) return; try { File data = storageManager.createTempFile(fileName); if (FILE_APPLOCKS.equals(fileName)) saveLocks(data); else if (FILE_APPSCHEDULED.equals(fileName)) saveSchedules(data); storageManager.lookup(fileName, true); storageManager.update(new String[] {fileName}, new String[] {data.getName()}); } catch (IOException e) { Activator.log(new FrameworkLogEntry(Activator.PI_APP, FrameworkLogEntry.ERROR, 0, NLS.bind(Messages.persistence_error_saving, fileName), 0, e, null)); } }
for (int i = 0; i < managedFiles.length; i++) { originalReadIDs[i] = getId(managedFiles[i]); if (!update(managedFiles[i], sources[i])) error = true;
private synchronized static void saveData(String fileName) { if (storageManager == null || storageManager.isReadOnly()) return; try { File data = storageManager.createTempFile(fileName); if (FILE_APPLOCKS.equals(fileName)) saveLocks(data); else if (FILE_APPSCHEDULED.equals(fileName)) saveSchedules(data); storageManager.lookup(fileName, true); storageManager.update(new String[] {fileName}, new String[] {data.getName()}); } catch (IOException e) { Activator.log(new FrameworkLogEntry(Activator.PI_APP, FrameworkLogEntry.ERROR, 0, NLS.bind(Messages.persistence_error_saving, fileName), 0, e, null)); } }
for (int i = 0; i < managedFiles.length; i++) { originalReadIDs[i] = getId(managedFiles[i]); if (!update(managedFiles[i], sources[i])) error = true;
storageManager.update(new String[] {LocationManager.STATE_FILE, LocationManager.LAZY_FILE}, new String[] {stateTmpFile.getName(), lazyTmpFile.getName()}); } catch (IOException e) { adaptor.getFrameworkLog().log(new FrameworkEvent(FrameworkEvent.ERROR, context.getBundle(), e));
for (int i = 0; i < managedFiles.length; i++) { originalReadIDs[i] = getId(managedFiles[i]); if (!update(managedFiles[i], sources[i])) error = true;
curStorageManager.lookup(LocationManager.STATE_FILE, true); curStorageManager.lookup(LocationManager.LAZY_FILE, true); curStorageManager.update(new String[] {LocationManager.STATE_FILE, LocationManager.LAZY_FILE}, new String[] {stateTmpFile.getName(), lazyTmpFile.getName()}); } catch (IOException e) { adaptor.getFrameworkLog().log(new FrameworkEvent(FrameworkEvent.ERROR, context.getBundle(), e));
for (int i = 0; i < managedFiles.length; i++) { originalReadIDs[i] = getId(managedFiles[i]); if (!update(managedFiles[i], sources[i])) error = true;
if (streamSet == null) { add(target, StorageManager.FILETYPE_RELIABLEFILE); update(new String[] {smos.getTarget()}, new String[] {file.getName()}); ReliableFile.fileUpdated(new File(getBase(), smos.getTarget())); if (streamSet == null) { add(target, StorageManager.FILETYPE_STANDARD); update(new String[] {target}, new String[] {smos.getOutputFile().getName()}); update(targets, sources);
for (int i = 0; i < managedFiles.length; i++) { originalReadIDs[i] = getId(managedFiles[i]); if (!update(managedFiles[i], sources[i])) error = true;
if (streamSet == null) { add(target, StorageManager.FILETYPE_RELIABLEFILE); update(new String[] {smos.getTarget()}, new String[] {file.getName()}); ReliableFile.fileUpdated(new File(getBase(), smos.getTarget())); if (streamSet == null) { add(target, StorageManager.FILETYPE_STANDARD); update(new String[] {target}, new String[] {smos.getOutputFile().getName()}); update(targets, sources);
for (int i = 0; i < managedFiles.length; i++) { originalReadIDs[i] = getId(managedFiles[i]); if (!update(managedFiles[i], sources[i])) error = true;
if (streamSet == null) { add(target, StorageManager.FILETYPE_RELIABLEFILE); update(new String[] {smos.getTarget()}, new String[] {file.getName()}); ReliableFile.fileUpdated(new File(getBase(), smos.getTarget())); if (streamSet == null) { add(target, StorageManager.FILETYPE_STANDARD); update(new String[] {target}, new String[] {smos.getOutputFile().getName()}); update(targets, sources);
if (streamSet == null) { add(target, StorageManager.FILETYPE_RELIABLEFILE); update(new String[] {smos.getTarget()}, new String[] {file.getName()}); ReliableFile.fileUpdated(new File(getBase(), smos.getTarget())); if (streamSet == null) { add(target, StorageManager.FILETYPE_STANDARD); update(new String[] {target}, new String[] {smos.getOutputFile().getName()}); update(targets, sources);
if (streamSet == null) { add(target, StorageManager.FILETYPE_RELIABLEFILE); update(new String[] {smos.getTarget()}, new String[] {file.getName()}); ReliableFile.fileUpdated(new File(getBase(), smos.getTarget())); if (streamSet == null) { add(target, StorageManager.FILETYPE_STANDARD); update(new String[] {target}, new String[] {smos.getOutputFile().getName()}); update(targets, sources);
if (streamSet == null) { add(target, StorageManager.FILETYPE_RELIABLEFILE); update(new String[] {smos.getTarget()}, new String[] {file.getName()}); ReliableFile.fileUpdated(new File(getBase(), smos.getTarget())); if (streamSet == null) { add(target, StorageManager.FILETYPE_STANDARD); update(new String[] {target}, new String[] {smos.getOutputFile().getName()}); update(targets, sources);
cacheStorageManager.update(new String[] {TableReader.TABLE, TableReader.MAIN, TableReader.EXTRA, TableReader.CONTRIBUTIONS, TableReader.CONTRIBUTORS, TableReader.NAMESPACES, TableReader.ORPHANS}, new String[] {tableFile.getName(), mainFile.getName(), extraFile.getName(), contributionsFile.getName(), contributorsFile.getName(), namespacesFile.getName(), orphansFile.getName()}); } catch (IOException e) {