/** {@inheritDoc} */ @Override protected void clone0(GridTcpCommunicationMessageAdapter _msg) { super.clone0(_msg); GridGgfsFragmentizerResponse _clone = (GridGgfsFragmentizerResponse)_msg; _clone.fileId = fileId; }
/** {@inheritDoc} */ @Override public void finishUnmarshal(GridMarshaller marsh, @Nullable ClassLoader ldr) throws GridException { super.finishUnmarshal(marsh, ldr); if (errBytes != null) err = marsh.unmarshal(errBytes, ldr); }
/** {@inheritDoc} */ @Override public void prepareMarshal(GridMarshaller marsh) throws GridException { super.prepareMarshal(marsh); if (err != null) errBytes = marsh.marshal(err); }
/** {@inheritDoc} */ @SuppressWarnings("all") @Override public boolean readFrom(ByteBuffer buf) { commState.setBuffer(buf); if (!super.readFrom(buf)) return false; switch (commState.idx) { case 0: GridUuid fileId0 = commState.getGridUuid(); if (fileId0 == GRID_UUID_NOT_READ) return false; fileId = fileId0; commState.idx++; } return true; }
commState.setBuffer(buf); if (!super.writeTo(buf)) return false;
/** {@inheritDoc} */ @Override public boolean writeTo(ByteBuffer buf) { commState.setBuffer(buf); if (!commState.typeWritten) { if (!commState.putByte(directType())) return false; commState.typeWritten = true; } return true; }
/** {@inheritDoc} */ @SuppressWarnings("all") @Override public boolean readFrom(ByteBuffer buf) { commState.setBuffer(buf); if (!super.readFrom(buf)) return false; switch (commState.idx) { case 0: GridUuid fileId0 = commState.getGridUuid(); if (fileId0 == GRID_UUID_NOT_READ) return false; fileId = fileId0; commState.idx++; } return true; }
commState.setBuffer(buf); if (!super.writeTo(buf)) return false;
/** {@inheritDoc} */ @Override public boolean writeTo(ByteBuffer buf) { commState.setBuffer(buf); if (!commState.typeWritten) { if (!commState.putByte(directType())) return false; commState.typeWritten = true; } return true; }
/** {@inheritDoc} */ @Override protected void clone0(GridTcpCommunicationMessageAdapter _msg) { super.clone0(_msg); GridGgfsSyncMessage _clone = (GridGgfsSyncMessage)_msg; _clone.order = order; _clone.res = res; }
/** {@inheritDoc} */ @SuppressWarnings("all") @Override public boolean readFrom(ByteBuffer buf) { commState.setBuffer(buf); if (!super.readFrom(buf)) return false; switch (commState.idx) { case 0: if (buf.remaining() < 8) return false; order = commState.getLong(); commState.idx++; case 1: if (buf.remaining() < 1) return false; res = commState.getBoolean(); commState.idx++; } return true; }
/** {@inheritDoc} */ @SuppressWarnings("all") @Override public boolean writeTo(ByteBuffer buf) { commState.setBuffer(buf); if (!super.writeTo(buf)) return false; if (!commState.typeWritten) { if (!commState.putByte(directType())) return false; commState.typeWritten = true; } switch (commState.idx) { case 0: if (!commState.putGridUuid(fileId)) return false; commState.idx++; } return true; }
/** {@inheritDoc} */ @Override public void prepareMarshal(GridMarshaller marsh) throws GridException { super.prepareMarshal(marsh); if (err != null) errBytes = marsh.marshal(err); }
/** {@inheritDoc} */ @Override public void finishUnmarshal(GridMarshaller marsh, @Nullable ClassLoader ldr) throws GridException { super.finishUnmarshal(marsh, ldr); if (errBytes != null) err = marsh.unmarshal(errBytes, ldr); }
/** {@inheritDoc} */ @Override protected void clone0(GridTcpCommunicationMessageAdapter _msg) { super.clone0(_msg); GridGgfsBlocksMessage _clone = (GridGgfsBlocksMessage)_msg; _clone.fileId = fileId; _clone.id = id; _clone.blocks = blocks; }
/** {@inheritDoc} */ @SuppressWarnings("all") @Override public boolean readFrom(ByteBuffer buf) { commState.setBuffer(buf); if (!super.readFrom(buf)) return false; switch (commState.idx) { case 0: if (buf.remaining() < 8) return false; order = commState.getLong(); commState.idx++; case 1: if (buf.remaining() < 1) return false; res = commState.getBoolean(); commState.idx++; } return true; }
/** {@inheritDoc} */ @SuppressWarnings("all") @Override public boolean writeTo(ByteBuffer buf) { commState.setBuffer(buf); if (!super.writeTo(buf)) return false; if (!commState.typeWritten) { if (!commState.putByte(directType())) return false; commState.typeWritten = true; } switch (commState.idx) { case 0: if (!commState.putGridUuid(fileId)) return false; commState.idx++; } return true; }
/** {@inheritDoc} */ @Override public void prepareMarshal(GridMarshaller marsh) throws GridException { super.prepareMarshal(marsh); if (err != null) errBytes = marsh.marshal(err); }
/** {@inheritDoc} */ @Override public void finishUnmarshal(GridMarshaller marsh, @Nullable ClassLoader ldr) throws GridException { super.finishUnmarshal(marsh, ldr); if (errBytes != null) err = marsh.unmarshal(errBytes, ldr); }
/** {@inheritDoc} */ @Override protected void clone0(GridTcpCommunicationMessageAdapter _msg) { super.clone0(_msg); GridGgfsBlocksMessage _clone = (GridGgfsBlocksMessage)_msg; _clone.fileId = fileId; _clone.id = id; _clone.blocks = blocks; }