167168169170171172173
throw new AbortedException("PRB is aborted"); } if (!_received[x]) { throw new IllegalStateException("that packet is not received"); } return new Buffer(_data, x * _packetSize, _packetSize); }
343344345346347348349350
}}; public static Message createTestDataReply(long uid, byte[] headers) { Message msg = new Message(testDataReply); msg.set(UID, uid); msg.set(TEST_CHK_HEADERS, new Buffer(headers)); return msg; }