Package org.rioproject.deploy

Examples of org.rioproject.deploy.StagedData


           archive.toExternalForm().endsWith("oar")) {
            OAR oar = new OAR(archive);
            String dirName = oar.getCompoundName();
            if(dirName==null)
                throw new IOException("Not an OAR");
            StagedData artifact = new StagedData();
            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 {
View Full Code Here


    /**
     * Remove any installed StagedData
     */
    public void removeStagedData() {
        for(Map.Entry<StagedData, DownloadRecord[]> entry : downloadedArtifacts.entrySet()) {
            StagedData data = entry.getKey();
            if(data.removeOnDestroy()) {
                DownloadRecord[] records = entry.getValue();
                for(DownloadRecord record : records) {
                    DownloadManager.remove(record);
                }
            }
View Full Code Here

            ((StagedSoftware) stagedData).getPostInstallAttributes();
        if(postInstall == null)
            return (null);
        String path = downloadRecord.getPath();
        try {
            StagedData dAttrs = postInstall.getStagedData();
            if(dAttrs != null) {
                postInstallRecord = doDownload(dAttrs, true);
                path = postInstallRecord.getPath();
            }
            ExecDescriptor execDesc = postInstall.getExecDescriptor();
View Full Code Here

TOP

Related Classes of org.rioproject.deploy.StagedData

Copyright © 2018 www.massapicom. 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.