Class DbConfigurationImpl

    • Constructor Detail

      • DbConfigurationImpl

        public DbConfigurationImpl()
        DbConfiguration empty constructor for YAMLFactory
      • DbConfigurationImpl

        public DbConfigurationImpl​(java.util.List<MongoDbNode> mongoDbNodes,
                                   java.lang.String dbName,
                                   boolean dbAuthentication,
                                   java.lang.String dbUserName,
                                   java.lang.String dbPassword)
        DbConfiguration constructor with authentication
        Parameters:
        mongoDbNodes - database server IP address and port
        dbName - database name
        dbAuthentication -
        dbUserName -
        dbPassword -
        Throws:
        java.lang.IllegalArgumentException - if host or dbName null or empty, or if port <= 0
      • DbConfigurationImpl

        public DbConfigurationImpl​(java.util.List<MongoDbNode> mongoDbNodes,
                                   java.lang.String dbName)
        DbConfiguration constructor
        Parameters:
        mongoDbNodes - database server IP address and port
        dbName - database name
        Throws:
        java.lang.IllegalArgumentException - if host or dbName null or empty, or if port <= 0
    • Method Detail

      • getMongoDbNodes

        public java.util.List<MongoDbNode> getMongoDbNodes()
        Description copied from interface: DbConfiguration
        Must return the value of a 'mongoDbNodes' attribute
        Specified by:
        getMongoDbNodes in interface DbConfiguration
        Returns:
        the list of mongodb node which contains the dbHost and dbPort
      • getDbName

        public java.lang.String getDbName()
        Description copied from interface: DbConfiguration
        Must return the value of a 'dbName' attribute
        Specified by:
        getDbName in interface DbConfiguration
        Returns:
        the database host value
      • getDbUserName

        public java.lang.String getDbUserName()
        Description copied from interface: DbConfiguration
        Must return the value of a 'dbName' attribute
        Specified by:
        getDbUserName in interface DbConfiguration
        Returns:
        the database user name
      • getDbPassword

        public java.lang.String getDbPassword()
        Description copied from interface: DbConfiguration
        Must return the value of a 'dbName' attribute
        Specified by:
        getDbPassword in interface DbConfiguration
        Returns:
        the database user's password
      • isDbAuthentication

        public boolean isDbAuthentication()
        Description copied from interface: DbConfiguration
        Must return the value of a 'dbName' attribute
        Specified by:
        isDbAuthentication in interface DbConfiguration
        Returns:
        boolean is autenticated or not
      • setMongoDbNodes

        public DbConfigurationImpl setMongoDbNodes​(java.util.List<MongoDbNode> mongoDbNodes)
        Parameters:
        mongoDbNodes - to set
        Returns:
        this
        Throws:
        java.lang.IllegalArgumentException - if dbHost is null or empty
      • setDbName

        public DbConfigurationImpl setDbName​(java.lang.String dbName)
        Parameters:
        dbName - the Db Name to set
        Returns:
        this
        Throws:
        java.lang.IllegalArgumentException - if dbName is null or empty
      • setDbUserName

        public DbConfigurationImpl setDbUserName​(java.lang.String userName)
        Parameters:
        userName -
        Returns:
        MetaDataConfiguration
      • setDbPassword

        public DbConfigurationImpl setDbPassword​(java.lang.String password)
        Parameters:
        password -
        Returns:
        MetaDataConfiguration
      • setDbAuthentication

        public DbConfigurationImpl setDbAuthentication​(boolean authentication)
        Parameters:
        authentication -
        Returns:
        MetaDataConfiguration