Class ProxyServer (0.19.1)
Stay organized with collections
Save and categorize content based on your preferences.
publicclass ProxyServerextendsAbstractApiServiceThe proxy server listens for incoming client connections and starts a new ConnectionHandler for each incoming connection.
Inherited Members
Constructors
ProxyServer(OptionsMetadata optionsMetadata)
publicProxyServer(OptionsMetadataoptionsMetadata)Instantiates the ProxyServer from CLI-gathered metadata.
| Parameter | |
|---|---|
| Name | Description |
optionsMetadata |
OptionsMetadata Resulting metadata from CLI. |
ProxyServer(OptionsMetadata optionsMetadata, Properties properties)
publicProxyServer(OptionsMetadataoptionsMetadata,Propertiesproperties)Instantiates the ProxyServer from metadata and properties. For use with in-process invocations.
| Parameters | |
|---|---|
| Name | Description |
optionsMetadata |
OptionsMetadata Resulting metadata from CLI. |
properties |
Properties Properties for specificying additional information to JDBC like an external channel provider (see ConnectionOptions in Java Spanner client library for more details on supported properties). |
Methods
clearDebugMessages()
publicvoidclearDebugMessages()doStart()
protectedvoiddoStart()doStop()
protectedvoiddoStop()getDebugMessages()
publicConcurrentLinkedQueue<WireMessage>getDebugMessages()| Returns | |
|---|---|
| Type | Description |
ConcurrentLinkedQueue<WireMessage> |
|
getLocalPort()
publicintgetLocalPort()| Returns | |
|---|---|
| Type | Description |
int |
the local TCP port that this server is using. |
getNumberOfConnections()
publicintgetNumberOfConnections()| Returns | |
|---|---|
| Type | Description |
int |
the current number of connections. |
getOptions()
publicOptionsMetadatagetOptions()| Returns | |
|---|---|
| Type | Description |
OptionsMetadata |
|
getProperties()
publicPropertiesgetProperties()| Returns | |
|---|---|
| Type | Description |
Properties |
the JDBC connection properties that are used by this server |
startServer()
publicvoidstartServer()Starts the server by running the thread runnable and setting status.
stopServer()
publicvoidstopServer()Safely stops the server (iff started), closing specific socket and cleaning up.
toString()
publicStringtoString()| Returns | |
|---|---|
| Type | Description |
String |
|