Examples of DiskCollection_Type


Examples of org.nimbustools.messaging.gt4_0.generated.metadata.definition.DiskCollection_Type

        return def;
    }

    private static DiskCollection_Type contructDiskCollection(URI imageURI,
                                                              String mountAs) {
        final DiskCollection_Type dctype = new DiskCollection_Type();
        final BoundDisk_Type bd = new BoundDisk_Type();
        bd.setLocation(imageURI);
        bd.setMountAs(mountAs);
        bd.setPermissions(DiskPermissions_Type.ReadWrite);
        dctype.setRootVBD(bd);
        return dctype;
    }
View Full Code Here

Examples of org.nimbustools.messaging.gt4_0.generated.metadata.definition.DiskCollection_Type

                    "Requirements_Type may not be missing");
        }

        this.translateRequirement_Type(req, requires);

        final DiskCollection_Type disks = def.getDiskCollection();
        if (disks == null) {
            throw new CannotTranslateException(
                    "DiskCollection_Type may not be missing");
        }
View Full Code Here

Examples of org.nimbustools.messaging.gt4_0.generated.metadata.definition.DiskCollection_Type

                if (vwType != null) {
                    try {
                        final Definition def = vwType.getDefinition();
            if (def != null) {
              final DiskCollection_Type dct = def.getDiskCollection();
              if (dct != null) {
                final BoundDisk_Type bdt = dct.getRootVBD();
                if (bdt != null) {
                  final URI uri = bdt.getLocation();
                  if (uri != null) {
                    String path = uri.getPath();
                    StringTokenizer st = new StringTokenizer(path, "/");
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.