public class ConnectionConfiguration extends Object implements Serializable
Constructor and Description |
---|
ConnectionConfiguration()
Creates an empty ConnectionConfiguration.
|
Modifier and Type | Method and Description |
---|---|
Integer |
getConnectionRetry()
Get the number of max retries for the connection.
|
Long |
getConnectionRetryCycle()
Get the retry cycle for the connection (in milliseconds).
|
Long |
getConnectionTimeout()
Get the connection timeout.
|
String |
getDatabase()
Get the database name.
|
String |
getDriver()
Get the driver.
|
Map<String,String> |
getGenericProperties()
Get the generic properties as a map
|
String |
getHost()
Returns the host as string.
|
String |
getLayer()
Get the layer as string.
|
Integer |
getMaxStringLength()
Get the maximum string length.
|
String |
getParams()
Get the parameter for the connection.
|
String |
getPassword()
Get the password string.
|
String |
getPlainUrl()
Get the plain url
|
Long |
getPoolCheckInterval()
Get the interval in which the connection pool will be checked.
|
Integer |
getPoolMax()
Get the maximum number of pool connections.
|
Integer |
getPoolMin()
Get the minimum number of pool connections.
|
Long |
getPoolTimeout()
Get the timeout for a pool connection.
|
int |
getPort()
Return the port number.
|
String |
getSchema()
Get the schema name.
|
String |
getUser()
Get the username.
|
void |
setConnectionRetry(int retry)
Set number of max retries for the connection.
|
void |
setConnectionRetryCycle(long retryCycle)
Set the retry cycle for the connection (milliseconds).
|
void |
setConnectionTimeout(long timeout)
Set the connection timeout in milliseconds.
|
void |
setDatabase(String database)
Set the database name.
|
void |
setDriver(String driver)
Set the driver.
|
void |
setGenericProperty(String name,
String value)
Set eneric properties
|
void |
setHost(String host)
Set the host.
|
void |
setLayer(String layer)
Set the layer.
|
void |
setMaxStringLength(int stringLength)
Set the maximum string length.
|
void |
setParams(String params)
Set the parameter for the connection.
|
void |
setPassword(String password)
Set the password.
|
void |
setPlainUrl(String plainUrl)
Set the plain url
|
void |
setPoolCheckInterval(long checkInterval)
Set the interval in which the connection pool will be checked.
|
void |
setPoolMax(int max)
Set the maximum number of pool connections.
|
void |
setPoolMin(int min)
Set the minimum number of pool connections.
|
void |
setPoolTimeout(long timeout)
Set the timeout for a pool connection
|
void |
setPort(int port)
Set port number.
|
void |
setSchema(String schema)
Set the schema name
|
void |
setUser(String user)
Set the username.
|
String |
toString()
Get a connection configuration as string.
|
public ConnectionConfiguration()
public String getHost()
public void setHost(String host)
host
- The hostnamepublic String getLayer()
public void setLayer(String layer)
layer
- The layerpublic String getPassword()
public void setPassword(String password)
password
- The password to be setpublic int getPort()
public void setPort(int port)
port
- The port numberpublic String getUser()
public void setUser(String user)
user
- The usernamepublic String getDriver()
public void setDriver(String driver)
driver
- The name of the driverpublic String getDatabase()
public void setDatabase(String database)
database
- The database namepublic String getSchema()
public void setSchema(String schema)
schema
- The name of the schemapublic String getParams()
public void setParams(String params)
params
- The connection parameterpublic String toString()
public Integer getConnectionRetry()
public void setConnectionRetry(int retry)
retry
- The number of max retriespublic Long getConnectionRetryCycle()
public void setConnectionRetryCycle(long retryCycle)
retryCycle
- Cycle in millisecondspublic Long getConnectionTimeout()
public void setConnectionTimeout(long timeout)
timeout
- The timeout in millisecondspublic Integer getMaxStringLength()
public void setMaxStringLength(int stringLength)
stringLength
- The maximum string lengthpublic Long getPoolCheckInterval()
public void setPoolCheckInterval(long checkInterval)
checkInterval
- The interval in millisecondspublic Integer getPoolMax()
public void setPoolMax(int max)
max
- The maximum number of pool connectionspublic Integer getPoolMin()
public void setPoolMin(int min)
min
- The minimum number of pool connectionspublic Long getPoolTimeout()
public void setPoolTimeout(long timeout)
timeout
- The timeout in millisecondspublic String getPlainUrl()
public void setPlainUrl(String plainUrl)
plainUrl
- The urlpublic Map<String,String> getGenericProperties()
Copyright © 2021 e-Spirit AG. All Rights Reserved. Build 5.2.210210