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);
}
Aggregations