Class Context
java.lang.Object
com.denodo.scheduler.client.commons.Context
- All Implemented Interfaces:
Serializable
A context for locating and initializing the system facades.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classAllows to construct new instances ofContextstatic enumstatic enum -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final longFor interoperability with possible future changes. -
Method Summary
Modifier and TypeMethodDescriptionbooleanlonggetHost()Obtains the context host.getLogin()Obtains the context login.Obtains the context password.intgetPort()Obtains the context port.longObtains the server settings.inthashCode()booleanObtains how the user is authenticated: local (against Scheduler) or remote (against VDP).booleanvoidsetQueryTimeout(long queryTimeout) voidsetTimeUnit(TimeUnit timeUnit) toString()
-
Field Details
-
serialVersionUID
protected static final long serialVersionUIDFor interoperability with possible future changes.- See Also:
-
-
Method Details
-
getLogin
Obtains the context login.- Returns:
- the login.
-
getPassword
Obtains the context password.- Returns:
- the password.
-
getHost
Obtains the context host.- Returns:
- the host.
-
getPort
public int getPort()Obtains the context port.- Returns:
- the port.
-
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:
trueif the user is going to be authenticated with Scheduler;falseif the user is going to be authenticated with VDP.
-
isWanConnection
public boolean isWanConnection()- Returns:
- the wanConnection
-
getSsoToken
- Returns:
- the ssoToken
-
getKerberosToken
- Returns:
- the kerberosToken
-
getAccessToken
-
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
- Parameters:
timeUnit- the timeUnit to set
-
getTimeUnit
- Returns:
- the timeUnit
-
getClientIP
- Returns:
- the clientIP
-
hashCode
public int hashCode() -
equals
-
toString
-