Search in sources :

Example 1 with ExecutionManagerGalaxy

use of ca.corefacility.bioinformatics.irida.model.workflow.manager.galaxy.ExecutionManagerGalaxy in project irida by phac-nml.

the class ExecutionManagerConfig method buildExecutionManager.

/**
 * Builds a new ExecutionManagerGalaxy given the following environment properties.
 * @param urlProperty The property defining the URL to Galaxy.
 * @param apiKeyProperty  The property defining the API key to Galaxy.
 * @param emailProperty  The property defining the account email in Galaxy.
 * @param dataStorageProperty  The property defning the data storage method.
 * @return  An ExecutionManagerGalaxy.
 * @throws ExecutionManagerConfigurationException If there was an issue building an ExecutionManagerGalaxy
 * 	from the given properties.
 */
private ExecutionManagerGalaxy buildExecutionManager(String urlProperty, String apiKeyProperty, String emailProperty, String dataStorageProperty) throws ExecutionManagerConfigurationException {
    URL galaxyURL = getGalaxyURL(urlProperty);
    GalaxyAccountEmail galaxyEmail = getGalaxyEmail(emailProperty);
    String apiKey = getAPIKey(apiKeyProperty);
    DataStorage dataStorage = getDataStorage(dataStorageProperty);
    return new ExecutionManagerGalaxy(galaxyURL, apiKey, galaxyEmail, dataStorage);
}
Also used : DataStorage(ca.corefacility.bioinformatics.irida.pipeline.upload.DataStorage) GalaxyAccountEmail(ca.corefacility.bioinformatics.irida.model.upload.galaxy.GalaxyAccountEmail) ExecutionManagerGalaxy(ca.corefacility.bioinformatics.irida.model.workflow.manager.galaxy.ExecutionManagerGalaxy) URL(java.net.URL)

Aggregations

GalaxyAccountEmail (ca.corefacility.bioinformatics.irida.model.upload.galaxy.GalaxyAccountEmail)1 ExecutionManagerGalaxy (ca.corefacility.bioinformatics.irida.model.workflow.manager.galaxy.ExecutionManagerGalaxy)1 DataStorage (ca.corefacility.bioinformatics.irida.pipeline.upload.DataStorage)1 URL (java.net.URL)1