Class ConnectionDetails


  • public class ConnectionDetails
    extends java.lang.Object
    Simple wrapper to encapsulate database connection info
    • Constructor Detail

      • ConnectionDetails

        public ConnectionDetails()
    • 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()