Package org.pentaho.di.repository
Class RepositoryConnectionUtils
java.lang.Object
org.pentaho.di.repository.RepositoryConnectionUtils
Provides a utility method to connect to repository and return the repository object
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Repository
connectToRepository
(String repositoryName, boolean isSingleDiServerInstance, String userName, String fullyQualifiedServerUrl, org.pentaho.di.core.logging.LoggingBuffer logBuffer) Connects to the PDI repository.
-
Constructor Details
-
RepositoryConnectionUtils
public RepositoryConnectionUtils()
-
-
Method Details
-
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
- RepositoryNameisSingleDiServerInstance
- Checking if the property "singleDiServerInstance" in PentahoSystems is setuserName
- Repo user namefullyQualifiedServerUrl
- Fully qualified server Url used for connecting to the repositorylogBuffer
-- Returns:
- Repository
- Throws:
org.pentaho.di.core.exception.KettleException
org.pentaho.di.core.exception.KettleSecurityException
-