Class ProxyServer (0.15.0)
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.
ProxyServer(OptionsMetadata optionsMetadata, Properties properties)
publicProxyServer(OptionsMetadataoptionsMetadata,Propertiesproperties)Instantiates the ProxyServer from metadata and properties. For use with in-process invocations.
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
doStart()
protectedvoiddoStart()doStop()
protectedvoiddoStop()getLocalPort()
publicintgetLocalPort()int
the local TCP port that this server is using.
getNumberOfConnections()
publicintgetNumberOfConnections()int
the current number of connections.
getOptions()
publicOptionsMetadatagetOptions()getProperties()
publicPropertiesgetProperties()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()