Package com.jedox.palojlib.interfaces
Interface IConnectionConfiguration
- All Known Implementing Classes:
ConnectionConfiguration
,HttpHandlerInfo
public interface IConnectionConfiguration
-
Method Summary
Modifier and TypeMethodDescriptioncopyOf()
get the client information of this connectionClientInfo
int
getHost()
get the olap server hostget the username's passwordgetPort()
get the olap server portint
get the amount of time to wait for response before firing a timeout exception.get the usernameboolean
get whether ssl connection is preferred or not.void
setClientInfo
(ClientInfo info) set the client information of this connectionClientInfo
void
set the host of the olap server.void
setPassword
(String password) set the password of the user in olap server.void
set the port of the olap connection.void
setSslPreferred
(boolean sslPreferred) set whether ssl connection is preferred or not.void
setTimeout
(int timeout) set the amount of time in milliseconds to wait for response before firing a timeout exception.void
setUsername
(String username) set the user name in olap server.
-
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 optionalIConnectionInfo.EncryptionType.ENCRYPTION_OPTIONAL
- Returns:
- sslPreferred if true ssl connection will be used when olap encryption mode is optional, otherwise false.
-
setHost
set the host of the olap server.- Parameters:
host
- olap host
-
setPort
set the port of the olap connection.- Parameters:
port
- olap port
-
setUsername
set the user name in olap server.- Parameters:
username
- user name
-
setPassword
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 optionalIConnectionInfo.EncryptionType.ENCRYPTION_OPTIONAL
- Parameters:
sslPreferred
- true ssl connection will be used when olap encryption mode is optional, otherwise false.
-
getClientInfo
ClientInfo getClientInfo()get the client information of this connectionClientInfo
- Returns:
- client client info
-
setClientInfo
set the client information of this connectionClientInfo
- Parameters:
info
- client info
-
copyOf
IConnectionConfiguration copyOf() -
getContextId
int getContextId()
-