@@ -57,16 +57,16 @@ class Driver {
5757 /**
5858 * You should not be calling this directly, instead use {@link driver}.
5959 * @constructor
60- * @param {string } url
60+ * @param {string } hostPort
6161 * @param {string } userAgent
6262 * @param {object } token
6363 * @param {object } config
6464 * @protected
6565 */
66- constructor ( url , userAgent , token = { } , config = { } ) {
66+ constructor ( hostPort , userAgent , token = { } , config = { } ) {
6767 sanitizeConfig ( config ) ;
6868
69- this . _url = url ;
69+ this . _hostPort = hostPort ;
7070 this . _userAgent = userAgent ;
7171 this . _openSessions = { } ;
7272 this . _sessionIdGenerator = 0 ;
@@ -117,13 +117,13 @@ class Driver {
117117 * @return {Connection } new connector-api session instance, a low level session API.
118118 * @access private
119119 */
120- _createConnection ( url , release ) {
120+ _createConnection ( hostPort , release ) {
121121 let sessionId = this . _sessionIdGenerator ++ ;
122- let conn = connect ( url , this . _config , this . _connectionErrorCode ( ) ) ;
122+ let conn = connect ( hostPort , this . _config , this . _connectionErrorCode ( ) ) ;
123123 let streamObserver = new _ConnectionStreamObserver ( this , conn ) ;
124124 conn . initialize ( this . _userAgent , this . _token , streamObserver ) ;
125125 conn . _id = sessionId ;
126- conn . _release = ( ) => release ( url , conn ) ;
126+ conn . _release = ( ) => release ( hostPort , conn ) ;
127127
128128 this . _openSessions [ sessionId ] = conn ;
129129 return conn ;
@@ -186,8 +186,8 @@ class Driver {
186186 }
187187
188188 // Extension point
189- _createConnectionProvider ( address , connectionPool , driverOnErrorCallback ) {
190- return new DirectConnectionProvider ( address , connectionPool , driverOnErrorCallback ) ;
189+ _createConnectionProvider ( hostPort , connectionPool , driverOnErrorCallback ) {
190+ return new DirectConnectionProvider ( hostPort , connectionPool , driverOnErrorCallback ) ;
191191 }
192192
193193 // Extension point
@@ -204,7 +204,7 @@ class Driver {
204204 _getOrCreateConnectionProvider ( ) {
205205 if ( ! this . _connectionProvider ) {
206206 const driverOnErrorCallback = this . _driverOnErrorCallback . bind ( this ) ;
207- this . _connectionProvider = this . _createConnectionProvider ( this . _url , this . _pool , driverOnErrorCallback ) ;
207+ this . _connectionProvider = this . _createConnectionProvider ( this . _hostPort , this . _pool , driverOnErrorCallback ) ;
208208 }
209209 return this . _connectionProvider ;
210210 }
0 commit comments