Class Context

java.lang.Object
com.denodo.scheduler.client.commons.Context
All Implemented Interfaces:
Serializable

public class Context extends Object implements Serializable
A context for locating and initializing the system facades.
See Also:
  • Field Details

    • serialVersionUID

      protected static final long serialVersionUID
      For interoperability with possible future changes.
      See Also:
  • Method Details

    • getLogin

      public String getLogin()
      Obtains the context login.
      Returns:
      the login.
    • getPassword

      public String getPassword()
      Obtains the context password.
      Returns:
      the password.
    • getHost

      public String getHost()
      Obtains the context host.
      Returns:
      the host.
    • getPort

      public int getPort()
      Obtains the context port.
      Returns:
      the port.
    • getServerSettings

      public ServerSettings getServerSettings()
      Obtains the server settings.
      Returns:
      the settings.
    • isLocalAuth

      public boolean isLocalAuth()
      Obtains how the user is authenticated: local (against Scheduler) or remote (against VDP).
      Returns:
      true if the user is going to be authenticated with Scheduler; false if the user is going to be authenticated with VDP.
    • isWanConnection

      public boolean isWanConnection()
      Returns:
      the wanConnection
    • getSsoToken

      public String getSsoToken()
      Returns:
      the ssoToken
    • getKerberosToken

      public String getKerberosToken()
      Returns:
      the kerberosToken
    • getAccessToken

      public String getAccessToken()
    • getUserType

      public Context.UserType getUserType()
      Returns:
      the userType
    • getConnectionTimeout

      public long getConnectionTimeout()
      Returns:
      the connectionTimeout
    • getQueryTimeout

      public long getQueryTimeout()
      Returns:
      the queryTimeout
    • setQueryTimeout

      public void setQueryTimeout(long queryTimeout)
      Parameters:
      queryTimeout - the queryTimeout to set
    • setTimeUnit

      public void setTimeUnit(TimeUnit timeUnit)
      Parameters:
      timeUnit - the timeUnit to set
    • getTimeUnit

      public TimeUnit getTimeUnit()
      Returns:
      the timeUnit
    • getClientIP

      public String getClientIP()
      Returns:
      the clientIP
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object