Package org.apache.aurora.gen.storage

Examples of org.apache.aurora.gen.storage.FrameChunk


    List<Frame> chunks = Lists.newArrayList();
    for (int i = 0; i < chunkCount; i++) {
      int offset = i * chunkLength;
      ByteBuffer data =
          ByteBuffer.wrap(entry, offset, Math.min(chunkLength, entry.length - offset));
      chunks.add(Frame.chunk(new FrameChunk(data)));
    }

    return new Message(chunkSize, header, chunks);
  }
View Full Code Here


        frames[0] = encode(Frame.header(new FrameHeader(chunks, ByteBuffer.wrap(checksum(entry)))));
        for (int i = 0; i < chunks; i++) {
          int offset = i * maxEntrySizeBytes;
          ByteBuffer chunk =
              ByteBuffer.wrap(entry, offset, Math.min(maxEntrySizeBytes, entry.length - offset));
          frames[i + 1] = encode(Frame.chunk(new FrameChunk(chunk)));
        }
        return frames;
      }
View Full Code Here

      frames[0] = encode(Frame.header(new FrameHeader(chunks, ByteBuffer.wrap(checksum(entry)))));
      for (int i = 0; i < chunks; i++) {
        int offset = i * maxEntrySizeBytes;
        ByteBuffer chunk =
            ByteBuffer.wrap(entry, offset, Math.min(maxEntrySizeBytes, entry.length - offset));
        frames[i + 1] = encode(Frame.chunk(new FrameChunk(chunk)));
      }
      return frames;
    }
View Full Code Here

    List<Frame> chunks = Lists.newArrayList();
    for (int i = 0; i < chunkCount; i++) {
      int offset = i * chunkLength;
      ByteBuffer data =
          ByteBuffer.wrap(entry, offset, Math.min(chunkLength, entry.length - offset));
      chunks.add(Frame.chunk(new FrameChunk(data)));
    }

    return new Message(chunkSize, header, chunks);
  }
View Full Code Here

TOP

Related Classes of org.apache.aurora.gen.storage.FrameChunk

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.