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

public class OProxyServer extends OServerPluginAbstract
  • Field Details

    • remoteHost

      protected String remoteHost
    • ports

      protected Map<Integer,Integer> ports
    • bufferSize

      protected int bufferSize
    • serverThreads

      protected List<OProxyServerListener> serverThreads
    • running

      protected volatile boolean running
    • tracing

      protected String tracing
    • readTimeout

      protected int readTimeout
    • waitUntilRemotePortsAreOpen

      protected boolean waitUntilRemotePortsAreOpen
  • Constructor Details

    • OProxyServer

      public OProxyServer()
  • Method Details

    • getName

      public String getName()
    • startup

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

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

      public void shutdown()
      Specified by:
      shutdown in interface OService
      Overrides:
      shutdown in class OServerPluginAbstract
    • 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
      Overrides:
      config in class OServerPluginAbstract
    • setPorts

      public void setPorts(String portsAsString)
    • isEnabled

      public boolean isEnabled()
    • setEnabled

      public void setEnabled(boolean enabled)
    • getBufferSize

      public int getBufferSize()
    • setBufferSize

      public void setBufferSize(int bufferSize)
    • getTracing

      public String getTracing()
    • setTracing

      public void setTracing(String tracing)
    • getReadTimeout

      public int getReadTimeout()
    • setReadTimeout

      public void setReadTimeout(int readTimeout)
    • getRemoteHost

      public String getRemoteHost()
    • isRunning

      public boolean isRunning()
    • isWaitUntilRemotePortsAreOpen

      public boolean isWaitUntilRemotePortsAreOpen()
    • setWaitUntilRemotePortsAreOpen

      public void setWaitUntilRemotePortsAreOpen(boolean waitUntilRemotePortsAreOpen)
    • formatBytes

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