public abstract class OChannelBinary extends OChannel
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
debug |
DataInputStream |
in |
DataOutputStream |
out |
| Constructor and Description |
|---|
OChannelBinary(Socket iSocket,
OContextConfiguration iConfig) |
| Modifier and Type | Method and Description |
|---|---|
void |
clearInput() |
void |
close() |
void |
flush() |
byte[] |
getBuffer() |
int |
getMaxChunkSize() |
protected int |
handleStatus(byte iResult,
int iClientTxId) |
byte |
readByte() |
byte[] |
readBytes() |
OClusterPosition |
readClusterPosition() |
int |
readInt() |
long |
readLong() |
ORecordId |
readRID() |
short |
readShort() |
int |
readStatus() |
String |
readString() |
List<String> |
readStringList() |
Set<String> |
readStringSet() |
ORecordVersion |
readVersion() |
OChannelBinary |
writeByte(byte iContent) |
OChannelBinary |
writeBytes(byte[] iContent) |
OChannelBinary |
writeBytes(byte[] iContent,
int iLength) |
OChannelBinary |
writeClusterPosition(OClusterPosition clusterPosition) |
OChannelBinary |
writeCollectionString(Collection<String> iCollection) |
OChannelBinary |
writeInt(int iContent) |
OChannelBinary |
writeLong(long iContent) |
void |
writeRID(ORID iRID) |
OChannelBinary |
writeShort(short iContent) |
OChannelBinary |
writeString(String iContent) |
void |
writeVersion(ORecordVersion version) |
acquireReadLock, acquireWriteLock, connected, releaseReadLock, releaseWriteLock, toString, updateMetricFlushes, updateMetricReceivedBytes, updateMetricTransmittedBytespublic DataInputStream in
public DataOutputStream out
protected final boolean debug
public OChannelBinary(Socket iSocket, OContextConfiguration iConfig) throws IOException
IOExceptionpublic byte readByte()
throws IOException
IOExceptionpublic int readInt()
throws IOException
IOExceptionpublic long readLong()
throws IOException
IOExceptionpublic short readShort()
throws IOException
IOExceptionpublic String readString() throws IOException
IOExceptionpublic byte[] readBytes()
throws IOException
IOExceptionpublic List<String> readStringList() throws IOException
IOExceptionpublic Set<String> readStringSet() throws IOException
IOExceptionpublic ORecordId readRID() throws IOException
IOExceptionpublic OClusterPosition readClusterPosition() throws IOException
IOExceptionpublic OChannelBinary writeClusterPosition(OClusterPosition clusterPosition) throws IOException
IOExceptionpublic ORecordVersion readVersion() throws IOException
IOExceptionpublic OChannelBinary writeByte(byte iContent) throws IOException
IOExceptionpublic OChannelBinary writeInt(int iContent) throws IOException
IOExceptionpublic OChannelBinary writeLong(long iContent) throws IOException
IOExceptionpublic OChannelBinary writeShort(short iContent) throws IOException
IOExceptionpublic OChannelBinary writeString(String iContent) throws IOException
IOExceptionpublic OChannelBinary writeBytes(byte[] iContent) throws IOException
IOExceptionpublic OChannelBinary writeBytes(byte[] iContent, int iLength) throws IOException
IOExceptionpublic OChannelBinary writeCollectionString(Collection<String> iCollection) throws IOException
IOExceptionpublic void writeRID(ORID iRID) throws IOException
IOExceptionpublic void writeVersion(ORecordVersion version) throws IOException
IOExceptionpublic void clearInput()
throws IOException
IOExceptionpublic void flush()
throws IOException
flush in class OChannelIOExceptionpublic int readStatus()
throws IOException
IOExceptionprotected int handleStatus(byte iResult,
int iClientTxId)
throws IOException
IOExceptionpublic byte[] getBuffer()
public int getMaxChunkSize()
Copyright © 2009-2013 Orient Technologies. All Rights Reserved.