Refine search
public byte readByte() throws IOException { updateMetricReceivedBytes(OBinaryProtocol.SIZE_BYTE); if (debug) { OLogManager.instance().info(this, "%s - Reading byte (1 byte)...", socket.getRemoteSocketAddress()); final byte value = in.readByte(); OLogManager.instance().info(this, "%s - Read byte: %d", socket.getRemoteSocketAddress(), (int) value); return value; } return in.readByte(); }
public short readShort() throws IOException { updateMetricReceivedBytes(OBinaryProtocol.SIZE_SHORT); if (debug) { OLogManager.instance().info(this, "%s - Reading short (2 bytes)...", socket.getRemoteSocketAddress()); final short value = in.readShort(); OLogManager.instance().info(this, "%s - Read short: %d", socket.getRemoteSocketAddress(), value); return value; } return in.readShort(); }
public int readInt() throws IOException { updateMetricReceivedBytes(OBinaryProtocol.SIZE_INT); if (debug) { OLogManager.instance().info(this, "%s - Reading int (4 bytes)...", socket.getRemoteSocketAddress()); final int value = in.readInt(); OLogManager.instance().info(this, "%s - Read int: %d", socket.getRemoteSocketAddress(), value); return value; } return in.readInt(); }
public short readShort() throws IOException { updateMetricReceivedBytes(OBinaryProtocol.SIZE_SHORT); if (debug) { OLogManager.instance().info(this, "%s - Reading short (2 bytes)...", socket.getRemoteSocketAddress()); final short value = in.readShort(); OLogManager.instance().info(this, "%s - Read short: %d", socket.getRemoteSocketAddress(), value); return value; } return in.readShort(); }
public int readInt() throws IOException { updateMetricReceivedBytes(OBinaryProtocol.SIZE_INT); if (debug) { OLogManager.instance().info(this, "%s - Reading int (4 bytes)...", socket.getRemoteSocketAddress()); final int value = in.readInt(); OLogManager.instance().info(this, "%s - Read int: %d", socket.getRemoteSocketAddress(), value); return value; } return in.readInt(); }
public boolean readBoolean() throws IOException { updateMetricReceivedBytes(OBinaryProtocol.SIZE_BYTE); if (debug) { OLogManager.instance().info(this, "%s - Reading boolean (1 byte)...", socket.getRemoteSocketAddress()); final boolean value = in.readBoolean(); OLogManager.instance().info(this, "%s - Read boolean: %b", socket.getRemoteSocketAddress(), value); return value; } return in.readBoolean(); }
public byte readByte() throws IOException { updateMetricReceivedBytes(OBinaryProtocol.SIZE_BYTE); if (debug) { OLogManager.instance().info(this, "%s - Reading byte (1 byte)...", socket.getRemoteSocketAddress()); final byte value = in.readByte(); OLogManager.instance().info(this, "%s - Read byte: %d", socket.getRemoteSocketAddress(), (int) value); return value; } return in.readByte(); }
public long readLong() throws IOException { updateMetricReceivedBytes(OBinaryProtocol.SIZE_LONG); if (debug) { OLogManager.instance().info(this, "%s - Reading long (8 bytes)...", socket.getRemoteSocketAddress()); final long value = in.readLong(); OLogManager.instance().info(this, "%s - Read long: %d", socket.getRemoteSocketAddress(), value); return value; } return in.readLong(); }
public boolean readBoolean() throws IOException { updateMetricReceivedBytes(OBinaryProtocol.SIZE_BYTE); if (debug) { OLogManager.instance().info(this, "%s - Reading boolean (1 byte)...", socket.getRemoteSocketAddress()); final boolean value = in.readBoolean(); OLogManager.instance().info(this, "%s - Read boolean: %b", socket.getRemoteSocketAddress(), value); return value; } return in.readBoolean(); }
public long readLong() throws IOException { updateMetricReceivedBytes(OBinaryProtocol.SIZE_LONG); if (debug) { OLogManager.instance().info(this, "%s - Reading long (8 bytes)...", socket.getRemoteSocketAddress()); final long value = in.readLong(); OLogManager.instance().info(this, "%s - Read long: %d", socket.getRemoteSocketAddress(), value); return value; } return in.readLong(); }
public OChannelBinary writeBoolean(final boolean iContent) throws IOException { if (debug) OLogManager.instance().info(this, "%s - Writing boolean (1 byte): %b", socket.getRemoteSocketAddress(), iContent); out.writeBoolean(iContent); updateMetricTransmittedBytes(OBinaryProtocol.SIZE_BYTE); return this; }
public OChannelBinary writeBoolean(final boolean iContent) throws IOException { if (debug) OLogManager.instance().info(this, "%s - Writing boolean (1 byte): %b", socket.getRemoteSocketAddress(), iContent); out.writeBoolean(iContent); updateMetricTransmittedBytes(OBinaryProtocol.SIZE_BYTE); return this; }