Class OProxyServer
java.lang.Object
com.orientechnologies.orient.server.distributed.impl.proxy.OProxyServer
- All Implemented Interfaces:
OService,OServerPlugin
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected intprotected OProxyServerConfigprotected intprotected booleanprotected List<OProxyServerListener> protected boolean -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidconfig(OServer server, OServerParameterConfiguration[] params) Configures the handler.formatBytes(byte[] request, int total) intgetName()booleanbooleanprotected voidonMessage(boolean request, int fromPort, int toPort, byte[] buffer, int size) voidsetBufferSize(int bufferSize) voidvoidsetTracing(String tracing) voidsetWaitUntilRemotePortsAreOpen(boolean waitUntilRemotePortsAreOpen) voidshutdown()voidstartup()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.orientechnologies.orient.server.plugin.OServerPlugin
getConfigClass, getContent, onAfterClientRequest, onBeforeClientRequest, onClientConnection, onClientDisconnection, onClientError, onSocketAccepted, onSocketDestroyed, sendShutdown
-
Field Details
-
bufferSize
protected int bufferSize -
serverThreads
-
running
protected volatile boolean running -
waitUntilRemotePortsAreOpen
protected boolean waitUntilRemotePortsAreOpen -
config
-
readTimeout
protected int readTimeout
-
-
Constructor Details
-
OProxyServer
public OProxyServer()
-
-
Method Details
-
getName
-
startup
public void startup() -
onMessage
protected void onMessage(boolean request, int fromPort, int toPort, byte[] buffer, int size) -
shutdown
public void shutdown() -
config
Description copied from interface:OServerPluginConfigures the handler. Called at startup.- Specified by:
configin interfaceOServerPlugin
-
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
-
setPorts
-
setTracing
-
getTracing
-
getRemoteHost
-