Class OChannelBinary
java.lang.Object
com.orientechnologies.orient.enterprise.channel.OChannel
com.orientechnologies.orient.enterprise.channel.binary.OChannelBinary
- All Implemented Interfaces:
OChannelDataInput,OChannelDataOutput
- Direct Known Subclasses:
OChannelBinaryAsynchClient,OChannelBinaryClientAbstract,OChannelBinaryServer
public abstract class OChannelBinary
extends OChannel
implements OChannelDataInput, OChannelDataOutput
Abstract representation of a channel.
- Author:
- Luca Garulli (l.garulli--(at)--orientdb.com)
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final boolean -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidclose()voidflush()booleanbytereadByte()byte[]intreadInt()longreadLong()readRID()shortintvoidvoidvoidwriteBoolean(boolean iContent) writeByte(byte iContent) writeBytes(byte[] iContent) writeBytes(byte[] iContent, int iLength) writeInt(int iContent) writeLong(long iContent) voidwriteShort(short iContent) writeString(String iContent) voidwriteVersion(int version) Methods inherited from class com.orientechnologies.orient.enterprise.channel.OChannel
acquireReadLock, acquireWriteLock, connected, getLocalIpAddress, getLockWrite, releaseReadLock, releaseWriteLock, toString, tryAcquireWriteLock, updateMetricFlushes, updateMetricReceivedBytes, updateMetricTransmittedBytes
-
Field Details
-
debug
protected final boolean debug -
in
-
out
-
-
Constructor Details
-
OChannelBinary
- Throws:
IOException
-
-
Method Details
-
readByte
- Specified by:
readBytein interfaceOChannelDataInput- Throws:
IOException
-
readBoolean
- Specified by:
readBooleanin interfaceOChannelDataInput- Throws:
IOException
-
readInt
- Specified by:
readIntin interfaceOChannelDataInput- Throws:
IOException
-
readLong
- Specified by:
readLongin interfaceOChannelDataInput- Throws:
IOException
-
readShort
- Specified by:
readShortin interfaceOChannelDataInput- Throws:
IOException
-
readString
- Specified by:
readStringin interfaceOChannelDataInput- Throws:
IOException
-
readBytes
- Specified by:
readBytesin interfaceOChannelDataInput- Throws:
IOException
-
readRID
- Specified by:
readRIDin interfaceOChannelDataInput- Throws:
IOException
-
readVersion
- Specified by:
readVersionin interfaceOChannelDataInput- Throws:
IOException
-
writeByte
- Specified by:
writeBytein interfaceOChannelDataOutput- Throws:
IOException
-
writeBoolean
- Specified by:
writeBooleanin interfaceOChannelDataOutput- Throws:
IOException
-
writeInt
- Specified by:
writeIntin interfaceOChannelDataOutput- Throws:
IOException
-
writeLong
- Specified by:
writeLongin interfaceOChannelDataOutput- Throws:
IOException
-
writeShort
- Specified by:
writeShortin interfaceOChannelDataOutput- Throws:
IOException
-
writeString
- Specified by:
writeStringin interfaceOChannelDataOutput- Throws:
IOException
-
writeBytes
- Specified by:
writeBytesin interfaceOChannelDataOutput- Throws:
IOException
-
writeBytes
- Specified by:
writeBytesin interfaceOChannelDataOutput- Throws:
IOException
-
writeRID
- Specified by:
writeRIDin interfaceOChannelDataOutput- Throws:
IOException
-
writeVersion
- Specified by:
writeVersionin interfaceOChannelDataOutput- Throws:
IOException
-
clearInput
- Throws:
IOException
-
flush
- Overrides:
flushin classOChannel- Throws:
IOException
-
close
public void close() -
getDataOutput
- Specified by:
getDataOutputin interfaceOChannelDataOutput
-
getDataInput
- Specified by:
getDataInputin interfaceOChannelDataInput
-
setWaitResponseTimeout
- Throws:
SocketException
-
setWaitRequestTimeout
- Throws:
SocketException
-
setReadRequestTimeout
- Throws:
SocketException
-