public static Map<String, Parser> getJavaContainerArtifacts(FabricService fabric, List<Profile> profileList, ScheduledExecutorService downloadExecutor) throws Exception { DownloadManager downloadManager = DownloadManagers.createDownloadManager(fabric, downloadExecutor); return getJavaContainerArtifacts(fabric, profileList, downloadManager); }
public static Map<String, File> getJavaContainerArtifactsFiles(FabricService fabricService, List<Profile> profileList, ScheduledExecutorService downloadExecutor) throws Exception { DownloadManager downloadManager = DownloadManagers.createDownloadManager(fabricService, downloadExecutor); return getJavaContainerArtifactsFiles(fabricService, profileList, downloadManager); }
Objects.notNull(profileService, "ProfileService"); DownloadManager downloadManager = DownloadManagers.createDownloadManager(service, executorService); Objects.notNull(downloadManager, "DownloadManager");
private Map<ProfileVersionKey, Map<String, Parser>> findProfileArifacts() throws Exception { Map<ProfileVersionKey, Map<String, Parser>> profileArtifacts = new HashMap<ProfileVersionKey, Map<String, Parser>>(); ProfileService profileService = fabricService.get().adapt(ProfileService.class); DownloadManager downloadManager = DownloadManagers.createDownloadManager(fabricService.get(), executorService); Container[] containers = fabricService.get().getContainers(); for (Container container : containers) {
private DeploymentUpdater createDeployTask(Container container, Map<String,String> openshiftConfiguration) throws MalformedURLException { String webappDir = relativePath(container, openshiftConfiguration, OpenShiftConstants.PROPERTY_DEPLOY_WEBAPPS); String deployDir = relativePath(container, openshiftConfiguration, OpenShiftConstants.PROPERTY_DEPLOY_JARS); if (webappDir != null || deployDir != null) { FabricService fabric = fabricService.get(); DownloadManager downloadManager = DownloadManagers.createDownloadManager(fabric, downloadExecutor); DeploymentUpdater deploymentUpdater = new DeploymentUpdater(downloadManager, fabric, container, webappDir, deployDir); deploymentUpdater.setRepositories(Maps.stringValue(openshiftConfiguration, OpenShiftConstants.PROPERTY_REPOSITORIES, OpenShiftConstants.DEFAULT_REPOSITORIES)); deploymentUpdater.setCopyFilesIntoGit(Maps.booleanValue(openshiftConfiguration, OpenShiftConstants.PROPERTY_COPY_BINARIES_TO_GIT, false)); return deploymentUpdater; } return null; }
DownloadManager downloadManager = DownloadManagers.createDownloadManager(fabric, executorService); Set<Feature> currentFeatures = AgentUtils.getFeatures(fabric, downloadManager, overlay); addBundlesFromProfile(currentBundleLocations, overlay);
Installation provisionProcess(ProcessRequirements requirements) throws Exception { // TODO check that the installation is the same uninstallProcess(requirements); String id = requirements.getId(); InstallOptions installOptions = requirements.createInstallOptions(); Profile processProfile = getProcessProfile(requirements, true); Profile deployProcessProfile = getProcessProfile(requirements, false); Map<String, String> configuration = getProcessLayout(processProfile, requirements.getLayout()); DownloadManager downloadManager = DownloadManagers .createDownloadManager(fabricService, processProfile, executorService); InstallTask applyConfiguration = new ApplyConfigurationTask(configuration, installOptions.getProperties()); InstallTask applyProfile = new DeploymentTask(downloadManager, deployProcessProfile); InstallTask compositeTask = new CompositeTask(applyConfiguration, applyProfile); Installation installation = processManager.install(installOptions, compositeTask); if (installation != null) { installation.getController().start(); } return installation; }