Package org.rioproject.impl.util

Examples of org.rioproject.impl.util.DownloadManager.download()


            artifact.setLocation(archive.toExternalForm());
            artifact.setInstallRoot(dirName);
            artifact.setUnarchive(true);
            DownloadManager downloadMgr =
                new DownloadManager(FileUtils.getFilePath(installDir), artifact);
            DownloadRecord record = downloadMgr.download();
            return(record);
        } else {
            throw new IOException("Installation must be a .jar or an .oar");
        }
    }
View Full Code Here


            if(stagedSoftware !=null) {
                DownloadManager downloadMgr = new DownloadManager(provisionRoot, stagedSoftware);
                DownloadRecord record = null;
                try {
                    logger.trace("Provisioning StagedSoftware for PlatformCapability : {}", pCap.getClass().getName());
                    record = downloadMgr.download();
                    if(record!=null) {
                        logger.trace(record.toString());
                        pCap.addDownloadRecord(record);
                        pCap.setPath(record.unarchived()?
                                     record.getExtractedPath():record.getPath());
View Full Code Here

        StagedData[] stagedData = sElem.getStagedData();
        for (StagedData data : stagedData) {
            DownloadRecord dlRec;
            if (data.getInstallRoot().startsWith(File.separator)) {
                DownloadManager dlManager = new DownloadManager(data);
                dlRec = dlManager.download();
                dlRecords.add(dlRec);
            } else {
                String provisionRoot = computeResource.getPersistentProvisioningRoot();
                DownloadManager dlManager = new DownloadManager(provisionRoot, data);
                dlRec = dlManager.download();
View Full Code Here

                dlRec = dlManager.download();
                dlRecords.add(dlRec);
            } else {
                String provisionRoot = computeResource.getPersistentProvisioningRoot();
                DownloadManager dlManager = new DownloadManager(provisionRoot, data);
                dlRec = dlManager.download();
                dlRecords.add(dlRec);
            }
            if (data.getPerms() != null) {
                if (OperatingSystemType.isWindows()) {
                    logger.warn("Cannot apply permissions [{}] to StagedData on Windows", data.getPerms());
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.