public abstract class OChannelBinaryClientAbstract extends OChannelBinary
Modifier and Type | Field and Description |
---|---|
protected int |
currentSessionId |
protected byte |
currentStatus |
protected String |
serverURL |
protected int |
socketTimeout |
protected short |
srvProtocolVersion |
debug, in, out
Constructor and Description |
---|
OChannelBinaryClientAbstract(String remoteHost,
int remotePort,
String iDatabaseName,
OContextConfiguration iConfig,
int protocolVersion) |
Modifier and Type | Method and Description |
---|---|
void |
clearInput() |
String |
getServerURL() |
short |
getSrvProtocolVersion()
Gets the major supported protocol version
|
protected int |
handleStatus(byte iResult,
int iClientTxId) |
boolean |
isConnected()
Tells if the channel is connected.
|
protected void |
setReadResponseTimeout() |
protected void |
throwSerializedException(byte[] serializedException) |
boolean |
tryLock() |
void |
unlock() |
close, flush, getDataInput, getDataOutput, readBoolean, readByte, readBytes, readInt, readLong, readRID, readShort, readString, readVersion, setReadRequestTimeout, setWaitRequestTimeout, setWaitResponseTimeout, writeBoolean, writeByte, writeBytes, writeBytes, writeInt, writeLong, writeRID, writeShort, writeString, writeVersion
acquireReadLock, acquireWriteLock, connected, getLocalIpAddress, getLockWrite, releaseReadLock, releaseWriteLock, toString, tryAcquireWriteLock, updateMetricFlushes, updateMetricReceivedBytes, updateMetricTransmittedBytes
browseListeners, getListenersCopy, registerListener, resetListeners, unregisterListener
protected final int socketTimeout
protected final short srvProtocolVersion
protected String serverURL
protected byte currentStatus
protected int currentSessionId
public OChannelBinaryClientAbstract(String remoteHost, int remotePort, String iDatabaseName, OContextConfiguration iConfig, int protocolVersion) throws IOException
IOException
public void clearInput() throws IOException
clearInput
in class OChannelBinary
IOException
public boolean isConnected()
public short getSrvProtocolVersion()
public String getServerURL()
public boolean tryLock()
public void unlock()
protected int handleStatus(byte iResult, int iClientTxId) throws IOException
IOException
protected void setReadResponseTimeout() throws SocketException
SocketException
protected void throwSerializedException(byte[] serializedException) throws IOException
IOException
Copyright © 2009–2020 OrientDB. All rights reserved.