java.lang.Object
com.orientechnologies.orient.server.distributed.impl.proxy.OProxyServer
All Implemented Interfaces:
OService, OServerPlugin

public class OProxyServer extends Object implements OServerPlugin
  • Field Details

    • bufferSize

      protected int bufferSize
    • serverThreads

      protected List<OProxyServerListener> serverThreads
    • running

      protected volatile boolean running
    • waitUntilRemotePortsAreOpen

      protected boolean waitUntilRemotePortsAreOpen
    • config

      protected OProxyServerConfig config
    • readTimeout

      protected int readTimeout
  • Constructor Details

    • OProxyServer

      public OProxyServer()
  • Method Details

    • getName

      public String getName()
      Specified by:
      getName in interface OService
    • startup

      public void startup()
      Specified by:
      startup in interface OService
    • onMessage

      protected void onMessage(boolean request, int fromPort, int toPort, byte[] buffer, int size)
    • shutdown

      public void shutdown()
      Specified by:
      shutdown in interface OService
    • config

      public void config(OServer server, OServerParameterConfiguration[] params)
      Description copied from interface: OServerPlugin
      Configures the handler. Called at startup.
      Specified by:
      config in interface OServerPlugin
    • getBufferSize

      public int getBufferSize()
    • setBufferSize

      public void setBufferSize(int bufferSize)
    • isRunning

      public boolean isRunning()
    • isWaitUntilRemotePortsAreOpen

      public boolean isWaitUntilRemotePortsAreOpen()
    • setWaitUntilRemotePortsAreOpen

      public void setWaitUntilRemotePortsAreOpen(boolean waitUntilRemotePortsAreOpen)
    • formatBytes

      public String formatBytes(byte[] request, int total)
    • setPorts

      public void setPorts(String portsAsString)
    • setTracing

      public void setTracing(String tracing)
    • getTracing

      public String getTracing()
    • getRemoteHost

      public String getRemoteHost()