PIRL.Conductor.Pipeline_Configuration

Class Pipeline_Configuration

    • Constructor Detail

      • Pipeline_Configuration

        public Pipeline_Configuration(Database database,
                              String catalog,
                              String table,
                              String pipeline)
        Constructs a Pipeline_Configuration with non-strict semantics.
        Parameters:
        database - The Database object providing access to the database contents.
        catalog - The name of catalog in the database where the database tables are located.
        table - The name of the table to use for pipeline configuration queries.
        pipeline - The name of the pipeline to query for parameters.
      • Pipeline_Configuration

        public Pipeline_Configuration(Database database,
                              String catalog,
                              String table,
                              String pipeline,
                              boolean strict)
        Constructs a Pipeline_Configuration.
        Parameters:
        database - The Database object providing access to the database contents.
        catalog - The name of catalog in the database where the database tables are located.
        table - The name of the table to use for pipeline configuration queries.
        pipeline - The name of the pipeline to query for parameters.
        strict - A flag that indicates whether to treat validation failures as global errors.
    • Method Detail

      • write

        public void write(String parameter,
                 String value)
        Write a simple parameter-value pair into a table record.
        Parameters:
        parameter - The parameter name.
        value - The value String for the parameter.
      • write

        public void write(String parameter,
                 String value,
                 String validation)
        Write a parameter-value pair with validation string into a table record.
        Parameters:
        parameter - The parameter name.
        value - The value String for the parameter.
        validation - The validation String for the value.
      • write

        public void write(String parameter,
                 String value,
                 String validation,
                 String description)
        Write a parameter-value pair with validation string and description into a table record.
        Parameters:
        parameter - The parameter name.
        value - The value String for the parameter.
        validation - The validation String for the value.
        description - The description String for the parameter.
      • write

        public void write(Pipeline_Configuration.Conf conf)
        Write a configuration (Conf) for a parameter into a table record. The string-only variants of the write methods are preferable; they use this method.
        Parameters:
        conf - A Pipeline_Configuration.Conf object which contains the field values of the record to be inserted into the table
      • close

        public void close()
        Close the database connection. Closing the database connection is usually not necessary. Use this method to ensure that the database is closed when needed. WARNING Do not attempt to read or write a database table record after the connection to the database has been closed.
      • buildConfigurationTable

        public void buildConfigurationTable(String catalog,
                                   String table)
                                     throws Database_Exception
        Build a configuration table given a database catalog and table name. A database table for holding configuration parameters is created in the specified catalog.
        Parameters:
        catalog - The name of the database catalog to contain the table.
        table - The name of the database table for containing configuration parameters.
        Throws:
        Database_Exception - if the database table could not be created.
      • main

        public static void main(String[] args)
        Application main.
        Parameters:
        args - The program command-line arguments.