Package com.ibm.fhir.database.utils.api
Class ConnectionDetails
- java.lang.Object
 - 
- com.ibm.fhir.database.utils.api.ConnectionDetails
 
 
- 
public class ConnectionDetails extends Object
Simple wrapper to encapsulate database connection info 
- 
- 
Constructor Summary
Constructors Constructor Description ConnectionDetails() 
- 
Method Summary
 
 - 
 
- 
- 
Method Detail
- 
getHost
public String getHost()
- Returns:
 - the host
 
 
- 
setHost
public void setHost(String host)
- Parameters:
 host- the host to set
 
- 
getPort
public int getPort()
- Returns:
 - the port
 
 
- 
setPort
public void setPort(int port)
- Parameters:
 port- the port to set
 
- 
getDatabase
public String getDatabase()
- Returns:
 - the database
 
 
- 
setDatabase
public void setDatabase(String database)
- Parameters:
 database- the database to set
 
- 
getUser
public String getUser()
- Returns:
 - the user
 
 
- 
setUser
public void setUser(String user)
- Parameters:
 user- the user to set
 
- 
getPassword
public String getPassword()
- Returns:
 - the password
 
 
- 
setPassword
public void setPassword(String password)
- Parameters:
 password- the password to set
 
- 
getSchema
public String getSchema()
- Returns:
 - the schema
 
 
- 
setSchema
public void setSchema(String schema)
- Parameters:
 schema- the schema to set
 
- 
isSsl
public boolean isSsl()
- Returns:
 - the ssl
 
 
- 
setSsl
public void setSsl(boolean ssl)
- Parameters:
 ssl- the ssl to set
 
- 
init
public void init(ConnectionDetails cd)
Copy values from another ConnectionDetails- Parameters:
 cd-
 
- 
init
public void init(Properties props, String prefix)
Initialize connection properties from the given properties, using keys based on the given prefix- Parameters:
 props-prefix-
 
- 
init
public String[] init(String[] args)
Initialize the values using these command line arguments- Parameters:
 args-
 
- 
isHA
public boolean isHA()
- Returns:
 - the ha
 
 
- 
setHa
public void setHa(boolean ha)
- Parameters:
 ha- the ha to set
 
- 
getClientRerouteAlternateServerName
public String getClientRerouteAlternateServerName()
- Returns:
 - the clientRerouteAlternateServerName
 
 
- 
setClientRerouteAlternateServerName
public void setClientRerouteAlternateServerName(String clientRerouteAlternateServerName)
- Parameters:
 clientRerouteAlternateServerName- the clientRerouteAlternateServerName to set
 
- 
getClientRerouteAlternatePortNumber
public String getClientRerouteAlternatePortNumber()
- Returns:
 - the clientRerouteAlternatePortNumber
 
 
- 
setClientRerouteAlternatePortNumber
public void setClientRerouteAlternatePortNumber(String clientRerouteAlternatePortNumber)
- Parameters:
 clientRerouteAlternatePortNumber- the clientRerouteAlternatePortNumber to set
 
- 
getTrustStoreLocation
public String getTrustStoreLocation()
- Returns:
 - the trustStoreLocation
 
 
- 
setTrustStoreLocation
public void setTrustStoreLocation(String trustStoreLocation)
- Parameters:
 trustStoreLocation- the trustStoreLocation to set
 
- 
getTrustStorePassword
public String getTrustStorePassword()
- Returns:
 - the trustStorePassword
 
 
- 
setTrustStorePassword
public void setTrustStorePassword(String trustStorePassword)
- Parameters:
 trustStorePassword- the trustStorePassword to set
 
- 
getEnableSeamlessFailover
public int getEnableSeamlessFailover()
 
- 
getMaxRetriesForClientReroute
public int getMaxRetriesForClientReroute()
 
- 
getRetryIntervalForClientReroute
public int getRetryIntervalForClientReroute()
 
- 
getEnableClientAffinitiesList
public int getEnableClientAffinitiesList()
 
- 
getConnectionTimeout
public int getConnectionTimeout()
 
- 
getLoginTimeout
public int getLoginTimeout()
 
 - 
 
 -