Examples of VirtualWorkspace_Type


Examples of org.nimbustools.messaging.gt4_0.generated.metadata.VirtualWorkspace_Type

        final String[] associations = {this.args.getMetadata_association()};
        final String[] nicnames = {this.args.getMetadata_nicName()};

        // runName (3rd method paramater, being set to null) will be set in
        // startOneWorkspace once rundir is known
        final VirtualWorkspace_Type metadata =
                MetadataXMLUtil.constructMetadata(imageURI,
                                                  this.args.getMetadata_mountAs(),
                                                  null,
                                                  associations,
                                                  nicnames,
View Full Code Here

Examples of org.nimbustools.messaging.gt4_0.generated.metadata.VirtualWorkspace_Type

        if (wsreq == null) {
            throw new CannotTranslateException("wsreq may not be null");
        }

        final _CreateRequest req = this.repr._newCreateRequest();
        final VirtualWorkspace_Type vw = wsreq.getMetadata();
       
        final URI name = vw.getName();
        if (name != null) {
            req.setName(name.toString());
        }

        // -------------------------------------------------------------
        // Weed out the needed items:
        // -------------------------------------------------------------

        final Definition def = vw.getDefinition();
        if (def == null) {
            throw new CannotTranslateException(
                    "create request definition may not be missing");
        }

        final VirtualNetwork_Type net;
       
        final Logistics log = vw.getLogistics();
        if (log == null) {
            net = null;
        } else {
            net = log.getNetworking();
        }
View Full Code Here

Examples of org.nimbustools.messaging.gt4_0.generated.metadata.VirtualWorkspace_Type

    public Contextualization_Type getWSctx(WorkspaceCreateRequest_Type req) {
        if (req == null) {
            return null; // *** EARLY RETURN ***
        }

        final VirtualWorkspace_Type vw = req.getMetadata();
        if (vw == null) {
            return null; // *** EARLY RETURN ***
        }

        final Logistics log = vw.getLogistics();
        if (log == null) {
            return null; // *** EARLY RETURN ***
        }

        return log.getContextualization();
View Full Code Here

Examples of org.nimbustools.messaging.gt4_0.generated.metadata.VirtualWorkspace_Type

                                                          String cpuType,
                                                          String vmmVersion,
                                                          String vmmType,
                              URI kernel) {
       
        final VirtualWorkspace_Type vw = new VirtualWorkspace_Type();

        vw.setName(runName);

        vw.setDefinition(constructDefinition(imageURI,
                                             mountAs,
                                             cpuType,
                                             vmmVersion,
                                             vmmType,
                       kernel));

        vw.setLogistics(constructLogistics(associations,
                                           nicNames));

        return vw;
    }
View Full Code Here

Examples of org.nimbustools.messaging.gt4_0.generated.metadata.VirtualWorkspace_Type

        for (String subfile : subfiles) {

      final File f = new File(subdir, subfile);
            if (fileExistsAndReadable(f)) {

                VirtualWorkspace_Type vwType;
                try {
                    vwType = (VirtualWorkspace_Type)
                            ObjectDeserializer.deserialize(
                                new InputSource(new FileInputStream(f)),
                                                VirtualWorkspace_Type.class);
                } catch (Throwable t) {
                    // not an issue, some of these are text files etc.
                    continue;
                }

                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) {
View Full Code Here

Examples of org.nimbustools.messaging.gt4_0.generated.metadata.VirtualWorkspace_Type

            } else if (print.useLogging()) {
                logger.debug(msg);
            }
        }

        VirtualWorkspace_Type vw = null;
        BufferedInputStream in = null;

        try {
            in = new BufferedInputStream(new FileInputStream(metadatapath));
            vw = (VirtualWorkspace_Type) ObjectDeserializer.deserialize(
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.