Class RepositoryConnectionUtils


  • public class RepositoryConnectionUtils
    extends Object
    Provides a utility method to connect to repository and return the repository object
    • Constructor Detail

      • RepositoryConnectionUtils

        public RepositoryConnectionUtils()
    • Method Detail

      • connectToRepository

        public static Repository connectToRepository​(String repositoryName,
                                                     boolean isSingleDiServerInstance,
                                                     String userName,
                                                     String fullyQualifiedServerUrl,
                                                     org.pentaho.di.core.logging.LoggingBuffer logBuffer)
                                              throws org.pentaho.di.core.exception.KettleSecurityException,
                                                     org.pentaho.di.core.exception.KettleException
        Connects to the PDI repository. If the system settings "SINGLE_DI_SERVER_INSTANCE" is set, it will connect to repository using the embedded repository.xml otherwise it will connect to repository with the given name.
        Parameters:
        repositoryName - RepositoryName
        isSingleDiServerInstance - Checking if the property "singleDiServerInstance" in PentahoSystems is set
        userName - Repo user name
        fullyQualifiedServerUrl - Fully qualified server Url used for connecting to the repository
        logBuffer -
        Returns:
        Repository
        Throws:
        org.pentaho.di.core.exception.KettleException
        org.pentaho.di.core.exception.KettleSecurityException