private synchronized void beginCopyAsIs(ObjectToPack otp) throws StoredObjectRepresentationNotAvailableException { if (++activeCopyRawData == 1 && activeWindows == 0) { try { doOpen(); } catch (IOException thisPackNotValid) { throw new StoredObjectRepresentationNotAvailableException(otp, thisPackNotValid); } } }
private synchronized void beginCopyAsIs(ObjectToPack otp) throws StoredObjectRepresentationNotAvailableException { if (++activeCopyRawData == 1 && activeWindows == 0) { try { doOpen(); } catch (IOException thisPackNotValid) { StoredObjectRepresentationNotAvailableException gone; gone = new StoredObjectRepresentationNotAvailableException(otp); gone.initCause(thisPackNotValid); throw gone; } } }
} catch (IOException ioError) { StoredObjectRepresentationNotAvailableException gone; gone = new StoredObjectRepresentationNotAvailableException(src); gone.initCause(ioError); throw gone; gone = new StoredObjectRepresentationNotAvailableException(src); gone.initCause(corruptObject); throw gone; gone = new StoredObjectRepresentationNotAvailableException(src); gone.initCause(ioError); throw gone;
gone = new StoredObjectRepresentationNotAvailableException(src); gone.initCause(corruptObject); throw gone; gone = new StoredObjectRepresentationNotAvailableException(src); gone.initCause(ioError); throw gone;
readFully(src.offset, buf, 0, 20, ctx); } catch (IOException ioError) { throw new StoredObjectRepresentationNotAvailableException(src, ioError); dataFormat); throw new StoredObjectRepresentationNotAvailableException(src, corruptObject); throw new StoredObjectRepresentationNotAvailableException(src, ioError);
StoredObjectRepresentationNotAvailableException gone; gone = new StoredObjectRepresentationNotAvailableException(obj); gone.initCause(new DhtException(MessageFormat.format( DhtText.get().corruptChunk, getChunkKey()))); throw gone;
dataFormat); throw new StoredObjectRepresentationNotAvailableException(src, corruptObject); throw new StoredObjectRepresentationNotAvailableException(src, ioError);
StoredObjectRepresentationNotAvailableException gone; gone = new StoredObjectRepresentationNotAvailableException(obj); gone.initCause(new DhtException(MessageFormat.format( DhtText.get().corruptChunk, getChunkKey()))); throw gone;
private synchronized void beginCopyAsIs(ObjectToPack otp) throws StoredObjectRepresentationNotAvailableException { if (++activeCopyRawData == 1 && activeWindows == 0) { try { doOpen(); } catch (IOException thisPackNotValid) { throw new StoredObjectRepresentationNotAvailableException(otp, thisPackNotValid); } } }
readFully(src.offset, buf, 0, 20, ctx); } catch (IOException ioError) { throw new StoredObjectRepresentationNotAvailableException(src, ioError); dataFormat); throw new StoredObjectRepresentationNotAvailableException(src, corruptObject); throw new StoredObjectRepresentationNotAvailableException(src, ioError);
dataFormat); throw new StoredObjectRepresentationNotAvailableException(src, corruptObject); throw new StoredObjectRepresentationNotAvailableException(src, ioError);
public void copyObjectAsIs(PackOutputStream out, ObjectToPack otp, boolean validate) throws IOException, StoredObjectRepresentationNotAvailableException { DhtObjectToPack obj = (DhtObjectToPack) otp; try { PackChunk chunk = recentChunks.get(obj.chunk); if (chunk == null) { chunk = prefetcher.get(obj.chunk); if (chunk == null) { // This should never happen during packing, it implies // the fetch plan was incorrect. Unfortunately that can // occur if objects need to be recompressed on the fly. // stats.access(obj.chunk).cntCopyObjectAsIs_PrefetchMiss++; chunk = getChunk(obj.chunk); } if (!chunk.isFragment()) recentChunk(chunk); } chunk.copyObjectAsIs(out, obj, validate, this); } catch (DhtMissingChunkException missingChunk) { stats.access(missingChunk.getChunkKey()).cntCopyObjectAsIs_InvalidChunk++; throw new StoredObjectRepresentationNotAvailableException(otp); } }
public void copyObjectAsIs(PackOutputStream out, ObjectToPack otp, boolean validate) throws IOException, StoredObjectRepresentationNotAvailableException { DhtObjectToPack obj = (DhtObjectToPack) otp; try { PackChunk chunk = recentChunks.get(obj.chunk); if (chunk == null) { chunk = prefetcher.get(obj.chunk); if (chunk == null) { // This should never happen during packing, it implies // the fetch plan was incorrect. Unfortunately that can // occur if objects need to be recompressed on the fly. // stats.access(obj.chunk).cntCopyObjectAsIs_PrefetchMiss++; chunk = getChunk(obj.chunk); } if (!chunk.isFragment()) recentChunk(chunk); } chunk.copyObjectAsIs(out, obj, validate, this); } catch (DhtMissingChunkException missingChunk) { stats.access(missingChunk.getChunkKey()).cntCopyObjectAsIs_InvalidChunk++; throw new StoredObjectRepresentationNotAvailableException(otp); } }