Package org.nimbustools.messaging.gt4_0.group

Examples of org.nimbustools.messaging.gt4_0.group.GroupUtil


        this.validateAll();

        try {

            ((WorkspaceEnsemblePortType) this.portType).done(new VoidType());

        } catch (WorkspaceUnknownFault e) {
            throw e;
        } catch (WorkspaceEnsembleFault e) {
            throw e;
View Full Code Here


        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

        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

    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

                                                          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

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

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

            rps.setAssociations(assocs.getAssociation());
        } else {
            rps.setAssociations(null);
        }

        final VMM_Type vmm = rpSet.getVMM();
        if (vmm != null) {

            final VMM_TypeType type = vmm.getType();
            if (type != null) {
                rps.setVMM(type.toString());
            }

            rps.setVmmVersions(vmm.getVersion());
        }

        final ProcessorArchitectureEnumeration cpuArch =
                                    rpSet.getCPUArchitectureName();
        if (cpuArch != null) {
View Full Code Here

        }

        final VMM_Type vmm = rpSet.getVMM();
        if (vmm != null) {

            final VMM_TypeType type = vmm.getType();
            if (type != null) {
                rps.setVMM(type.toString());
            }

            rps.setVmmVersions(vmm.getVersion());
        }
View Full Code Here

        for (int i = 0; i < nicNames.length; i++) {
            final String nicName = nicNames[i];
            final Nic_Type nic = new Nic_Type();
            nic.setAssociation(associations[i]);
            final IPConfig_Type ipconfig = new IPConfig_Type();
            ipconfig.setAcquisitionMethod(
                    IPConfig_TypeAcquisitionMethod.AllocateAndConfigure);
            nic.setIpConfig(ipconfig);
            nic.setName(nicName);
            nics[i] = nic;
        }
View Full Code Here

                    "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();
        }

        final CustomizeTask_Type[] customizes;

        final OptionalParameters_Type optional = wsreq.getOptionalParameters();
View Full Code Here

TOP

Related Classes of org.nimbustools.messaging.gt4_0.group.GroupUtil

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.