code: public int getPort() {
      if (port != null && port != 0) {
        return port;
      }
      return urlParser != null ? urlParser.getHostAddresses().get(0).port : 3306;
    }
docs: Returns the port number.
  
  @return the port number