Package org.nimbustools.messaging.gt4_0.generated.ensemble

Examples of org.nimbustools.messaging.gt4_0.generated.ensemble.WorkspaceEnsembleServiceAddressingLocator


        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


        created.setEpr(this.instanceEPRs.getEPR(vm.getID()));

        created.setSchedule(this.trinst.getSchedule_Type(vm));

        final Logistics log = this.trinst.getLogistics(vm);
        if (log != null) {
            created.setNetworking(log.getNetworking());
        }

        return created;
    }
View Full Code Here

        final CurrentState curr = rpSet.getCurrentState();

        workspace.setCurrentState(State.fromCurrentState_Type(curr));

        final Logistics log = rpSet.getLogistics();

        final VirtualNetwork_Type t_network = log.getNetworking();

        if (t_network != null &&
                t_network.getNic() != null &&
                    t_network.getNic().length > 0) {
            workspace.setCurrentNetworking(new Networking(t_network));
View Full Code Here

            ((WorkspacePortType) this.portType).getResourceProperty(
                                        Constants_GT4_0.RP_LOGISTICS);

        final MessageElement msg = resp.get_any()[0];

        final Logistics log = (Logistics)
                ObjectDeserializer.toObject(msg, Logistics.class);

        final VirtualNetwork_Type t_network = log.getNetworking();

        final Networking net;
        if (t_network == null ||
                t_network.getNic() == null ||
                    t_network.getNic().length == 0) {
View Full Code Here

        final CurrentState curr = oneCurrent.getCurrentState();

        workspace.setCurrentState(State.fromCurrentState_Type(curr));

        final Logistics log = oneCurrent.getLogistics();

        final VirtualNetwork_Type t_network = log.getNetworking();

        if (t_network != null &&
                t_network.getNic() != null &&
                    t_network.getNic().length > 0) {
            workspace.setCurrentNetworking(new Networking(t_network));
View Full Code Here

            nic.setName(nicName);
            nics[i] = nic;
        }

        final VirtualNetwork_Type vn = new VirtualNetwork_Type(nics);
        return new Logistics(null, vn);
    }
View Full Code Here

        final Nic_Type[] nics = new Nic_Type[nicNames.length];

        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;
        }

        final VirtualNetwork_Type vn = new VirtualNetwork_Type(nics);
        return new Logistics(null, vn);
View Full Code Here

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

        final MessageElement msg = resp.get_any()[0];

        final Logistics log = (Logistics)
                ObjectDeserializer.toObject(msg, Logistics.class);

        final VirtualNetwork_Type t_network = log.getNetworking();

        final Networking net;
        if (t_network == null ||
                t_network.getNic() == null ||
                    t_network.getNic().length == 0) {
            net = null;
        } else {
            net = new Networking(t_network);
        }
View Full Code Here

        final Schedule_Type xmlSchedule = report.getSchedule();
        if (xmlSchedule != null) {
            workspace.setCurrentSchedule(new Schedule(xmlSchedule));
        }

        final VirtualNetwork_Type xmlNetwork = report.getNetworking();
        if (xmlNetwork != null) {
            workspace.setCurrentNetworking(new Networking(xmlNetwork));
        }

        return workspace;
View Full Code Here

TOP

Related Classes of org.nimbustools.messaging.gt4_0.generated.ensemble.WorkspaceEnsembleServiceAddressingLocator

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.