Class DeephavenDataSource

java.lang.Object
io.deephaven.jdbc.DeephavenDataSource
All Implemented Interfaces:
Wrapper, CommonDataSource, DataSource

@ExternalApi public class DeephavenDataSource extends Object implements DataSource
  • Constructor Details

    • DeephavenDataSource

      public DeephavenDataSource(String dataSourceName)
  • Method Details

    • getUrl

      public String getUrl() throws SQLException
      Get the connection string URL based on the full set of properties properties.
      Returns:
      a url containing all the relevent properties
      Throws:
      SQLException
    • setProperty

      public void setProperty(String name, String value)
    • setProperty

      public void setProperty(DeephavenProperty prop, String value)
    • setPropFile

      public void setPropFile(String propFile)
    • setQueryHost

      public void setQueryHost(String queryHost)
    • setQueryPort

      public void setQueryPort(int queryPort)
    • setUser

      public void setUser(String user)
    • setPassword

      public void setPassword(String password)
    • setSessionType

      public void setSessionType(String sessionType)
    • setMaxHeapSizeMb

      public void setMaxHeapSizeMb(int maxHeapSizeMb)
    • setLogLevel

      public void setLogLevel(String logLevel)
    • setSourcePath

      public void setSourcePath(String sourcePath)
    • setOperateAsUser

      public void setOperateAsUser(String operateAsUser)
    • setAuthSsl

      public void setAuthSsl(boolean authSsl)
    • setAuthServers

      public void setAuthServers(String... authServer)
    • setAuthCheckOrigin

      public void setAuthCheckOrigin(boolean checkOrigin)
    • setAuthReconnectionPeriod

      public void setAuthReconnectionPeriod(int reconnectionPeriod)
    • setBindParameterMode

      public void setBindParameterMode(String bindParameterMode)
    • getPropFile

      public String getPropFile()
    • setUrl

      public void setUrl(String url)
    • setJvmArgs

      public void setJvmArgs(String[] value)
    • getQueryHost

      public String getQueryHost()
    • getQueryPort

      public int getQueryPort()
    • getUser

      public String getUser()
    • getPassword

      public String getPassword()
    • getSessionType

      public String getSessionType()
    • getMaxHeapSizeMb

      public int getMaxHeapSizeMb()
    • getLogLevel

      public String getLogLevel()
    • getSourcePath

      public String getSourcePath()
    • getOperateAsUser

      public String getOperateAsUser()
    • getAuthSsl

      public Boolean getAuthSsl()
    • getAuthServers

      public String getAuthServers()
    • getAuthCheckOrigin

      public Boolean getAuthCheckOrigin()
    • getAuthReconnectionPeriod

      public Integer getAuthReconnectionPeriod()
    • getBindParameterMode

      public String getBindParameterMode()
    • getJvmArgs

      public String[] getJvmArgs()
    • getConnection

      public Connection getConnection() throws SQLException
      Specified by:
      getConnection in interface DataSource
      Throws:
      SQLException
    • getConnection

      public Connection getConnection(String user, String password) throws SQLException
      Specified by:
      getConnection in interface DataSource
      Throws:
      SQLException
    • unwrap

      public <T> T unwrap(Class<T> iface)
      Specified by:
      unwrap in interface Wrapper
    • isWrapperFor

      public boolean isWrapperFor(Class<?> iface)
      Specified by:
      isWrapperFor in interface Wrapper
    • getLogWriter

      public PrintWriter getLogWriter()
      Specified by:
      getLogWriter in interface CommonDataSource
      Specified by:
      getLogWriter in interface DataSource
    • setLogWriter

      public void setLogWriter(PrintWriter out)
      Specified by:
      setLogWriter in interface CommonDataSource
      Specified by:
      setLogWriter in interface DataSource
    • setLoginTimeout

      public void setLoginTimeout(int seconds)
      Specified by:
      setLoginTimeout in interface CommonDataSource
      Specified by:
      setLoginTimeout in interface DataSource
    • getLoginTimeout

      public int getLoginTimeout()
      Specified by:
      getLoginTimeout in interface CommonDataSource
      Specified by:
      getLoginTimeout in interface DataSource
    • getParentLogger

      public Logger getParentLogger()
      Specified by:
      getParentLogger in interface CommonDataSource