Package org.nimbustools.api.repr.vm

Examples of org.nimbustools.api.repr.vm.VMFile


       
        final ArrayList partitions = new ArrayList(8);

        for (int i = 0; i < vmFiles.length; i++) {
           
            final VMFile file = vmFiles[i];
            if (file == null) {
                throw new CreationException(
                        "vmFile[] contents may not be null (index " + i + ")");
            }

            if (file.isRootFile()) {

                if (seenRootDisk) {
                    throw new CreationException("more than one root disk?");
                } else {
                    seenRootDisk = true;
                }

                // TODO:
                // only propagating root disk until multiple partitions are
                // propagated and staged as well, other (presumably readonly)
                // partitions are assumed to be in local disk cache for now
                partitions.add(this.rootPartition(vm,
                                                  file,
                                                  propagationEnabled));

            } else if (file.getBlankSpaceName() != null) {

                partitions.add(
                        this.blankspacePartition(file.getBlankSpaceSize(),
                                                 file,
                                                 vmName));
            } else {
               
                partitions.add(this.regularPartition(file,
View Full Code Here


        if (vmFiles == null || vmFiles.length == 0) {
            return UNKNOWN; // *** EARLY RETURN ***
        }

        for (int i = 0; i < vmFiles.length; i++) {
            final VMFile vmFile = vmFiles[i];
            if (vmFile.isRootFile()) {
                final URI uri = vmFile.getURI();
                if (uri == null) {
                    return UNKNOWN; // *** EARLY RETURN ***
                }
                final String path = uri.getPath();
                final String parts[] = path.split("/");
View Full Code Here

TOP

Related Classes of org.nimbustools.api.repr.vm.VMFile

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.