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