Class OProxyServer
java.lang.Object
com.orientechnologies.orient.server.plugin.OServerPluginAbstract
com.orientechnologies.orient.server.distributed.impl.proxy.OProxyServer
- All Implemented Interfaces:
OService,OServerPlugin
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected intprotected intprotected Stringprotected booleanprotected List<OProxyServerListener>protected Stringprotected booleanFields inherited from class com.orientechnologies.orient.server.plugin.OServerPluginAbstract
enabled -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidconfig(OServer server, OServerParameterConfiguration[] params) Configures the handler.formatBytes(byte[] request, int total) intgetName()intbooleanbooleanbooleanprotected voidonMessage(boolean request, int fromPort, int toPort, byte[] buffer, int size) voidsetBufferSize(int bufferSize) voidsetEnabled(boolean enabled) voidvoidsetReadTimeout(int readTimeout) voidsetTracing(String tracing) voidsetWaitUntilRemotePortsAreOpen(boolean waitUntilRemotePortsAreOpen) voidshutdown()voidstartup()Methods inherited from class com.orientechnologies.orient.server.plugin.OServerPluginAbstract
getContent, onAfterClientRequest, onBeforeClientRequest, onClientConnection, onClientDisconnection, onClientError, sendShutdownMethods 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
onSocketAccepted, onSocketDestroyed
-
Field Details
-
remoteHost
-
ports
-
bufferSize
protected int bufferSize -
serverThreads
-
running
protected volatile boolean running -
tracing
-
readTimeout
protected int readTimeout -
waitUntilRemotePortsAreOpen
protected boolean waitUntilRemotePortsAreOpen
-
-
Constructor Details
-
OProxyServer
public OProxyServer()
-
-
Method Details
-
getName
-
startup
public void startup()- Specified by:
startupin interfaceOService- Overrides:
startupin classOServerPluginAbstract
-
onMessage
protected void onMessage(boolean request, int fromPort, int toPort, byte[] buffer, int size) -
shutdown
public void shutdown()- Specified by:
shutdownin interfaceOService- Overrides:
shutdownin classOServerPluginAbstract
-
config
Description copied from interface:OServerPluginConfigures the handler. Called at startup.- Specified by:
configin interfaceOServerPlugin- Overrides:
configin classOServerPluginAbstract
-
setPorts
-
isEnabled
public boolean isEnabled() -
setEnabled
public void setEnabled(boolean enabled) -
getBufferSize
public int getBufferSize() -
setBufferSize
public void setBufferSize(int bufferSize) -
getTracing
-
setTracing
-
getReadTimeout
public int getReadTimeout() -
setReadTimeout
public void setReadTimeout(int readTimeout) -
getRemoteHost
-
isRunning
public boolean isRunning() -
isWaitUntilRemotePortsAreOpen
public boolean isWaitUntilRemotePortsAreOpen() -
setWaitUntilRemotePortsAreOpen
public void setWaitUntilRemotePortsAreOpen(boolean waitUntilRemotePortsAreOpen) -
formatBytes
-