Class OChannel
java.lang.Object
com.orientechnologies.orient.enterprise.channel.OChannel
- Direct Known Subclasses:
OChannelBinary,OChannelText
-
Field Summary
FieldsModifier and TypeFieldDescriptionintprotected long -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidclose()voidvoidflush()static StringgetLocalIpAddress(boolean iFavoriteIp4) voidvoidtoString()booleantryAcquireWriteLock(long iTimeout) protected voidprotected voidupdateMetricReceivedBytes(int iDelta) protected voidupdateMetricTransmittedBytes(int iDelta)
-
Field Details
-
socket
-
inStream
-
outStream
-
socketBufferSize
public int socketBufferSize -
timeout
protected long timeout
-
-
Constructor Details
-
OChannel
- Throws:
IOException
-
-
Method Details
-
getLocalIpAddress
- Throws:
SocketException
-
acquireWriteLock
public void acquireWriteLock() -
tryAcquireWriteLock
public boolean tryAcquireWriteLock(long iTimeout) -
releaseWriteLock
public void releaseWriteLock() -
acquireReadLock
public void acquireReadLock() -
releaseReadLock
public void releaseReadLock() -
flush
- Throws:
IOException
-
getLockWrite
-
close
public void close() -
connected
public void connected() -
toString
-
updateMetricTransmittedBytes
protected void updateMetricTransmittedBytes(int iDelta) -
updateMetricReceivedBytes
protected void updateMetricReceivedBytes(int iDelta) -
updateMetricFlushes
protected void updateMetricFlushes()
-