java.lang.Object
com.orientechnologies.orient.enterprise.channel.OChannel
Direct Known Subclasses:
OChannelBinary, OChannelText

public abstract class OChannel extends Object
  • Field Details

    • socket

      public volatile Socket socket
    • inStream

      public InputStream inStream
    • outStream

      public OutputStream outStream
    • socketBufferSize

      public int socketBufferSize
    • timeout

      protected long timeout
  • Constructor Details

  • Method Details

    • getLocalIpAddress

      public static String getLocalIpAddress(boolean iFavoriteIp4) throws SocketException
      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

      public void flush() throws IOException
      Throws:
      IOException
    • getLockWrite

      public OAdaptiveLock getLockWrite()
    • close

      public void close()
    • connected

      public void connected()
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • updateMetricTransmittedBytes

      protected void updateMetricTransmittedBytes(int iDelta)
    • updateMetricReceivedBytes

      protected void updateMetricReceivedBytes(int iDelta)
    • updateMetricFlushes

      protected void updateMetricFlushes()