Interface IConnectionConfiguration

All Known Implementing Classes:
ConnectionConfiguration, HttpHandlerInfo, SessionConfiguration

public interface IConnectionConfiguration
  • Method Details

    • getHost

      String getHost()
      get the olap server host
      Returns:
      host olap host
    • getPort

      String getPort()
      get the olap server port
      Returns:
      port olap port
    • getUsername

      String getUsername()
      get the username
      Returns:
      username olap password
    • getPassword

      String getPassword()
      get the username's password
      Returns:
      password olap user password
    • getTimeout

      int getTimeout()
      get the amount of time to wait for response before firing a timeout exception.
      Returns:
      timeout connection timeout
    • isSslPreferred

      boolean isSslPreferred()
      get whether ssl connection is preferred or not. It only has an effect if olap server ssl mode is optional IConnectionInfo.EncryptionType.ENCRYPTION_OPTIONAL
      Returns:
      sslPreferred if true ssl connection will be used when olap encryption mode is optional, otherwise false.
    • setHost

      void setHost(String host)
      set the host of the olap server.
      Parameters:
      host - olap host
    • setPort

      void setPort(String port)
      set the port of the olap connection.
      Parameters:
      port - olap port
    • setUsername

      void setUsername(String username)
      set the user name in olap server.
      Parameters:
      username - user name
    • setPassword

      void setPassword(String password)
      set the password of the user in olap server.
      Parameters:
      password - olap user password
    • setTimeout

      void setTimeout(int timeout)
      set the amount of time in milliseconds to wait for response before firing a timeout exception.
      Parameters:
      timeout - connection timeout
    • setSslPreferred

      void setSslPreferred(boolean sslPreferred)
      set whether ssl connection is preferred or not. It only has an effect if olap server ssl mode is optional IConnectionInfo.EncryptionType.ENCRYPTION_OPTIONAL
      Parameters:
      sslPreferred - true ssl connection will be used when olap encryption mode is optional, otherwise false.
    • getClientInfo

      get the client information of this connection ClientInfo
      Returns:
      client client info
    • setClientInfo

      void setClientInfo(IConnectionConfiguration.IClientInfo info)
      set the client information of this connection ClientInfo
      Parameters:
      info - client info
    • getSession

      String getSession()
    • setSession

      void setSession(String session)
    • hasSession

      default boolean hasSession()
    • isHttpsEnforced

      default boolean isHttpsEnforced()
      Returns true if using TLS/SSL has been enforced by prefixing host with scheme https:// or by setting port to 443, false otherwise.
      Returns:
      true if using TLS/SSL has been enforced by prefixing host with scheme https:// or by setting port to 443, false otherwise
    • isHttpEnforced

      default boolean isHttpEnforced()
      Returns true if not using TLS/SSL has been enforced by prefixing host with scheme http://, false otherwise.
      Returns:
      true if not using TLS/SSL has been enforced by prefixing host with scheme http://, false otherwise
    • overwrite

      default void overwrite(IConnectionConfiguration config)
    • copyOf