public class OProxyServer extends OServerPluginAbstract
Modifier and Type | Field and Description |
---|---|
protected int |
bufferSize |
protected boolean |
enabled |
protected Map<Integer,Integer> |
ports |
protected int |
readTimeout |
protected String |
remoteHost |
protected boolean |
running |
protected List<OProxyServerListener> |
serverThreads |
protected String |
tracing |
protected boolean |
waitUntilRemotePortsAreOpen |
Constructor and Description |
---|
OProxyServer() |
Modifier and Type | Method and Description |
---|---|
void |
config(OServer server,
OServerParameterConfiguration[] params)
Configures the handler.
|
String |
formatBytes(byte[] request,
int total) |
int |
getBufferSize() |
String |
getName() |
int |
getReadTimeout() |
String |
getRemoteHost() |
String |
getTracing() |
boolean |
isEnabled() |
boolean |
isRunning() |
boolean |
isWaitUntilRemotePortsAreOpen() |
protected void |
onMessage(boolean request,
int fromPort,
int toPort,
byte[] buffer,
int size) |
void |
setBufferSize(int bufferSize) |
void |
setEnabled(boolean enabled) |
void |
setPorts(String portsAsString) |
void |
setReadTimeout(int readTimeout) |
void |
setTracing(String tracing) |
void |
setWaitUntilRemotePortsAreOpen(boolean waitUntilRemotePortsAreOpen) |
void |
shutdown() |
void |
startup() |
getContent, onAfterClientRequest, onBeforeClientRequest, onClientConnection, onClientDisconnection, onClientError, sendShutdown
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
onSocketAccepted, onSocketDestroyed
protected boolean enabled
protected String remoteHost
protected int bufferSize
protected List<OProxyServerListener> serverThreads
protected volatile boolean running
protected String tracing
protected int readTimeout
protected boolean waitUntilRemotePortsAreOpen
public String getName()
public void startup()
startup
in interface OService
startup
in class OServerPluginAbstract
protected void onMessage(boolean request, int fromPort, int toPort, byte[] buffer, int size)
public void shutdown()
shutdown
in interface OService
shutdown
in class OServerPluginAbstract
public void config(OServer server, OServerParameterConfiguration[] params)
OServerPlugin
config
in interface OServerPlugin
config
in class OServerPluginAbstract
public void setPorts(String portsAsString)
public boolean isEnabled()
public void setEnabled(boolean enabled)
public int getBufferSize()
public void setBufferSize(int bufferSize)
public String getTracing()
public void setTracing(String tracing)
public int getReadTimeout()
public void setReadTimeout(int readTimeout)
public String getRemoteHost()
public boolean isRunning()
public boolean isWaitUntilRemotePortsAreOpen()
public void setWaitUntilRemotePortsAreOpen(boolean waitUntilRemotePortsAreOpen)
public String formatBytes(byte[] request, int total)
Copyright © 2009–2020 OrientDB. All rights reserved.