public static void printStateType (PrintWriter strm, int res) { strm.print(stateTypeString(res)); }
tsLogger.logger.trace("ShadowingStore.write_state(" + objUid + ", " + tName + ", " + StateType.stateTypeString(ft) + ")"); String fname = genPathName(objUid, tName, ft); File fd = openAndLock(fname, FileLock.F_WRLCK, true); int imageSize = (int) state.length(); tsLogger.i18NLogger.warn_objectstore_ShadowingStore_18(fname); ofile.write(state.buffer(), 0, imageSize); if (synchronousWrites()) closeAndUnlock(fd, null, ofile); throw new ObjectStoreException( "ShadowingStore::write_state() - write failed to sync for " + fname, e); closeAndUnlock(fd, null, ofile); e.printStackTrace(); throw new ObjectStoreException( "ShadowingStore::write_state() - write failed to locate file " + fname + ": " + e, e); if (!closeAndUnlock(fd, null, ofile)) { tsLogger.i18NLogger.warn_objectstore_ShadowingStore_19(fname);
+ ", " + StateType.stateTypeString(ft) + ")"); int imageSize = (int) state.length(); byte[] uidString = objUid.stringForm().getBytes(StandardCharsets.UTF_8); int buffSize = _redzone.length + uidString.length + imageSize + 8; // don't put in endOfLog since we keep overwriting that. throw new ObjectStoreException(); tsLogger.i18NLogger.warn_objectstore_ShadowingStore_18(fname); buff.put(uidString); buff.putInt(imageSize); buff.put(state.buffer()); throw new ObjectStoreException( "ShadowingStore::write_state() - write failed to sync for " + fname, e); e.printStackTrace(); throw new ObjectStoreException( "ShadowingStore::write_state() - write failed to locate file " + fname + ": " + e, e); tsLogger.i18NLogger.warn_objectstore_ShadowingStore_19(fname);
tsLogger.logger.trace("ShadowingStore.remove_state(" + objUid + ", " + name + ", " + StateType.stateTypeString(ft) + ")"); int state = currentState(objUid, name); String fname = genPathName(objUid, name, ft); File fd = openAndLock(fname, FileLock.F_WRLCK, false); tsLogger.i18NLogger.warn_objectstore_ShadowingStore_9(objUid, name); tsLogger.i18NLogger.warn_objectstore_ShadowingStore_10(objUid, name); tsLogger.i18NLogger.warn_objectstore_ShadowingStore_11(fname);
tsLogger.logger.trace("ShadowingStore.read_state(" + objUid + ", " + tName + ", " + StateType.stateTypeString(ft) + ")"); int state = currentState(objUid, tName); String fname = genPathName(objUid, tName, ft); File fd = openAndLock(fname, FileLock.F_RDLCK, false); tsLogger.i18NLogger.warn_objectstore_ShadowingStore_7(); closeAndUnlock(fd, ifile, null); throw new ObjectStoreException( "ShadowingStore::read_state failed: " + e, e); if (!closeAndUnlock(fd, ifile, null)) { tsLogger.i18NLogger.warn_objectstore_ShadowingStore_8(fname); throw new ObjectStoreException( "ShadowStore::read_state - " + tsLogger.i18NLogger.get_objectstore_notypenameuid() + objUid);
tsLogger.logger.trace("ShadowingStore.write_state(" + objUid + ", " + tName + ", " + StateType.stateTypeString(ft) + ")"); String fname = genPathName(objUid, tName, ft); File fd = openAndLock(fname, FileLock.F_WRLCK, true); int imageSize = (int) state.length(); tsLogger.i18NLogger.warn_objectstore_ShadowingStore_18(fname); ofile.write(state.buffer(), 0, imageSize); if (synchronousWrites()) closeAndUnlock(fd, null, ofile); throw new ObjectStoreException( "ShadowingStore::write_state() - write failed to sync for " + fname, e); closeAndUnlock(fd, null, ofile); e.printStackTrace(); throw new ObjectStoreException( "ShadowingStore::write_state() - write failed to locate file " + fname + ": " + e, e); if (!closeAndUnlock(fd, null, ofile)) { tsLogger.i18NLogger.warn_objectstore_ShadowingStore_19(fname);
+ ", " + StateType.stateTypeString(ft) + ")"); int imageSize = (int) state.length(); byte[] uidString = objUid.stringForm().getBytes(StandardCharsets.UTF_8); int buffSize = _redzone.length + uidString.length + imageSize + 8; // don't put in endOfLog since we keep overwriting that. throw new ObjectStoreException(); tsLogger.i18NLogger.warn_objectstore_ShadowingStore_18(fname); buff.put(uidString); buff.putInt(imageSize); buff.put(state.buffer()); throw new ObjectStoreException( "ShadowingStore::write_state() - write failed to sync for " + fname, e); e.printStackTrace(); throw new ObjectStoreException( "ShadowingStore::write_state() - write failed to locate file " + fname + ": " + e, e); tsLogger.i18NLogger.warn_objectstore_ShadowingStore_19(fname);
tsLogger.logger.trace("ShadowingStore.remove_state(" + objUid + ", " + name + ", " + StateType.stateTypeString(ft) + ")"); int state = currentState(objUid, name); String fname = genPathName(objUid, name, ft); File fd = openAndLock(fname, FileLock.F_WRLCK, false); tsLogger.i18NLogger.warn_objectstore_ShadowingStore_9(objUid, name); tsLogger.i18NLogger.warn_objectstore_ShadowingStore_10(objUid, name); tsLogger.i18NLogger.warn_objectstore_ShadowingStore_11(fname);
tsLogger.logger.trace("ShadowingStore.read_state(" + objUid + ", " + tName + ", " + StateType.stateTypeString(ft) + ")"); int state = currentState(objUid, tName); String fname = genPathName(objUid, tName, ft); File fd = openAndLock(fname, FileLock.F_RDLCK, false); tsLogger.i18NLogger.warn_objectstore_ShadowingStore_7(); closeAndUnlock(fd, ifile, null); throw new ObjectStoreException( "ShadowingStore::read_state failed: " + e, e); if (!closeAndUnlock(fd, ifile, null)) { tsLogger.i18NLogger.warn_objectstore_ShadowingStore_8(fname); throw new ObjectStoreException( "ShadowStore::read_state - " + tsLogger.i18NLogger.get_objectstore_notypenameuid() + objUid);
tsLogger.logger.trace("ShadowingStore.write_state(" + objUid + ", " + tName + ", " + StateType.stateTypeString(ft) + ")"); String fname = genPathName(objUid, tName, ft); File fd = openAndLock(fname, FileLock.F_WRLCK, true); int imageSize = (int) state.length(); tsLogger.i18NLogger.warn_objectstore_ShadowingStore_18(fname); ofile.write(state.buffer(), 0, imageSize); if (synchronousWrites()) closeAndUnlock(fd, null, ofile); throw new ObjectStoreException( "ShadowingStore::write_state() - write failed to sync for " + fname, e); closeAndUnlock(fd, null, ofile); e.printStackTrace(); throw new ObjectStoreException( "ShadowingStore::write_state() - write failed to locate file " + fname + ": " + e, e); if (!closeAndUnlock(fd, null, ofile)) { tsLogger.i18NLogger.warn_objectstore_ShadowingStore_19(fname);
+ ", " + StateType.stateTypeString(ft) + ")"); int imageSize = (int) state.length(); byte[] uidString = objUid.stringForm().getBytes(); int buffSize = _redzone.length + uidString.length + imageSize + 8; // don't put in endOfLog since we keep overwriting that. throw new ObjectStoreException(); tsLogger.i18NLogger.warn_objectstore_ShadowingStore_18(fname); buff.put(uidString); buff.putInt(imageSize); buff.put(state.buffer()); throw new ObjectStoreException( "ShadowingStore::write_state() - write failed to sync for " + fname, e); e.printStackTrace(); throw new ObjectStoreException( "ShadowingStore::write_state() - write failed to locate file " + fname + ": " + e, e); tsLogger.i18NLogger.warn_objectstore_ShadowingStore_19(fname);
tsLogger.logger.trace("ShadowingStore.remove_state(" + objUid + ", " + name + ", " + StateType.stateTypeString(ft) + ")"); int state = currentState(objUid, name); String fname = genPathName(objUid, name, ft); File fd = openAndLock(fname, FileLock.F_WRLCK, false); tsLogger.i18NLogger.warn_objectstore_ShadowingStore_9(objUid, name); tsLogger.i18NLogger.warn_objectstore_ShadowingStore_10(objUid, name); tsLogger.i18NLogger.warn_objectstore_ShadowingStore_11(fname);
tsLogger.logger.trace("ShadowingStore.read_state(" + objUid + ", " + tName + ", " + StateType.stateTypeString(ft) + ")"); int state = currentState(objUid, tName); String fname = genPathName(objUid, tName, ft); File fd = openAndLock(fname, FileLock.F_RDLCK, false); closeAndUnlock(fd, ifile, null); throw new ObjectStoreException( "ShadowingStore::read_state error: " + e, e); tsLogger.i18NLogger.warn_objectstore_ShadowingStore_7(); closeAndUnlock(fd, ifile, null); throw new ObjectStoreException( "ShadowingStore::read_state failed: " + e, e); if (!closeAndUnlock(fd, ifile, null)) { tsLogger.i18NLogger.warn_objectstore_ShadowingStore_8(fname); throw new ObjectStoreException( "ShadowStore::read_state - " + tsLogger.i18NLogger.get_objectstore_notypenameuid() + objUid);
public static void printStateType (PrintWriter strm, int res) { strm.print(stateTypeString(res)); }
tsLogger.logger.trace("ShadowingStore.write_state(" + objUid + ", " + tName + ", " + StateType.stateTypeString(ft) + ")"); String fname = genPathName(objUid, tName, ft); File fd = openAndLock(fname, FileLock.F_WRLCK, true); int imageSize = (int) state.length(); tsLogger.i18NLogger.warn_objectstore_ShadowingStore_18(fname); ofile.write(state.buffer(), 0, imageSize); if (synchronousWrites()) closeAndUnlock(fd, null, ofile); throw new ObjectStoreException( "ShadowingStore::write_state() - write failed to sync for " + fname, e); closeAndUnlock(fd, null, ofile); e.printStackTrace(); throw new ObjectStoreException( "ShadowingStore::write_state() - write failed to locate file " + fname + ": " + e, e); if (!closeAndUnlock(fd, null, ofile)) { tsLogger.i18NLogger.warn_objectstore_ShadowingStore_19(fname);
+ ", " + StateType.stateTypeString(ft) + ")"); int imageSize = (int) state.length(); byte[] uidString = objUid.stringForm().getBytes(); int buffSize = _redzone.length + uidString.length + imageSize + 8; // don't put in endOfLog since we keep overwriting that. throw new ObjectStoreException(); tsLogger.i18NLogger.warn_objectstore_ShadowingStore_18(fname); buff.put(uidString); buff.putInt(imageSize); buff.put(state.buffer()); throw new ObjectStoreException( "ShadowingStore::write_state() - write failed to sync for " + fname, e); e.printStackTrace(); throw new ObjectStoreException( "ShadowingStore::write_state() - write failed to locate file " + fname + ": " + e, e); tsLogger.i18NLogger.warn_objectstore_ShadowingStore_19(fname);
tsLogger.logger.trace("ShadowingStore.remove_state(" + objUid + ", " + name + ", " + StateType.stateTypeString(ft) + ")"); int state = currentState(objUid, name); String fname = genPathName(objUid, name, ft); File fd = openAndLock(fname, FileLock.F_WRLCK, false); tsLogger.i18NLogger.warn_objectstore_ShadowingStore_9(objUid, name); tsLogger.i18NLogger.warn_objectstore_ShadowingStore_10(objUid, name); tsLogger.i18NLogger.warn_objectstore_ShadowingStore_11(fname);
tsLogger.logger.trace("ShadowingStore.read_state(" + objUid + ", " + tName + ", " + StateType.stateTypeString(ft) + ")"); int state = currentState(objUid, tName); String fname = genPathName(objUid, tName, ft); File fd = openAndLock(fname, FileLock.F_RDLCK, false); tsLogger.i18NLogger.warn_objectstore_ShadowingStore_7(); closeAndUnlock(fd, ifile, null); throw new ObjectStoreException( "ShadowingStore::read_state failed: " + e, e); if (!closeAndUnlock(fd, ifile, null)) { tsLogger.i18NLogger.warn_objectstore_ShadowingStore_8(fname); throw new ObjectStoreException( "ShadowStore::read_state - " + tsLogger.i18NLogger.get_objectstore_notypenameuid() + objUid);
public static void printStateType (PrintWriter strm, int res) { strm.print(stateTypeString(res)); }
tsLogger.logger.trace("ShadowingStore.write_state(" + objUid + ", " + tName + ", " + StateType.stateTypeString(ft) + ")"); String fname = genPathName(objUid, tName, ft); File fd = openAndLock(fname, FileLock.F_WRLCK, true); int imageSize = (int) state.length(); tsLogger.i18NLogger.warn_objectstore_ShadowingStore_18(fname); ofile.write(state.buffer(), 0, imageSize); if (synchronousWrites()) closeAndUnlock(fd, null, ofile); throw new ObjectStoreException( "ShadowingStore::write_state() - write failed to sync for " + fname, e); closeAndUnlock(fd, null, ofile); e.printStackTrace(); throw new ObjectStoreException( "ShadowingStore::write_state() - write failed to locate file " + fname + ": " + e, e); if (!closeAndUnlock(fd, null, ofile)) { tsLogger.i18NLogger.warn_objectstore_ShadowingStore_19(fname);